## Uses of Class
org.apache.lucene.search.BooleanClause.Occur

- Packages that use BooleanClause.Occur
  Package | Description
  --- | ---
  org.apache.lucene.queryParser | A simple query parser implemented with JavaCC.
  org.apache.lucene.search | Code to search indices.

- - ### Uses of BooleanClause.Occur in org.apache.lucene.queryParser

    Methods in org.apache.lucene.queryParser with parameters of type BooleanClause.Occur
    Modifier and Type | Method and Description
    --- | ---
    `protected BooleanClause` | QueryParser.`newBooleanClause(Query q, BooleanClause.Occur occur)` Builds a new BooleanClause instance
    `static Query` | MultiFieldQueryParser.`parse(java.lang.String[] queries, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Deprecated. Used `MultiFieldQueryParser.parse(Version, String[], String[], BooleanClause.Occur[], Analyzer)` instead
    `static Query` | MultiFieldQueryParser.`parse(java.lang.String query, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Deprecated. Use `MultiFieldQueryParser.parse(Version, String, String[], BooleanClause.Occur[], Analyzer)` instead
    `static Query` | MultiFieldQueryParser.`parse(Version matchVersion, java.lang.String[] queries, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Parses a query, searching on the fields specified.
    `static Query` | MultiFieldQueryParser.`parse(Version matchVersion, java.lang.String query, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Parses a query, searching on the fields specified.

  - ### Uses of BooleanClause.Occur in org.apache.lucene.search

    Fields in org.apache.lucene.search declared as BooleanClause.Occur
    Modifier and Type | Field and Description
    --- | ---
    `static BooleanClause.Occur` | BooleanClause.Occur.`MUST` Use this operator for clauses that must appear in the matching documents.
    `static BooleanClause.Occur` | BooleanClause.Occur.`MUST_NOT` Use this operator for clauses that must not appear in the matching documents.
    `static BooleanClause.Occur` | BooleanClause.Occur.`SHOULD` Use this operator for clauses that should appear in the matching documents.

    Methods in org.apache.lucene.search that return BooleanClause.Occur
    Modifier and Type | Method and Description
    --- | ---
    `BooleanClause.Occur` | BooleanClause.`getOccur()`

    Methods in org.apache.lucene.search with parameters of type BooleanClause.Occur
    Modifier and Type | Method and Description
    --- | ---
    `void` | BooleanQuery.`add(Query query, BooleanClause.Occur occur)` Adds a clause to a boolean query.
    `void` | BooleanClause.`setOccur(BooleanClause.Occur occur)`

    Constructors in org.apache.lucene.search with parameters of type BooleanClause.Occur
    Constructor and Description
    `BooleanClause(Query query, BooleanClause.Occur occur)` Constructs a BooleanClause.

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.