Searched refs:operator (Results 1 - 13 of 13) sorted by relevance

/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/
H A DParametricQueryNode.java34 private CompareOperator operator; field in class:ParametricQueryNode
78 this.operator = comp;
88 return this.field + "" + this.operator.toString() + "\"" + this.text + "\"";
93 return "<parametric field='" + this.field + "' operator='"
94 + this.operator.toString() + "' text='" + this.text + "'/>";
101 clone.operator = this.operator;
107 * @return the operator
110 return this.operator;
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/
H A DDefaultOperatorAttribute.java27 * processor which is the default boolean operator when no operator is defined
39 public void setOperator(Operator operator); argument
H A DDefaultOperatorAttributeImpl.java30 * processor which is the default boolean operator when no operator is defined
52 public void setOperator(Operator operator) { argument
54 if (operator == null) {
55 throw new IllegalArgumentException("default operator cannot be null!");
60 if (operator == Operator.AND) {
117 return "<defaultOperatorAttribute operator=" + getOperator().name() + "/>";
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DLuceneQParserPlugin.java33 * <li>q.op - the default operator "OR" or "AND"</li>
74 // try to get default operator from schema
75 QueryParser.Operator operator = getReq().getSchema().getSolrQueryParser(null).getDefaultOperator();
76 lparser.setDefaultOperator(null == operator ? QueryParser.Operator.OR : operator);
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/request/
H A Dstandard.rb15 VALID_PARAMS = [:query, :sort, :default_field, :operator, :start, :rows, :shards,
28 # Validate operator
29 if params[:operator]
31 [:and, :or].include?(params[:operator])
33 @params[:operator] = params[:operator].to_s.upcase
54 hash["q.op"] = @params[:operator]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/
H A DStandardQueryParser.java184 * Gets implicit operator setting, which will be either {@link Operator#AND}
221 * Sets the boolean operator of the QueryParser. In default mode (
231 public void setDefaultOperator(DefaultOperatorAttribute.Operator operator) { argument
233 attr.setOperator(operator);
237 * Sets the boolean operator of the QueryParser. In default mode (
245 org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator operator) {
249 if (operator == org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator.AND) {
258 // getQueryConfigHandler().set(ConfigurationKeys.DEFAULT_OPERATOR, operator);
244 setDefaultOperator( org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator operator) argument
/lucene-3.6.0/solr/client/ruby/solr-ruby/test/unit/
H A Dstandard_request_test.rb36 Solr::Request::Standard.new(:query => "valid", :operator => :bogus)
42 :filter_queries => ['fq1', 'fq2'], :field_list => ['id','title','score'], :operator => :and)
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/
H A DQueryParser.jj156 /** The actual operator that parser uses to combine query terms */
157 private Operator operator = OR_OPERATOR;
196 /** The default operator for parsing queries.
378 * Sets the boolean operator of the QueryParser.
386 this.operator = op;
391 * Gets implicit operator setting, which will be either AND_OPERATOR
395 return operator;
541 if (clauses.size() > 0 && operator == AND_OPERATOR && conj == CONJ_OR) {
556 if (operator == OR_OPERATOR) {
674 BooleanClause.Occur occur = positionCount > 1 && operator
[all...]
H A DQueryParser.java132 /** The actual operator that parser uses to combine query terms */
133 private Operator operator = OR_OPERATOR; field in class:QueryParser
172 /** The default operator for parsing queries.
354 * Sets the boolean operator of the QueryParser.
362 this.operator = op;
367 * Gets implicit operator setting, which will be either AND_OPERATOR
371 return operator;
517 if (clauses.size() > 0 && operator == AND_OPERATOR && conj == CONJ_OR) {
532 if (operator == OR_OPERATOR) {
650 BooleanClause.Occur occur = positionCount > 1 && operator
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/
H A DTestNumericQueryParser.java427 public void assertOpenRangeQuery(NumberType boundType, String operator, int expectedDocCount) argument
435 sb.append("+").append(type.name()).append(operator).append('"').append(boundStr).append('"').append(' ');
442 sb.append("+").append(DATE_FIELD_NAME).append(operator).append('"').append(boundDateStr).append('"');
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/doc-files/
H A Dprettify.js18 "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
/lucene-3.6.0/lucene/tools/prettify/
H A Dprettify.js18 "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DIndexSchema.java276 String operator = getQueryParserDefaultOperator();
277 qp.setDefaultOperator("AND".equals(operator) ?
290 * default operator ("AND" or "OR") for QueryParser
615 log.debug("using default query parser operator (OR)");
618 log.info("query parser default operator is "+queryParserDefaultOperator);

Completed in 3058 milliseconds