Re: Using ​phrase query in Termfilters

2015-11-25 Thread Kumaran Ramasubramanian
Hi Uwe Thanks for the clarification. ​--​ ​Kumaran R​ On Wed, Nov 25, 2015 at 2:32 PM, Uwe Schindler wrote: > Hi, > > To use a real phrase (more than one term) as part of a filter, you have to > convert the PhraseQuery to a Filter: new QueryWrapperFilter(phrasequery). > The phrasequery can be

RE: Using ​phrase query in Termfilters

2015-11-25 Thread Uwe Schindler
Hi, To use a real phrase (more than one term) as part of a filter, you have to convert the PhraseQuery to a Filter: new QueryWrapperFilter(phrasequery). The phrasequery can be built using QueryBuilder that analyzes the string and splits it into tokens to create a PhraseQuery: https://goo.gl/HDhn