The underlying IndexReader must be reopened. If you're
searching for a document with a searcher that was opened
before the document was indexed, it won't show up on the
search results.

I'm guessing that your statement that when you search
for it with some test is coincidence, but that's just a guess.

HTH
Erick

On Sat, May 1, 2010 at 1:07 PM, Indika Tantrigoda <indik...@gmail.com>wrote:

> Hi all,
>
> I've been working with Solr for a few weeks and have gotten SolrJ
> to connect to it, index, search documents.
>
> However I am having an issue when a document is committed.
> When a document is committed it does not show in the search results if I do
> a *:* search,
> but if I search for it with some text then it is shown in the results.
> Only when another document is committed, the previous document is found
> when
> I do a *:* search
>
> Is this because of the SolrJ client or do I have to pass additional
> parameters to commit() ?
>
> Thanks in advance.
>
> Regards,
> Indika
>

Reply via email to