Oh, also check to see which Analyzer the demo webapp/indexer is using.
Its entirely possible the analyzer that has been chosen isn't
lowercasing input, which could also cause you issues.
I'd be willing to bet your issue lies in one of these two problems I've
mentioned ^^
Matt
Matthew Hall wrote:
Restart tomcat.
When the indexes are read in at initialization time they are a
snapshot of what the indexes contained at that moment.
Unless the demo specifically either closes its IndexReader and creates
a new one, or calls IndexReader.reopen periodically (Which I don't
remember it doing) you will not see updates in the web app until you
restart.
Matt
Ohaya wrote:
Hi,
I'm just starting to work with Lucene, and I guess that I learn best
by working with code, so I've started with the demos in the Lucene
distribution.
I got the IndexFiles.java and IndexHTML.java working, and also the
luceneweb.war is deployed to Tomcat.
I used IndexFiles.java to index some text files, and then used both
the SearchFiles.java and the luceneweb web app to do some testing.
One of the things that I noticed with the luceneweb web app is that
when I searched, the search results returned "Summary" of "null", so
I added:
doc.add(new Field("summary", "FooFoo", Field.Store.YES,
Field.Index.NOT_ANALYZED));
to the IndexFiles.java, and ran it again.
I had expected that I'd then be able to do a search for something
like "summary:foofoo", but when I did that, I got no results.
I also tried SearchFiles.java, and again got no results.
I tried using Luke, and that is showing that the "summary" field is
in the indexes, so I'm wondering why I am not able to search on other
fields such as "summary", "path", etc.?
Can anyone explain what else I need to do, esp. in the luceneweb web
app, to be able to search these other fields?
Thanks!
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
--
Matthew Hall
Software Engineer
Mouse Genome Informatics
mh...@informatics.jax.org
(207) 288-6012
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org