If you add a Document to the index after you've opened an
IndexSearcher/Reader, your IndexSearcher/Reader will not see it.  You
have to open a new IS/R to see the newly added Documents.  This is
often covered on this list... I must have added this to Lucene FAQ at
jGuru, too.

Otis

--- Luke Shannon <[EMAIL PROTECTED]> wrote:

> Hi;
> 
> Is there someway to determine if specific contents are in the index
> folder other than running a query against it?
> 
> I see that my document is being indexed. But when I run a query
> against the index I get no results returned.
> 
> The weird thing is if I restart TomCat and run the search again the
> correct results are found.
> 
> Half this system was built by someone else (the execution of the
> search query and displaying of the results). I only handle the
> indexing. I would like to find a way to definitely ensure that the
> index file is properly being created.
> 
> Any ideas? Anyone seen this before?
> 
> Thanks
> 
> Luke


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to