Query filters with snowball analyzer


(Vidya Mani) #1

Hi,

We are trying to use a snowball analyzer and applying a filter on our
search queries. The filters seems to work only for numeric fields but not
for string fields. These filters seem to work fine with the standard
analyzer.

You can refer the code in this gist - https://gist.github.com/2355404

Any help would be appreciated.

Thanks


(Shay Banon) #2

Term filter does not do any analysis on the input text, maybe thats your
problem? What happens when you use text query with it? Also, the analyzer
configuration is wrong, you configure both a tokenizer and a type, which
does not mean much. Its either the type snowball for the snowball analyzer,
or provide a tokenizer and a list of filters.

On Thu, Apr 12, 2012 at 1:05 AM, Vidya Mani vmani@thoughtworks.com wrote:

Hi,

We are trying to use a snowball analyzer and applying a filter on our
search queries. The filters seems to work only for numeric fields but not
for string fields. These filters seem to work fine with the standard
analyzer.

You can refer the code in this gist - https://gist.github.com/2355404

Any help would be appreciated.

Thanks


(system) #3