lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kumaran Ramasubramanian <kums....@gmail.com>
Subject Using ​phrase query in Termfilters
Date Wed, 25 Nov 2015 08:13:16 GMT
Hi All,

   Am using lucene 4.10.4. Is it right to add analyzed multi valued fields
& phrase query for the same field in boolean filter. i believe we could not
apply analyzers to values in filters. So am not getting results for those
filters' match.

String phraseTerm = "hello world"
> Term term = new Term(key,
> ​​
> phraseTerm);
> TermsFilter filter = new TermsFilter(term);
> FilterClause filterClause = new FilterClause(filter,
> BooleanClause.Occur.SHOULD);
> boolFilter.add(filterClause);


Please
​guide me with
 related articles.
​ Thanks.​

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message