: 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: [email protected]
For additional commands, e-mail: [email protected]