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
Post a Comment