How do I NOT analyze a clause in the lucene query parser? -


i'm using lucene query parser simple search front-end , i'm running problems. each record i'm storing has fields analyzed , fields not analyzed.

when try use query parser construct query looks on both analyzed not analyzed fields, analyzer processing both fields, means non-analyzed field never match.

is there way tell query parser not analyze field?

you can use perfieldanalyzerwrapper defining specific analysis per field. perfieldanalyzerwrapper should used both indexing , retrieval.

alternatively, can use solr, , define analysis in solr schema.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -