Searched refs:occur (Results 1 - 18 of 18) sorted by relevance

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DBooleanClause.java23 /** Specifies how clauses are to occur in matching documents. */
48 private Occur occur; field in class:BooleanClause
53 public BooleanClause(Query query, Occur occur) { argument
55 this.occur = occur;
60 return occur;
63 public void setOccur(Occur occur) { argument
64 this.occur = occur;
77 return Occur.MUST_NOT == occur;
[all...]
H A DBooleanQuery.java126 public void add(Query query, BooleanClause.Occur occur) { argument
127 add(new BooleanClause(query, occur));
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/
H A DFilterClause.java31 private final Occur occur; field in class:FilterClause
37 * @param occur A parameter implementation indicating SHOULD, MUST or MUST NOT
40 public FilterClause(Filter filter, Occur occur) { argument
41 this.occur = occur;
54 * Returns this FilterClause's occur parameter
58 return occur;
69 && this.occur == other.occur;
74 return filter.hashCode() ^ occur
[all...]
H A DBooleanFilter.java111 public final void add(Filter filter, Occur occur) { argument
112 add(new FilterClause(filter, occur));
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/
H A DSrndBooleanQuery.java29 BooleanClause.Occur occur) {
31 bq.add( queries.get(i), occur);
37 BooleanClause.Occur occur) {
42 addQueriesToBoolean(bq, queries.subList(0, queries.size()), occur);
26 addQueriesToBoolean( BooleanQuery bq, List<Query> queries, BooleanClause.Occur occur) argument
35 makeBooleanQuery( List<Query> queries, BooleanClause.Occur occur) argument
H A DSrndQuery.java81 public void add(Query query, BooleanClause.Occur occur) {
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestBoolean2.java307 BooleanClause.Occur occur;
309 occur=BooleanClause.Occur.MUST_NOT;
313 occur=BooleanClause.Occur.MUST;
315 occur=BooleanClause.Occur.SHOULD;
318 occur=BooleanClause.Occur.SHOULD;
321 current.add(q, occur);
H A DTestSubScorerFreqs.java179 for (EnumSet<Occur> occur : occurList) {
181 10, true), occur);
185 boolean includeOptional = occur.contains(Occur.SHOULD);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestBoolean2.java307 BooleanClause.Occur occur;
309 occur=BooleanClause.Occur.MUST_NOT;
313 occur=BooleanClause.Occur.MUST;
315 occur=BooleanClause.Occur.SHOULD;
318 occur=BooleanClause.Occur.SHOULD;
321 current.add(q, occur);
H A DTestSubScorerFreqs.java179 for (EnumSet<Occur> occur : occurList) {
181 10, true), occur);
185 boolean includeOptional = occur.contains(Occur.SHOULD);
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/jaspell/
H A DJaspellTernarySearchTrie.java208 Float occur, one = new Float(1);
213 occur = one;
215 occur = Float.parseFloat(word.substring(pos + 1).trim());
246 occur += occur2.floatValue();
249 currentNode.data = occur;
/lucene-3.6.0/lucene/contrib/join/src/test/org/apache/lucene/search/
H A DTestBlockJoin.java499 BooleanClause.Occur occur;
501 occur = random.nextBoolean() ? BooleanClause.Occur.MUST : BooleanClause.Occur.MUST_NOT;
505 occur = BooleanClause.Occur.SHOULD;
510 bq.add(clause, occur);
682 BooleanClause.Occur occur;
684 occur = random.nextBoolean() ? BooleanClause.Occur.MUST : BooleanClause.Occur.MUST_NOT;
688 occur = BooleanClause.Occur.SHOULD;
693 bq.add(clause, occur);
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/
H A DTestMultiFieldQPHelper.java66 Occur occur[] = { Occur.SHOULD, Occur.SHOULD };
75 q = QueryParserUtil.parse(qtxt, fields, occur, a);
H A DTestMultiFieldQueryParserWrapper.java69 Occur occur[] = { Occur.SHOULD, Occur.SHOULD };
77 q = MultiFieldQueryParserWrapper.parse(qtxt, fields, occur, a);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/
H A DQueryParser.jj674 BooleanClause.Occur occur = positionCount > 1 && operator == AND_OPERATOR ?
689 q.add(currentQuery, occur);
855 * @param occur how this clause should occur when matching documents
858 protected BooleanClause newBooleanClause(Query q, BooleanClause.Occur occur) {
859 return new BooleanClause(q, occur);
H A DQueryParser.java650 BooleanClause.Occur occur = positionCount > 1 && operator == AND_OPERATOR ?
665 q.add(currentQuery, occur);
831 * @param occur how this clause should occur when matching documents
834 protected BooleanClause newBooleanClause(Query q, BooleanClause.Occur occur) { argument
835 return new BooleanClause(q, occur);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/queryParser/
H A DTestMultiFieldQueryParser.java60 Occur occur[] = {Occur.SHOULD, Occur.SHOULD};
67 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, qtxt, fields, occur, a);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/queryParser/
H A DTestMultiFieldQueryParser.java60 Occur occur[] = {Occur.SHOULD, Occur.SHOULD};
67 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, qtxt, fields, occur, a);

Completed in 942 milliseconds