参考solr的处理方式:/***See:{@linkorg.apache.lucene.queryparser.classicqueryparsersyntax}*formoreinformationonEscapingSpecialCharacters*/publicstaticStringescapeQueryChars(Strings){StringBuildersb=newStringBu......
-
-
Luncene 多字段查询记录
多字段查询需要使用MultiFieldQueryParser来做解析:Stringparams[]=newString[]{par,par};Stringfields[]=newString[]{"title","context"};BooleanClause.Occurrules[]=newBooleanClause.Occur[]{BooleanClause.Occur.SHOULD,Bool......3,631 0 2017-10-18 14:27