Things that could help us immensely here.

Can you post your indexReader/Searcher initialization code from your standalone app, as well as your webapp.

Could you further post your Analyzer Setup/Query Building code from both apps.

Could you further post the document creation code used at indexing time? (Which analyzer, and which fields are indexed/stored)

Give us this, and I'm pretty darn sure we can nail down your issue.

Matt

Ian Lea wrote:
...
There are no exceptions.When I run the query a new shell is displayed but
 with no result.

New shell?

_*Are you sure the index is the same - what do IndexReader.maxDoc(),
numDocs() and getVersion() say, standalone
and in tomcat?

*_What do you mean with this question??

IndexReader ir = ...
System.out.printf("maxDoc=%s, ...", ir.maxDoc(), ...);

and run in tomcat and standalone.  To absolutely confirm you're
looking at the same index, and it has documents, etc.


--
Ian.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to