Hi,
how can I query multiple fields in such way that for each of
the fields the configured analyzer stack with Tokenizer is
used for the whole query string?
I have several fields in my schema that use ShingleFilter
and/or WordDelimiterFilter and other stuff. But when I
search for example for "blue tooth" (without the quotes) the
query is parsed to +name:blue +name:tooth which is not what
I expected. The search for "blue-tooth" on the other hand
yields the expected query: name:blue-tooth name:blue
name:tooth name:bluetooth. Just it is only for one field
instead of many.
This is when using the LuceneQParser. Using DisMax gives
almost exactly what I want when searching for "blue-tooth"
but gives even more strange results for "blue tooth".
Is there an existing parser or plugin that can do this? Or
maybe do I just have to rewrite my config a bit? Any
comments are welcome.
Thanks in advance
Tobi
P.S.: I asked something similar in an earlier post but in
the meantime I spent a lot of time thinking about what my
actual problem is and came up with a different view of things...
- Query multiple fields using configured analyzer stack Tobias Dittrich
-