See:
http://mail-archives.apache.org/mod_mbox/lucene-java-user/201208.mbox/%3c42b9aa72526143469066683a1a2fe86a95a...@clg-exch1.clg.Local%3E
 

Just plug in whatever analyzer you use for indexing.

-- Jack Krupansky

From: Damian Birchler 
Sent: Monday, August 27, 2012 10:30 AM
To: mailto:java-user@lucene.apache.org 
Subject: Use an analyzer with Term, FuzzyQuery, BooleanQuery and friends

Hello list

 

I build my queries programmatically with Term, NumericTerm, FuzzyQuery, 
BooleanQuery etc. In particular, I do not use QueryParser to build my query 
from a string. Still, I would like to first run the values for my terms through 
an analzyer (more precisely, the same analyzer that I use for indexing) on my 
values for the terms. How would I do this?

 

Thanks a lot,

Damian

 

Reply via email to