: Well, PerFieldAnalyzerWrapper is just a bunch of Analyzers,independent of : queries. See the API, but in general : PerFieldAnalyzerWrapper perf = new PerFieldAnalyzerWrapper("default", new : StandardAnalyzer()); : : perf.add("untokenized", new WhitespaceAnalyzer()); : perf.add("tokenized", new SnowballAnalyzer());
if the "untokenized" field was indexed using Field.Index.UN_TOKENIZED (or NO_NORMS) then you'll probably want to use KeywordAnalyzer instead of WhitespaceAnalyzer ... that way a query string like... +untokenized:"string with whitespace" +tokenized:"other string" ...will correctly match a doc containing that value in the untokenized field. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org