Thanks all, for your inputs.

We found what the problem was, the reason certain entries were missing from
the index and not from the MySQL search results was that we had some
customized transformers in the data config, that skipped the entries when a
particular field was missing.

On Thu, Jun 14, 2012 at 1:28 PM, Erick Erickson <erickerick...@gmail.com>wrote:

> Here's a quick thing to check. Delete your index and do a fresh import.
> Then
> go to the admin/statistics. Check the "numDocs" and "maxDocs" entries. If
> they're different, it means that some of your documents have been deleted.
>
> Deleted you say? What's that about? Well, if more than one record has the
> same <uniqueKey> (see schema.xml), then the first doc is overwritten by the
> second. But this is really a delete of the old doc followed by an add.
>
> NOTE: This won't show any difference if you optimize, so don't optimize
> for this
> test.
>
> The fact that this isn't changing even after you add new entries probably
> means
> you're indexing documents with the same <uniqueKey>.
>
> Hope this helps
> Erick
>
> On Thu, Jun 14, 2012 at 12:03 PM, Swetha Shenoy <sshe...@gmail.com> wrote:
> > I am running a full-import. DIH reported that 1125 documents were added
> > after indexing. This number did not change even after I added the new
> > entries.
> >
> > How do I check the ID for an entry and query it against Solr?
> >
> > On Wed, Jun 13, 2012 at 10:33 PM, Gora Mohanty <g...@mimirtech.com>
> wrote:
> >
> >> On 14 June 2012 04:51, Swetha Shenoy <sshe...@gmail.com> wrote:
> >> > That makes sense. But I added a new entry that showed up in the MySQL
> >> > results and not in the Solr search results. The count of documents
> also
> >> did
> >> > not increase after the addition. How can a new entry show up in MySQL
> >> > results and not as a new document?
> >>
> >> Sorry, but this is not very clear: Are you running a
> >> full-import, or a delta-import after adding the new
> >> entry in mysql? By any chance, does the new entry
> >> have an ID that already exists in the Solr index?
> >>
> >> What is the number of records that DIH reports
> >> after an import is completed?
> >>
> >> Regards,
> >> Gora
> >>
>

Reply via email to