modify bool query

This commit is contained in:
Shinsuke Sugaya 2016-02-04 07:40:52 +09:00
parent 84812fccdf
commit caa7c0afee
2 changed files with 3 additions and 2 deletions

View file

@ -295,10 +295,10 @@ public class QueryHelper implements Serializable {
boolQuery.must(queryBuilder);
break;
case SHOULD:
boolQuery.must(queryBuilder);
boolQuery.should(queryBuilder);
break;
case MUST_NOT:
boolQuery.must(queryBuilder);
boolQuery.mustNot(queryBuilder);
break;
default:
break;

View file

@ -26,6 +26,7 @@
<component class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"></component>
</arg>
<property name="lowercaseExpandedTerms">false</property>
<property name="defaultOperator">org.apache.lucene.queryparser.classic.QueryParser$Operator.AND</property>
</component>
<component name="queryHelper" class="org.codelibs.fess.helper.QueryHelper">
<property name="defaultFacetInfo">