## Uses of Class
org.apache.lucene.search.Query

Packages that use Query
org.apache.lucene.benchmark.byTask.feeds: Sources for benchmark inputs: documents and queries.
org.apache.lucene.benchmark.byTask.tasks: Extendable benchmark tasks.
org.apache.lucene.benchmark.quality: Search Quality Benchmarking.
org.apache.lucene.benchmark.quality.utils: Miscellaneous utilities for search quality benchmarking: query parsing, submission reports.
org.apache.lucene.benchmark.stats
org.apache.lucene.demo
org.apache.lucene.index: Code to maintain and access indices.
org.apache.lucene.index.memory: High-performance single-document main memory Apache Lucene fulltext search index.
org.apache.lucene.queryParser: A simple query parser implemented with JavaCC.
org.apache.lucene.queryParser.analyzing: QueryParser that passes Fuzzy-, Prefix-, Range-, and WildcardQuerys through the given analyzer.
org.apache.lucene.queryParser.complexPhrase: QueryParser which permits complex phrase query syntax eg "(john jon jonathan~) peters*"
org.apache.lucene.queryParser.precedence: QueryParser designed to handle operator precedence in a more sensible fashion than the default QueryParser.
org.apache.lucene.queryParser.standard: Contains the implementation of the Lucene query parser using the flexible query parser frameworks
org.apache.lucene.queryParser.standard.builders: Standard Lucene Query Node Builders
org.apache.lucene.queryParser.surround.query: This package contains SrndQuery and its subclasses.
org.apache.lucene.search: Code to search indices.
org.apache.lucene.search.function: Programmatic control over documents scores.
org.apache.lucene.search.highlight: The highlight package contains classes to provide "keyword in context" features typically used to highlight search terms in the text of results pages.
org.apache.lucene.search.payloads: The payloads package provides Query mechanisms for finding and using payloads.
org.apache.lucene.search.regex: Regular expression Query.
org.apache.lucene.search.similar: Document similarity query generators.
org.apache.lucene.search.spans: The calculus of spans.
org.apache.lucene.search.vectorhighlight: This is an another highlighter implementation.
org.apache.lucene.spatial.tier: Support for filtering based upon geographic location.
org.apache.lucene.wordnet: This package uses synonyms defined by WordNet to build a Lucene index storing them, which in turn can be used for query expansion.
org.apache.lucene.xmlparser: Parser that produces Lucene Query objects from XML streams.
org.apache.lucene.xmlparser.builders

Uses of Query in org.apache.lucene.benchmark.byTask.feeds

Fields in org.apache.lucene.benchmark.byTask.feeds declared as Query
`protected Query[]` `AbstractQueryMaker.queries`

Methods in org.apache.lucene.benchmark.byTask.feeds that return Query
`Query` `AbstractQueryMaker.makeQuery()`
`Query` `QueryMaker.makeQuery()` Create the next query
`Query` `AbstractQueryMaker.makeQuery(int size)`
`Query` `QueryMaker.makeQuery(int size)` Create the next query, of the given size.
`protected Query[]` `FileBasedQueryMaker.prepareQueries()`
`protected abstract Query[]` `AbstractQueryMaker.prepareQueries()`
`protected Query[]` `ReutersQueryMaker.prepareQueries()`
`protected Query[]` `SimpleSloppyPhraseQueryMaker.prepareQueries()`
`protected Query[]` `SimpleQueryMaker.prepareQueries()` Prepare the queries for this test.
`protected Query[]` `EnwikiQueryMaker.prepareQueries()`

Uses of Query in org.apache.lucene.benchmark.byTask.tasks

Methods in org.apache.lucene.benchmark.byTask.tasks with parameters of type Query
`protected BenchmarkHighlighter` `SearchTravRetVectorHighlightTask.getBenchmarkHighlighter(Query q)`
`protected BenchmarkHighlighter` `SearchTravRetHighlightTask.getBenchmarkHighlighter(Query q)`
`protected BenchmarkHighlighter` `ReadTask.getBenchmarkHighlighter(Query q)` Return an appropriate highlighter to be used with highlighting tasks

Uses of Query in org.apache.lucene.benchmark.quality

Methods in org.apache.lucene.benchmark.quality that return Query
`Query` `QualityQueryParser.parse(QualityQuery qq)` Parse a given QualityQuery into a Lucene query.

Uses of Query in org.apache.lucene.benchmark.quality.utils

Methods in org.apache.lucene.benchmark.quality.utils that return Query
`Query` `SimpleQQParser.parse(QualityQuery qq)`

Uses of Query in org.apache.lucene.benchmark.stats

Fields in org.apache.lucene.benchmark.stats declared as Query
`Query` `QueryData.q` Lucene query

Methods in org.apache.lucene.benchmark.stats with parameters of type Query
`static QueryData[]` `QueryData.getAll(Query[] queries)` Prepare a list of benchmark data, using all possible combinations of benchmark parameters.

Uses of Query in org.apache.lucene.demo

Methods in org.apache.lucene.demo with parameters of type Query
`static void` `SearchFiles.doPagingSearch(java.io.BufferedReader in, Searcher searcher, Query query, int hitsPerPage, boolean raw, boolean interactive)` This demonstrates a typical paging search scenario, where the search engine presents pages of size n to the user.
`static void` `SearchFiles.doStreamingSearch(Searcher searcher, Query query)` This method uses a custom HitCollector implementation which simply prints out the docId and score of every matching document.

Uses of Query in org.apache.lucene.index

Methods in org.apache.lucene.index with parameters of type Query
`void` `IndexWriter.deleteDocuments(Query query)` Deletes the document(s) matching the provided query.
`void` `IndexWriter.deleteDocuments(Query[] queries)` Deletes the document(s) matching any of the provided queries.

Uses of Query in org.apache.lucene.index.memory

Methods in org.apache.lucene.index.memory with parameters of type Query
`float` `MemoryIndex.search(Query query)` Convenience method that efficiently returns the relevance score by matching this index against the given Lucene query expression.

Uses of Query in org.apache.lucene.queryParser

Methods in org.apache.lucene.queryParser that return Query
`Query` `QueryParser.Clause(java.lang.String field)`
`protected Query` `QueryParser.getBooleanQuery(java.util.List clauses)` Factory method for generating query, given a set of clauses.
`protected Query` `QueryParser.getBooleanQuery(java.util.List clauses, boolean disableCoord)` Factory method for generating query, given a set of clauses.
`protected Query` `QueryParser.getBooleanQuery(java.util.Vector clauses)` Deprecated. use `QueryParser.getBooleanQuery(List)` instead
`protected Query` `QueryParser.getBooleanQuery(java.util.Vector clauses, boolean disableCoord)` Deprecated. use `QueryParser.getBooleanQuery(List, boolean)` instead
`protected Query` `QueryParser.getFieldQuery(java.lang.String field, java.lang.String queryText)`
`protected Query` `MultiFieldQueryParser.getFieldQuery(java.lang.String field, java.lang.String queryText)`
`protected Query` `QueryParser.getFieldQuery(java.lang.String field, java.lang.String queryText, int slop)` Base implementation delegates to `QueryParser.getFieldQuery(String,String)`.
`protected Query` `MultiFieldQueryParser.getFieldQuery(java.lang.String field, java.lang.String queryText, int slop)`
`protected Query` `QueryParser.getFuzzyQuery(java.lang.String field, java.lang.String termStr, float minSimilarity)` Factory method for generating a query (similar to `QueryParser.getWildcardQuery(java.lang.String, java.lang.String)`).
`protected Query` `MultiFieldQueryParser.getFuzzyQuery(java.lang.String field, java.lang.String termStr, float minSimilarity)`
`protected Query` `QueryParser.getPrefixQuery(java.lang.String field, java.lang.String termStr)` Factory method for generating a query (similar to `QueryParser.getWildcardQuery(java.lang.String, java.lang.String)`).
`protected Query` `MultiFieldQueryParser.getPrefixQuery(java.lang.String field, java.lang.String termStr)`
`protected Query` `QueryParser.getRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean inclusive)`
`protected Query` `MultiFieldQueryParser.getRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean inclusive)`
`protected Query` `QueryParser.getWildcardQuery(java.lang.String field, java.lang.String termStr)` Factory method for generating a query.
`protected Query` `MultiFieldQueryParser.getWildcardQuery(java.lang.String field, java.lang.String termStr)`
`protected Query` `QueryParser.newFuzzyQuery(Term term, float minimumSimilarity, int prefixLength)` Builds a new FuzzyQuery instance
`protected Query` `QueryParser.newMatchAllDocsQuery()` Builds a new MatchAllDocsQuery instance
`protected Query` `QueryParser.newPrefixQuery(Term prefix)` Builds a new PrefixQuery instance
`protected Query` `QueryParser.newRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean inclusive)` Builds a new TermRangeQuery instance
`protected Query` `QueryParser.newTermQuery(Term term)` Builds a new TermQuery instance
`protected Query` `QueryParser.newWildcardQuery(Term t)` Builds a new WildcardQuery instance
`Query` `QueryParser.parse(java.lang.String query)` Parses a query string, returning a `Query`.
`static Query` `MultiFieldQueryParser.parse(java.lang.String[] queries, java.lang.String[] fields, Analyzer analyzer)` Deprecated. Use `MultiFieldQueryParser.parse(Version,String[],String[],Analyzer)` instead
`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, Analyzer analyzer)` Parses a query which searches on the fields specified.
`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.
`Query` `QueryParser.Query(java.lang.String field)`
`Query` `QueryParser.Term(java.lang.String field)`
`Query` `QueryParser.TopLevelQuery(java.lang.String field)`

Methods in org.apache.lucene.queryParser with parameters of type Query
`protected void` `QueryParser.addClause(java.util.List clauses, int conj, int mods, Query q)`
`protected void` `QueryParser.addClause(java.util.Vector clauses, int conj, int mods, Query q)` Deprecated. use `QueryParser.addClause(List, int, int, Query)` instead.
`protected BooleanClause` `QueryParser.newBooleanClause(Query q, BooleanClause.Occur occur)` Builds a new BooleanClause instance

Uses of Query in org.apache.lucene.queryParser.analyzing

Methods in org.apache.lucene.queryParser.analyzing that return Query
`protected Query` `AnalyzingQueryParser.getFuzzyQuery(java.lang.String field, java.lang.String termStr, float minSimilarity)` Called when parser parses an input term token that has the fuzzy suffix (~) appended.
`protected Query` `AnalyzingQueryParser.getPrefixQuery(java.lang.String field, java.lang.String termStr)` Called when parser parses an input term token that uses prefix notation; that is, contains a single '*' wildcard character as its last character.
`protected Query` `AnalyzingQueryParser.getRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean inclusive)` Overrides super class, by passing terms through analyzer.
`protected Query` `AnalyzingQueryParser.getWildcardQuery(java.lang.String field, java.lang.String termStr)` Called when parser parses an input term token that contains one or more wildcard characters (like `*`), but is not a prefix term token (one that has just a single * character at the end).

Uses of Query in org.apache.lucene.queryParser.complexPhrase

Methods in org.apache.lucene.queryParser.complexPhrase that return Query
`protected Query` `ComplexPhraseQueryParser.getFieldQuery(java.lang.String field, java.lang.String queryText, int slop)`
`protected Query` `ComplexPhraseQueryParser.getFuzzyQuery(java.lang.String field, java.lang.String termStr, float minSimilarity)`
`protected Query` `ComplexPhraseQueryParser.getRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean inclusive)`
`protected Query` `ComplexPhraseQueryParser.getWildcardQuery(java.lang.String field, java.lang.String termStr)`
`protected Query` `ComplexPhraseQueryParser.newRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean inclusive)`
`protected Query` `ComplexPhraseQueryParser.newTermQuery(Term term)`
`Query` `ComplexPhraseQueryParser.parse(java.lang.String query)`

Uses of Query in org.apache.lucene.queryParser.precedence

Methods in org.apache.lucene.queryParser.precedence that return Query
`Query` `PrecedenceQueryParser.andExpression(java.lang.String field)`
`Query` `PrecedenceQueryParser.Clause(java.lang.String field)`
`protected Query` `PrecedenceQueryParser.getBooleanQuery(java.util.List clauses)` Factory method for generating query, given a set of clauses.
`protected Query` `PrecedenceQueryParser.getBooleanQuery(java.util.List clauses, boolean disableCoord)` Factory method for generating query, given a set of clauses.
`protected Query` `PrecedenceQueryParser.getBooleanQuery(java.util.Vector clauses)` Deprecated. use `PrecedenceQueryParser.getBooleanQuery(List)` instead
`protected Query` `PrecedenceQueryParser.getBooleanQuery(java.util.Vector clauses, boolean disableCoord)` Deprecated. use `PrecedenceQueryParser.getBooleanQuery(List, boolean)` instead
`protected Query` `PrecedenceQueryParser.getFieldQuery(java.lang.String field, java.lang.String queryText)`
`protected Query` `PrecedenceQueryParser.getFieldQuery(java.lang.String field, java.lang.String queryText, int slop)` Base implementation delegates to `PrecedenceQueryParser.getFieldQuery(String,String)`.
`protected Query` `PrecedenceQueryParser.getFuzzyQuery(java.lang.String field, java.lang.String termStr, float minSimilarity)` Factory method for generating a query (similar to `PrecedenceQueryParser.getWildcardQuery(java.lang.String, java.lang.String)`).
`protected Query` `PrecedenceQueryParser.getPrefixQuery(java.lang.String field, java.lang.String termStr)` Factory method for generating a query (similar to `PrecedenceQueryParser.getWildcardQuery(java.lang.String, java.lang.String)`).
`protected Query` `PrecedenceQueryParser.getRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean inclusive)`
`protected Query` `PrecedenceQueryParser.getWildcardQuery(java.lang.String field, java.lang.String termStr)` Factory method for generating a query.
`Query` `PrecedenceQueryParser.parse(java.lang.String expression)` Parses a query string, returning a `Query`.
`Query` `PrecedenceQueryParser.Query(java.lang.String field)`
`Query` `PrecedenceQueryParser.Term(java.lang.String field)`

Methods in org.apache.lucene.queryParser.precedence with parameters of type Query
`protected void` `PrecedenceQueryParser.addClause(java.util.List clauses, int conj, int modifier, Query q)`
`protected void` `PrecedenceQueryParser.addClause(java.util.Vector clauses, int conj, int modifier, Query q)` Deprecated. use `PrecedenceQueryParser.addClause(List, int, int, Query)` instead.

Uses of Query in org.apache.lucene.queryParser.standard

Methods in org.apache.lucene.queryParser.standard that return Query
`protected Query` `QueryParserWrapper.getBooleanQuery(java.util.List clauses, boolean disableCoord)` Deprecated.
`protected Query` `QueryParserWrapper.getFieldQuery(java.lang.String field, java.lang.String queryText)` Deprecated.
`protected Query` `QueryParserWrapper.getFieldQuery(java.lang.String field, java.lang.String queryText, int slop)` Deprecated. Base implementation delegates to `QueryParserWrapper.getFieldQuery(String,String)`.
`protected Query` `QueryParserWrapper.getFuzzyQuery(java.lang.String field, java.lang.String termStr, float minSimilarity)` Deprecated.
`protected Query` `QueryParserWrapper.getPrefixQuery(java.lang.String field, java.lang.String termStr)` Deprecated.
`protected Query` `QueryParserWrapper.getRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean inclusive)` Deprecated.
`protected Query` `QueryParserWrapper.getWildcardQuery(java.lang.String field, java.lang.String termStr)` Deprecated.
`Query` `QueryParserWrapper.parse(java.lang.String query)` Deprecated.
`static Query` `MultiFieldQueryParserWrapper.parse(java.lang.String[] queries, java.lang.String[] fields, Analyzer analyzer)` Deprecated. Parses a query which searches on the fields specified.
`static Query` `QueryParserUtil.parse(java.lang.String[] queries, java.lang.String[] fields, Analyzer analyzer)` Parses a query which searches on the fields specified.
`static Query` `MultiFieldQueryParserWrapper.parse(java.lang.String[] queries, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Deprecated. Parses a query, searching on the fields specified.
`static Query` `QueryParserUtil.parse(java.lang.String[] queries, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Parses a query, searching on the fields specified.
`Query` `StandardQueryParser.parse(java.lang.String query, java.lang.String defaultField)` Overrides `QueryParserHelper.parse(String, String)` so it casts the return object to `Query`.
`static Query` `MultiFieldQueryParserWrapper.parse(java.lang.String query, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Deprecated. Parses a query, searching on the fields specified.
`static Query` `QueryParserUtil.parse(java.lang.String query, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Parses a query, searching on the fields specified.

Uses of Query in org.apache.lucene.queryParser.standard.builders

Methods in org.apache.lucene.queryParser.standard.builders that return Query
`Query` `ModifierQueryNodeBuilder.build(QueryNode queryNode)`
`Query` `BoostQueryNodeBuilder.build(QueryNode queryNode)`
`Query` `StandardQueryBuilder.build(QueryNode queryNode)`
`Query` `StandardQueryTreeBuilder.build(QueryNode queryNode)`
`Query` `SlopQueryNodeBuilder.build(QueryNode queryNode)`
`Query` `GroupQueryNodeBuilder.build(QueryNode queryNode)`

Uses of Query in org.apache.lucene.queryParser.surround.query

Fields in org.apache.lucene.queryParser.surround.query declared as Query
`static Query` `SrndQuery.theEmptyLcnQuery`

Methods in org.apache.lucene.queryParser.surround.query that return Query
`Query` `DistanceQuery.getSpanNearQuery(IndexReader reader, java.lang.String fieldName, float boost, BasicQueryFactory qf)`
`Query` `SrndQuery.makeLuceneQueryField(java.lang.String fieldName, BasicQueryFactory qf)`
`Query` `SimpleTerm.makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)`
`Query` `FieldsQuery.makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)`
`Query` `NotQuery.makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)`
`Query` `OrQuery.makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)`
`abstract Query` `SrndQuery.makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)`
`Query` `DistanceQuery.makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)`
`Query` `AndQuery.makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)`
`Query` `FieldsQuery.makeLuceneQueryNoBoost(BasicQueryFactory qf)`

Methods in org.apache.lucene.queryParser.surround.query with parameters of type Query
`void` `SpanNearClauseFactory.addSpanNearQuery(Query q)`

Uses of Query in org.apache.lucene.search

Subclasses of Query in org.apache.lucene.search
`class` `BooleanQuery` A Query that matches documents matching boolean combinations of other queries, e.g.
`class` `BoostingQuery` The BoostingQuery class can be used to effectively demote results that match a given query.
`class` `ConstantScoreQuery` A query that wraps a filter and simply returns a constant score equal to the query boost for every document in the filter.
`class` `ConstantScoreRangeQuery` Deprecated. Use `TermRangeQuery` for term ranges or `NumericRangeQuery` for numeric ranges instead. This class will be removed in Lucene 3.0.
`class` `DisjunctionMaxQuery` A query that generates the union of documents produced by its subqueries, and that scores each document with the maximum score for that document as produced by any subquery, plus a tie breaking increment for any additional matching subqueries.
`class` `FilteredQuery` A query that applies a filter to the results of another query.
`class` `FuzzyLikeThisQuery` Fuzzifies ALL terms provided as strings and then picks the best n differentiating terms.
`class` `FuzzyQuery` Implements the fuzzy search query.
`class` `MatchAllDocsQuery` A query that matches all documents.
`class` `MultiPhraseQuery` MultiPhraseQuery is a generalized version of PhraseQuery, with an added method `MultiPhraseQuery.add(Term[])`.
`class` `MultiTermQuery` An abstract `Query` that matches documents containing a subset of terms provided by a `FilteredTermEnum` enumeration.
`class` `NumericRangeQuery` A `Query` that matches numeric values within a specified range.
`class` `PhraseQuery` A Query that matches documents containing a particular sequence of terms.
`class` `PrefixQuery` A Query that matches documents containing terms with a specified prefix.
`class` `RangeQuery` Deprecated. Use `TermRangeQuery` for term ranges or `NumericRangeQuery` for numeric ranges instead. This class will be removed in Lucene 3.0.
`class` `TermQuery` A Query that matches documents containing a term.
`class` `TermRangeQuery` A Query that matches documents within an range of terms.
`class` `WildcardQuery` Implements the wildcard search query.

Methods in org.apache.lucene.search that return Query
`Query` `Query.combine(Query[] queries)` Expert: called when re-writing queries under MultiSearcher.
`Query` `FilteredQuery.getQuery()`
`Query` `DisjunctionMaxQuery.DisjunctionMaxWeight.getQuery()`
`Query` `ConstantScoreQuery.ConstantWeight.getQuery()`
`Query` `BooleanQuery.BooleanWeight.getQuery()`
`Query` `BooleanClause.getQuery()`
`abstract Query` `Weight.getQuery()` The query that this concerns.
`static Query` `Query.mergeBooleanQueries(BooleanQuery[] queries)` Expert: merges the clauses of a set of BooleanQuery's into a single BooleanQuery.
`Query` `BoostingQuery.rewrite(IndexReader reader)`
`Query` `FuzzyLikeThisQuery.rewrite(IndexReader reader)`
`Query` `WildcardQuery.rewrite(IndexReader reader)`
`Query` `RangeQuery.rewrite(IndexReader reader)` Deprecated.
`Query` `FuzzyQuery.rewrite(IndexReader reader)`
`Query` `FilteredQuery.rewrite(IndexReader reader)` Rewrites the wrapped query.
`Query` `DisjunctionMaxQuery.rewrite(IndexReader reader)` Optimize our representation and our subqueries representations
`Query` `ConstantScoreQuery.rewrite(IndexReader reader)`
`Query` `MultiPhraseQuery.rewrite(IndexReader reader)`
`Query` `MultiTermQuery.rewrite(IndexReader reader)`
`Query` `BooleanQuery.rewrite(IndexReader reader)`
`Query` `Query.rewrite(IndexReader reader)` Expert: called to re-write queries into primitive queries.
`abstract Query` `MultiTermQuery.RewriteMethod.rewrite(IndexReader reader, MultiTermQuery query)`
`Query` `MultiTermQuery.ConstantScoreAutoRewrite.rewrite(IndexReader reader, MultiTermQuery query)`
`Query` `RemoteSearchable.rewrite(Query original)`
`Query` `ParallelMultiSearcher.rewrite(Query original)`
`Query` `MultiSearcher.rewrite(Query original)`
`Query` `IndexSearcher.rewrite(Query original)`
`Query` `Searchable.rewrite(Query query)` Expert: called to re-write queries into primitive queries.
`abstract Query` `Searcher.rewrite(Query query)`

Methods in org.apache.lucene.search with parameters of type Query
`void` `DisjunctionMaxQuery.add(Query query)` Add a subquery to this disjunction
`void` `BooleanQuery.add(Query query, BooleanClause.Occur occur)` Adds a clause to a boolean query.
`Query` `Query.combine(Query[] queries)` Expert: called when re-writing queries under MultiSearcher.
`protected Weight` `MultiSearcher.createWeight(Query original)` Create weight in multiple index scenario.
`protected Weight` `Searcher.createWeight(Query query)` creates a weight for `query`
`Explanation` `Searcher.explain(Query query, int doc)` Returns an Explanation that describes how `doc` scored against `query`.
`Query` `RemoteSearchable.rewrite(Query original)`
`Query` `ParallelMultiSearcher.rewrite(Query original)`
`Query` `MultiSearcher.rewrite(Query original)`
`Query` `IndexSearcher.rewrite(Query original)`
`Query` `Searchable.rewrite(Query query)` Expert: called to re-write queries into primitive queries.
`abstract Query` `Searcher.rewrite(Query query)`
`Hits` `Searcher.search(Query query)` Deprecated. Hits will be removed in Lucene 3.0. Use `Searcher.search(Query, Filter, int)` instead.
`void` `Searcher.search(Query query, Collector results)` Lower-level search API.
`Hits` `Searcher.search(Query query, Filter filter)` Deprecated. Hits will be removed in Lucene 3.0. Use `Searcher.search(Query, Filter, int)` instead.
`void` `Searcher.search(Query query, Filter filter, Collector results)` Lower-level search API.
`void` `Searcher.search(Query query, Filter filter, HitCollector results)` Deprecated. use `Searcher.search(Query, Filter, Collector)` instead.
`TopDocs` `Searcher.search(Query query, Filter filter, int n)` Finds the top `n` hits for `query`, applying `filter` if non-null.
`TopFieldDocs` `Searcher.search(Query query, Filter filter, int n, Sort sort)` Search implementation with arbitrary sorting.
`Hits` `Searcher.search(Query query, Filter filter, Sort sort)` Deprecated. Hits will be removed in Lucene 3.0. Use `Searcher.search(Query, Filter, int, Sort)` instead.
`void` `Searcher.search(Query query, HitCollector results)` Deprecated. use `Searcher.search(Query, Collector)` instead.
`TopDocs` `Searcher.search(Query query, int n)` Finds the top `n` hits for `query`.
`Hits` `Searcher.search(Query query, Sort sort)` Deprecated. Hits will be removed in Lucene 3.0. Use `Searcher.search(Query, Filter, int, Sort)` instead.
`void` `BooleanClause.setQuery(Query query)`

Constructors in org.apache.lucene.search with parameters of type Query
`BooleanClause(Query query, BooleanClause.Occur occur)` Constructs a BooleanClause.
`BoostingQuery(Query match, Query context, float boost)`
`FilteredQuery(Query query, Filter filter)` Constructs a new query which applies a filter to the results of the original query.
`QueryFilter(Query query)` Deprecated. Constructs a filter which only matches documents matching `query`.
`QueryWrapperFilter(Query query)` Constructs a filter which only matches documents matching `query`.

Uses of Query in org.apache.lucene.search.function

Subclasses of Query in org.apache.lucene.search.function
`class` `CustomScoreQuery` Query that sets document score as a programmatic function of several (sub) scores: the score of its subQuery (any query) (optional) the score of its ValueSourceQuery (or queries).
`class` `FieldScoreQuery` A query that scores each document as the value of the numeric input field.
`class` `ValueSourceQuery` Expert: A Query that sets the scores of document to the values obtained from a `ValueSource`.

Methods in org.apache.lucene.search.function that return Query
`Query` `ValueSourceQuery.rewrite(IndexReader reader)`
`Query` `CustomScoreQuery.rewrite(IndexReader reader)`

Constructors in org.apache.lucene.search.function with parameters of type Query
`CustomScoreQuery(Query subQuery)` Create a CustomScoreQuery over input subQuery.
`CustomScoreQuery(Query subQuery, ValueSourceQuery valSrcQuery)` Create a CustomScoreQuery over input subQuery and a `ValueSourceQuery`.
`CustomScoreQuery(Query subQuery, ValueSourceQuery[] valSrcQueries)` Create a CustomScoreQuery over input subQuery and a `ValueSourceQuery`.

Uses of Query in org.apache.lucene.search.highlight

Methods in org.apache.lucene.search.highlight with parameters of type Query
`static WeightedTerm[]` `QueryTermExtractor.getIdfWeightedTerms(Query query, IndexReader reader, java.lang.String fieldName)` Extracts all terms texts of a given Query into an array of WeightedTerms
`static WeightedTerm[]` `QueryTermExtractor.getTerms(Query query)` Extracts all terms texts of a given Query into an array of WeightedTerms
`static WeightedTerm[]` `QueryTermExtractor.getTerms(Query query, boolean prohibited)` Extracts all terms texts of a given Query into an array of WeightedTerms
`static WeightedTerm[]` `QueryTermExtractor.getTerms(Query query, boolean prohibited, java.lang.String fieldName)` Extracts all terms texts of a given Query into an array of WeightedTerms
`java.util.Map` `WeightedSpanTermExtractor.getWeightedSpanTerms(Query query, TokenStream tokenStream)` Creates a Map of `WeightedSpanTerms` from the given `Query` and `TokenStream`.
`java.util.Map` `WeightedSpanTermExtractor.getWeightedSpanTerms(Query query, TokenStream tokenStream, java.lang.String fieldName)` Creates a Map of `WeightedSpanTerms` from the given `Query` and `TokenStream`.
`java.util.Map` `WeightedSpanTermExtractor.getWeightedSpanTermsWithScores(Query query, TokenStream tokenStream, java.lang.String fieldName, IndexReader reader)` Creates a Map of `WeightedSpanTerms` from the given `Query` and `TokenStream`.

Constructors in org.apache.lucene.search.highlight with parameters of type Query
`QueryScorer(Query query)`
`QueryScorer(Query query, IndexReader reader, java.lang.String field)`
`QueryScorer(Query query, IndexReader reader, java.lang.String field, java.lang.String defaultField)`
`QueryScorer(Query query, java.lang.String field)`
`QueryScorer(Query query, java.lang.String field, java.lang.String defaultField)`
`QueryTermScorer(Query query)`
`QueryTermScorer(Query query, IndexReader reader, java.lang.String fieldName)`
`QueryTermScorer(Query query, java.lang.String fieldName)`

Uses of Query in org.apache.lucene.search.payloads

Subclasses of Query in org.apache.lucene.search.payloads
`class` `BoostingTermQuery` Deprecated. See `PayloadTermQuery`
`class` `PayloadNearQuery` This class is very similar to `SpanNearQuery` except that it factors in the value of the payloads located at each of the positions where the `TermSpans` occurs.
`class` `PayloadTermQuery` This class is very similar to `SpanTermQuery` except that it factors in the value of the payload located at each of the positions where the `Term` occurs.

Methods in org.apache.lucene.search.payloads with parameters of type Query
`java.util.Collection` `PayloadSpanUtil.getPayloadsForQuery(Query query)` Query should be rewritten for wild/fuzzy support.

Uses of Query in org.apache.lucene.search.regex

Subclasses of Query in org.apache.lucene.search.regex
`class` `RegexQuery` Implements the regular expression term search query.
`class` `SpanRegexQuery` A SpanQuery version of `RegexQuery` allowing regular expression queries to be nested within other SpanQuery subclasses.

Methods in org.apache.lucene.search.regex that return Query
`Query` `SpanRegexQuery.rewrite(IndexReader reader)`

Uses of Query in org.apache.lucene.search.similar

Subclasses of Query in org.apache.lucene.search.similar
`class` `MoreLikeThisQuery` A simple wrapper for MoreLikeThis for use in scenarios where a Query object is required eg in custom QueryParser extensions.

Methods in org.apache.lucene.search.similar that return Query
`static Query` `SimilarityQueries.formSimilarQuery(java.lang.String body, Analyzer a, java.lang.String field, java.util.Set stop)` Simple similarity query generators.
`Query` `MoreLikeThis.like(java.io.File f)` Return a query that will return docs like the passed file.
`Query` `MoreLikeThis.like(java.io.InputStream is)` Return a query that will return docs like the passed stream.
`Query` `MoreLikeThis.like(int docNum)` Return a query that will return docs like the passed lucene document ID.
`Query` `MoreLikeThis.like(java.io.Reader r)` Return a query that will return docs like the passed Reader.
`Query` `MoreLikeThis.like(java.net.URL u)` Return a query that will return docs like the passed URL.
`Query` `MoreLikeThisQuery.rewrite(IndexReader reader)`

Uses of Query in org.apache.lucene.search.spans

Subclasses of Query in org.apache.lucene.search.spans
`class` `FieldMaskingSpanQuery` Wrapper to allow `SpanQuery` objects participate in composite single-field SpanQueries by 'lying' about their search field.
`class` `SpanFirstQuery` Matches spans near the beginning of a field.
`class` `SpanNearQuery` Matches spans which are near one another.
`class` `SpanNotQuery` Removes matches which overlap with another SpanQuery.
`class` `SpanOrQuery` Matches the union of its clauses.
`class` `SpanQuery` Base class for span-based queries.
`class` `SpanTermQuery` Matches spans containing a term.

Methods in org.apache.lucene.search.spans that return Query
`Query` `SpanWeight.getQuery()`
`Query` `SpanOrQuery.rewrite(IndexReader reader)`
`Query` `SpanNotQuery.rewrite(IndexReader reader)`
`Query` `SpanFirstQuery.rewrite(IndexReader reader)`
`Query` `FieldMaskingSpanQuery.rewrite(IndexReader reader)`
`Query` `SpanNearQuery.rewrite(IndexReader reader)`

Uses of Query in org.apache.lucene.search.vectorhighlight

Methods in org.apache.lucene.search.vectorhighlight with parameters of type Query
`FieldQuery` `FastVectorHighlighter.getFieldQuery(Query query)` create a FieldQuery object.

Uses of Query in org.apache.lucene.spatial.tier

Methods in org.apache.lucene.spatial.tier that return Query
`Query` `DistanceQueryBuilder.getQuery(Query query)`

Methods in org.apache.lucene.spatial.tier with parameters of type Query
`Filter` `DistanceQueryBuilder.getFilter(Query query)`
`Query` `DistanceQueryBuilder.getQuery(Query query)`

Uses of Query in org.apache.lucene.wordnet

Methods in org.apache.lucene.wordnet that return Query
`static Query` `SynExpand.expand(java.lang.String query, Searcher syns, Analyzer a, java.lang.String field, float boost)` Perform synonym expansion on a query.
`static Query` `SynLookup.expand(java.lang.String query, Searcher syns, Analyzer a, java.lang.String field, float boost)` Perform synonym expansion on a query.

Uses of Query in org.apache.lucene.xmlparser

Methods in org.apache.lucene.xmlparser that return Query
`Query` `QueryBuilder.getQuery(org.w3c.dom.Element e)`
`Query` `QueryBuilderFactory.getQuery(org.w3c.dom.Element n)`
`Query` `CoreParser.getQuery(org.w3c.dom.Element e)`
`Query` `CoreParser.parse(java.io.InputStream xmlStream)`

Uses of Query in org.apache.lucene.xmlparser.builders

Methods in org.apache.lucene.xmlparser.builders that return Query
`Query` `MatchAllDocsQueryBuilder.getQuery(org.w3c.dom.Element e)`
`Query` `BoostingQueryBuilder.getQuery(org.w3c.dom.Element e)`
`Query` `BooleanQueryBuilder.getQuery(org.w3c.dom.Element e)`
`Query` `SpanQueryBuilderFactory.getQuery(org.w3c.dom.Element e)`
`Query` `SpanBuilderBase.getQuery(org.w3c.dom.Element e)`
`Query` `TermsQueryBuilder.getQuery(org.w3c.dom.Element e)`
`Query` `UserInputQueryBuilder.getQuery(org.w3c.dom.Element e)`
`Query` `TermQueryBuilder.getQuery(org.w3c.dom.Element e)`
`Query` `FuzzyLikeThisQueryBuilder.getQuery(org.w3c.dom.Element e)`
`Query` `ConstantScoreQueryBuilder.getQuery(org.w3c.dom.Element e)`
`Query` `FilteredQueryBuilder.getQuery(org.w3c.dom.Element e)`
`Query` `LikeThisQueryBuilder.getQuery(org.w3c.dom.Element e)`

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