Searched refs:Operator (Results 1 - 22 of 22) sorted by relevance

/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/
H A DDefaultOperatorAttribute.java35 public static enum Operator { enum in interface:DefaultOperatorAttribute
39 public void setOperator(Operator operator);
40 public Operator getOperator();
H A DDefaultOperatorAttributeImpl.java52 public void setOperator(Operator operator) {
58 org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator newOperator;
60 if (operator == Operator.AND) {
61 newOperator = org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator.AND;
63 newOperator = org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator.OR;
70 public Operator getOperator() {
71 org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator newOperator = config.get(ConfigurationKeys.DEFAULT_OPERATOR, org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator.OR);
72 Operator oldOperator;
74 if (newOperator == org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator
[all...]
H A DStandardQueryConfigHandler.java89 * @see StandardQueryParser#setDefaultOperator(org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator)
92 final public static ConfigurationKey<Operator> DEFAULT_OPERATOR = ConfigurationKey
212 public static enum Operator { enum in class:StandardQueryConfigHandler
227 // set(ConfigurationKeys.DEFAULT_OPERATOR, Operator.OR);
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/
H A DQueryParserWrapper.java66 static public enum Operator { OR, AND } enum in class:QueryParserWrapper
69 /** Alternative form of QueryParser.Operator.AND */
70 public static final Operator AND_OPERATOR = Operator.AND;
72 /** Alternative form of QueryParser.Operator.OR */
73 public static final Operator OR_OPERATOR = Operator.OR;
335 public void setDefaultOperator(Operator op) {
338 .setDefaultOperator(OR_OPERATOR.equals(op) ? org.apache.lucene.queryParser.standard.config.DefaultOperatorAttribute.Operator.OR
339 : org.apache.lucene.queryParser.standard.config.DefaultOperatorAttribute.Operator
[all...]
H A DStandardQueryParser.java49 import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator;
184 * Gets implicit operator setting, which will be either {@link Operator#AND}
185 * or {@link Operator#OR}.
187 public StandardQueryConfigHandler.Operator getDefaultOperator() {
222 * {@link Operator#OR}) terms without any modifiers are considered optional:
225 * In {@link Operator#AND} mode terms are considered to be in conjunction: the
231 public void setDefaultOperator(DefaultOperatorAttribute.Operator operator) {
238 * {@link Operator#OR}) terms without any modifiers are considered optional:
241 * In {@link Operator#AND} mode terms are considered to be in conjunction: the
245 org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator operato
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/processors/
H A DBooleanModifiersQueryNodeProcessor.java34 import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator;
44 * {@link BooleanQueryNode} which is not an {@link OrQueryNode}, it checks the default operator is {@link Operator#AND},
63 Operator op = getQueryConfigHandler().get(ConfigurationKeys.DEFAULT_OPERATOR);
70 this.usingAnd = StandardQueryConfigHandler.Operator.AND == op;
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DLuceneQParserPlugin.java72 lparser.setDefaultOperator("AND".equals(opParam) ? QueryParser.Operator.AND : QueryParser.Operator.OR);
75 QueryParser.Operator operator = getReq().getSchema().getSolrQueryParser(null).getDefaultOperator();
76 lparser.setDefaultOperator(null == operator ? QueryParser.Operator.OR : operator);
H A DQueryParsing.java118 parser.setDefaultOperator("AND".equals(opParam) ? QueryParser.Operator.AND : QueryParser.Operator.OR);
H A DExtendedDismaxQParserPlugin.java890 setDefaultOperator(QueryParser.Operator.OR);
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/
H A DGroupQueryNodeProcessor.java36 import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator;
68 Operator defaultOperator = getQueryConfigHandler().get(ConfigurationKeys.DEFAULT_OPERATOR);
75 this.usingAnd = StandardQueryConfigHandler.Operator.AND == defaultOperator;
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/
H A DTestAttributes.java48 import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator;
237 Assert.assertEquals(DefaultOperatorAttribute.Operator.OR, defaultOpAttr
239 Assert.assertEquals(Operator.OR, config
241 DefaultOperatorAttribute.Operator oldOperator = DefaultOperatorAttribute.Operator.AND;
242 Operator newOperator = Operator.AND;
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/precedence/
H A DTestPrecedenceQueryParser.java145 qp.setDefaultOperator(StandardQueryConfigHandler.Operator.OR);
191 qp.setDefaultOperator(StandardQueryConfigHandler.Operator.AND);
251 assertEquals(StandardQueryConfigHandler.Operator.OR, qp.getDefaultOperator());
252 qp.setDefaultOperator(StandardQueryConfigHandler.Operator.AND);
253 assertEquals(StandardQueryConfigHandler.Operator.AND, qp.getDefaultOperator());
254 qp.setDefaultOperator(StandardQueryConfigHandler.Operator.OR);
255 assertEquals(StandardQueryConfigHandler.Operator.OR, qp.getDefaultOperator());
636 parser.setDefaultOperator(StandardQueryConfigHandler.Operator.AND);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/
H A DQueryParser.jj151 /** Alternative form of QueryParser.Operator.AND */
152 public static final Operator AND_OPERATOR = Operator.AND;
153 /** Alternative form of QueryParser.Operator.OR */
154 public static final Operator OR_OPERATOR = Operator.OR;
157 private Operator operator = OR_OPERATOR;
199 static public enum Operator { OR, AND }
385 public void setDefaultOperator(Operator op) {
394 public Operator getDefaultOperato
[all...]
H A DQueryParser.java127 /** Alternative form of QueryParser.Operator.AND */
128 public static final Operator AND_OPERATOR = Operator.AND;
129 /** Alternative form of QueryParser.Operator.OR */
130 public static final Operator OR_OPERATOR = Operator.OR;
133 private Operator operator = OR_OPERATOR;
175 static public enum Operator { OR, AND } enum in class:QueryParser
361 public void setDefaultOperator(Operator op) {
370 public Operator getDefaultOperato
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/
H A DTestMultiFieldQPHelper.java136 mfqp.setDefaultOperator(StandardQueryConfigHandler.Operator.AND);
332 mfqp.setDefaultOperator(StandardQueryConfigHandler.Operator.AND);
H A DTestMultiAnalyzerQPHelper.java108 qp.setDefaultOperator(StandardQueryConfigHandler.Operator.AND);
H A DTestQPHelper.java64 import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator;
210 qp.setDefaultOperator(StandardQueryConfigHandler.Operator.OR);
299 qp.setDefaultOperator(Operator.AND);
H A DTestMultiFieldQueryParserWrapper.java335 mfqp.setDefaultOperator(QueryParserWrapper.Operator.AND);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/queryParser/
H A DTestMultiFieldQueryParser.java294 mfqp.setDefaultOperator(QueryParser.Operator.AND);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/queryParser/
H A DTestMultiFieldQueryParser.java294 mfqp.setDefaultOperator(QueryParser.Operator.AND);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/
H A DSolrPluginUtils.java811 setDefaultOperator(QueryParser.Operator.OR);
816 setDefaultOperator(QueryParser.Operator.OR);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DIndexSchema.java278 QueryParser.Operator.AND : QueryParser.Operator.OR);

Completed in 69 milliseconds