lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Query question
Date Thu, 23 Mar 2006 21:07:38 GMT
: Use "Keyword" (untokenized) field to index your paths.
: Consider using PerFieldAnalyzerWrapper to specify KeywordAnalyzer for your path field.
: Use the force, Luke - http://www.getopt.org/luke/ , to ensure your paths are indexed correctly.

you also don't wnat to use QueryParser.escape when you build the term
query explicitly -- that's only needed if you are passing the string to
QueryParser...

: Ex: Hits hits = multisearch.search(new TermQuery(new Term("key",
: QueryParser.escape(key))));



-Hoss


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


Mime
View raw message