Sure, but it's probably not what you want to do. You can use a
PerFieldAnalyzerWrapper to analyze different fields with
different analyzers. So your category field could be both
indexed and analyzed with, say, WhitespaceAnalyzer or some
such.
Or, as testn suggests, store it UN_TOKENIZED.
Each has
uestion is: is there any way to search for fields without using an
> analyzer?
>
>
>
> Thank you!
>
>
>
>
>
>
>
--
View this message in context:
http://www.nabble.com/Query-without-Analyzer-tf4417646.html#a12606415
Sent from the Lucene - Java User
Hi folks!
I'm using Lucene to provide search on my application.
The final query is a BooleanQuery with many fields, there are fields where
I'll look for the entered keyword and some others to restrict the search, as
the id of a category.
I read, and seems to be true, that when using Ter