Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

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

Packages that use Query
org.apache.lucene.queryParser | A simple query parser implemented with JavaCC.
org.apache.lucene.search | Search over indices.
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.spans | The calculus of spans.

Uses of Query in org.apache.lucene.queryParser

Methods in org.apache.lucene.queryParser that return Query
`static Query` | `MultiFieldQueryParser.parse(String query, String[] fields, Analyzer analyzer)` Parses a query which searches on the fields specified.
`static Query` | `MultiFieldQueryParser.parse(String query, String[] fields, int[] flags, Analyzer analyzer)` Parses a query, searching on the fields specified.
`static Query` | `QueryParser.parse(String query, String field, Analyzer analyzer)` Parses a query string, returning a `Query`.
`Query` | `QueryParser.parse(String query)` Parses a query string, returning a Query.
`protected Query` | `QueryParser.getFieldQuery(String field, Analyzer analyzer, String queryText)` Note that parameter analyzer is ignored.
`protected Query` | `QueryParser.getFieldQuery(String field, String queryText)`
`protected Query` | `QueryParser.getFieldQuery(String field, Analyzer analyzer, String queryText, int slop)` Base implementation delegates to `QueryParser.getFieldQuery(String, Analyzer, String)`.
`protected Query` | `QueryParser.getFieldQuery(String field, String queryText, int slop)` Base implementation delegates to `QueryParser.getFieldQuery(String,String)`.
`protected Query` | `QueryParser.getRangeQuery(String field, Analyzer analyzer, String part1, String part2, boolean inclusive)` Note that parameter analyzer is ignored.
`protected Query` | `QueryParser.getRangeQuery(String field, String part1, String part2, boolean inclusive)`
`protected Query` | `QueryParser.getBooleanQuery(Vector clauses)` Factory method for generating query, given a set of clauses.
`protected Query` | `QueryParser.getWildcardQuery(String field, String termStr)` Factory method for generating a query.
`protected Query` | `QueryParser.getPrefixQuery(String field, String termStr)` Factory method for generating a query (similar to (`QueryParser.getWildcardQuery(java.lang.String, java.lang.String)`).
`protected Query` | `QueryParser.getFuzzyQuery(String field, String termStr)` Factory method for generating a query (similar to (`QueryParser.getWildcardQuery(java.lang.String, java.lang.String)`).
`protected Query` | `QueryParser.getFuzzyQuery(String field, String termStr, float minSimilarity)` Factory method for generating a query (similar to (`QueryParser.getWildcardQuery(java.lang.String, java.lang.String)`).
`Query` | `QueryParser.Query(String field)`
`Query` | `QueryParser.Clause(String field)`
`Query` | `QueryParser.Term(String field)`

Methods in org.apache.lucene.queryParser with parameters of type Query
`protected void` | `QueryParser.addClause(Vector clauses, int conj, int mods, 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, typically `TermQuery`s or `PhraseQuery`s.
`class` | `FilteredQuery` A query that applies a filter to the results of another query.
`class` | `FuzzyQuery` Implements the fuzzy search query.
`class` | `MultiTermQuery` A `Query` that matches documents containing a subset of terms provided by a `FilteredTermEnum` enumeration.
`class` | `PhrasePrefixQuery` PhrasePrefixQuery is a generalized version of PhraseQuery, with an added method `PhrasePrefixQuery.add(Term[])`.
`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` A Query that matches documents within an exclusive range.
`class` | `TermQuery` A Query that matches documents containing a term.
`class` | `WildcardQuery` Implements the wildcard search query.

Fields in org.apache.lucene.search declared as Query
`Query` | `BooleanClause.query` The query whose matching documents are combined by the boolean query.

Methods in org.apache.lucene.search that return Query
`Query` | `Query.rewrite(IndexReader reader)` Expert: called to re-write queries into primitive queries.
`Query` | `Query.combine(Query[] queries)` Expert: called when re-writing queries under MultiSearcher.
`static Query` | `Query.mergeBooleanQueries(Query[] queries)` Expert: merges the clauses of a set of BooleanQuery's into a single BooleanQuery.
`Query` | `BooleanQuery.rewrite(IndexReader reader)`
`Query` | `Searchable.rewrite(Query query)` Expert: called to re-write queries into primitive queries.
`Query` | `FilteredQuery.rewrite(IndexReader reader)` Rewrites the wrapped query.
`Query` | `FilteredQuery.getQuery()`
`Query` | `ParallelMultiSearcher.rewrite(Query original)`
`Query` | `RangeQuery.rewrite(IndexReader reader)` FIXME: Describe `rewrite` method here.
`Query` | `RangeQuery.combine(Query[] queries)`
`Query` | `MultiSearcher.rewrite(Query original)`
`Query` | `IndexSearcher.rewrite(Query original)`
`Query` | `PrefixQuery.rewrite(IndexReader reader)`
`Query` | `PrefixQuery.combine(Query[] queries)`
`Query` | `MultiTermQuery.rewrite(IndexReader reader)`
`Query` | `MultiTermQuery.combine(Query[] queries)`
`Query` | `RemoteSearchable.rewrite(Query original)`
`Query` | `Weight.getQuery()` The query that this concerns.

Methods in org.apache.lucene.search with parameters of type Query
`Query` | `Query.combine(Query[] queries)` Expert: called when re-writing queries under MultiSearcher.
`static Query` | `Query.mergeBooleanQueries(Query[] queries)` Expert: merges the clauses of a set of BooleanQuery's into a single BooleanQuery.
`void` | `BooleanQuery.add(Query query, boolean required, boolean prohibited)` Adds a clause to a boolean query.
`void` | `Searchable.search(Query query, Filter filter, HitCollector results)` Lower-level search API.
`TopDocs` | `Searchable.search(Query query, Filter filter, int n)` Expert: Low-level search implementation.
`Query` | `Searchable.rewrite(Query query)` Expert: called to re-write queries into primitive queries.
`Explanation` | `Searchable.explain(Query query, int doc)` Returns an Explanation that describes how `doc` scored against `query`.
`TopFieldDocs` | `Searchable.search(Query query, Filter filter, int n, Sort sort)` Expert: Low-level search implementation with arbitrary sorting.
`Hits` | `Searcher.search(Query query)` Returns the documents matching `query`.
`Hits` | `Searcher.search(Query query, Filter filter)` Returns the documents matching `query` and `filter`.
`Hits` | `Searcher.search(Query query, Sort sort)` Returns documents matching `query` sorted by `sort`.
`Hits` | `Searcher.search(Query query, Filter filter, Sort sort)` Returns documents matching `query` and `filter`, sorted by `sort`.
`void` | `Searcher.search(Query query, HitCollector results)` Lower-level search API.
`TopDocs` | `ParallelMultiSearcher.search(Query query, Filter filter, int nDocs)` A search implementation which spans a new thread for each Searchable, waits for each search to complete and merge the results back together.
`TopFieldDocs` | `ParallelMultiSearcher.search(Query query, Filter filter, int nDocs, Sort sort)` A search implementation allowing sorting which spans a new thread for each Searchable, waits for each search to complete and merges the results back together.
`void` | `ParallelMultiSearcher.search(Query query, Filter filter, HitCollector results)` Lower-level search API.
`Query` | `ParallelMultiSearcher.rewrite(Query original)`
`Query` | `RangeQuery.combine(Query[] queries)`
`TopDocs` | `MultiSearcher.search(Query query, Filter filter, int nDocs)`
`TopFieldDocs` | `MultiSearcher.search(Query query, Filter filter, int n, Sort sort)`
`void` | `MultiSearcher.search(Query query, Filter filter, HitCollector results)`
`Query` | `MultiSearcher.rewrite(Query original)`
`Explanation` | `MultiSearcher.explain(Query query, int doc)`
`TopDocs` | `IndexSearcher.search(Query query, Filter filter, int nDocs)`
`TopFieldDocs` | `IndexSearcher.search(Query query, Filter filter, int nDocs, Sort sort)`
`void` | `IndexSearcher.search(Query query, Filter filter, HitCollector results)`
`Query` | `IndexSearcher.rewrite(Query original)`
`Explanation` | `IndexSearcher.explain(Query query, int doc)`
`Query` | `PrefixQuery.combine(Query[] queries)`
`Query` | `MultiTermQuery.combine(Query[] queries)`
`void` | `RemoteSearchable.search(Query query, Filter filter, HitCollector results)`
`TopDocs` | `RemoteSearchable.search(Query query, Filter filter, int n)`
`TopFieldDocs` | `RemoteSearchable.search(Query query, Filter filter, int n, Sort sort)`
`Query` | `RemoteSearchable.rewrite(Query original)`
`Explanation` | `RemoteSearchable.explain(Query query, int doc)`

Constructors in org.apache.lucene.search with parameters of type Query
`BooleanClause(Query q, boolean r, boolean p)` Constructs a BooleanClause with query `q`, required `r` and prohibited `p`.
`FilteredQuery(Query query, Filter filter)` Constructs a new query which applies a filter to the results of the original query.
`QueryFilter(Query query)` Constructs a filter which only matches documents matching `query`.

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

Methods in org.apache.lucene.search.highlight with parameters of type Query
`static WeightedTerm[]` | `QueryTermExtractor.getTerms(Query query)` Extracts all terms texts of a given Query into an array of WeightedTerms
`static WeightedTerm[]` | `QueryTermExtractor.getIdfWeightedTerms(Query query, IndexReader reader, String fieldName)` 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

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

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

Subclasses of Query in org.apache.lucene.search.spans
`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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

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