Uses of Class org.apache.lucene.search.Query (Lucene 3.6.2 API)

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.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.demo | Demo applications for indexing and searching.
org.apache.lucene.facet.search | Faceted Search API
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.ext | Extendable QueryParser provides a simple and flexible extension mechanism by overloading query field names.
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.join | This modules support index-time and query-time joins.
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.xmlparser | Parser that produces Lucene Query objects from XML streams.
org.apache.lucene.xmlparser.builders | Builders to support various Lucene queries.

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` | `LongToEnglishQueryMaker.makeQuery()`
`Query` | `QueryMaker.makeQuery()` Create the next query
`Query` | `AbstractQueryMaker.makeQuery(int size)`
`Query` | `LongToEnglishQueryMaker.makeQuery(int size)`
`Query` | `QueryMaker.makeQuery(int size)` Create the next query, of the given size.
`protected Query[]` | `ReutersQueryMaker.prepareQueries()`
`protected abstract Query[]` | `AbstractQueryMaker.prepareQueries()`
`protected Query[]` | `SimpleQueryMaker.prepareQueries()` Prepare the queries for this test.
`protected Query[]` | `SimpleSloppyPhraseQueryMaker.prepareQueries()`
`protected Query[]` | `FileBasedQueryMaker.prepareQueries()`
`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` | `ReadTask.getBenchmarkHighlighter(Query q)` Return an appropriate highlighter to be used with highlighting tasks
`protected BenchmarkHighlighter` | `SearchTravRetHighlightTask.getBenchmarkHighlighter(Query q)`

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.demo

Methods in org.apache.lucene.demo with parameters of type Query
`static void` | `SearchFiles.doPagingSearch(BufferedReader in, IndexSearcher 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.

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

Methods in org.apache.lucene.facet.search that return Query
`static Query` | `DrillDown.query(FacetIndexingParams iParams, CategoryPath... paths)` Return a query for drilling down into all given categories (AND).
`static Query` | `DrillDown.query(FacetIndexingParams iParams, Query baseQuery, CategoryPath... paths)` Turn a base query into a drilling-down query for all given category paths (AND).
`static Query` | `DrillDown.query(FacetSearchParams sParams, CategoryPath... paths)` Return a query for drilling down into all given categories (AND).
`static Query` | `DrillDown.query(FacetSearchParams sParams, Query baseQuery, CategoryPath... paths)` Turn a base query into a drilling-down query for all given category paths (AND).
`static Query` | `DrillDown.query(Query baseQuery, CategoryPath... paths)` Turn a base query into a drilling-down query using the default `FacetSearchParams`

Methods in org.apache.lucene.facet.search with parameters of type Query
`static Query` | `DrillDown.query(FacetIndexingParams iParams, Query baseQuery, CategoryPath... paths)` Turn a base query into a drilling-down query for all given category paths (AND).
`static Query` | `DrillDown.query(FacetSearchParams sParams, Query baseQuery, CategoryPath... paths)` Turn a base query into a drilling-down query for all given category paths (AND).
`static Query` | `DrillDown.query(Query baseQuery, CategoryPath... paths)` Turn a base query into a drilling-down query using the default `FacetSearchParams`

Uses of Query in org.apache.lucene.index

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

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(String field)`
`protected Query` | `QueryParser.getBooleanQuery(List<BooleanClause> clauses)` Factory method for generating query, given a set of clauses.
`protected Query` | `QueryParser.getBooleanQuery(List<BooleanClause> clauses, boolean disableCoord)` Factory method for generating query, given a set of clauses.
`protected Query` | `QueryParser.getFieldQuery(String field, String queryText)` Deprecated. Use `QueryParser.getFieldQuery(String,String,boolean)` instead.
`protected Query` | `MultiFieldQueryParser.getFieldQuery(String field, String queryText, boolean quoted)`
`protected Query` | `QueryParser.getFieldQuery(String field, String queryText, boolean quoted)`
`protected Query` | `MultiFieldQueryParser.getFieldQuery(String field, String queryText, int slop)`
`protected Query` | `QueryParser.getFieldQuery(String field, String queryText, int slop)` Base implementation delegates to `QueryParser.getFieldQuery(String,String,boolean)`.
`protected Query` | `QueryParserTestBase.QPTestParser.getFuzzyQuery(String field, String termStr, float minSimilarity)`
`protected Query` | `MultiFieldQueryParser.getFuzzyQuery(String field, String termStr, float minSimilarity)`
`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)`).
`protected Query` | `MultiFieldQueryParser.getPrefixQuery(String field, String termStr)`
`protected Query` | `QueryParser.getPrefixQuery(String field, String termStr)` Factory method for generating a query (similar to `QueryParser.getWildcardQuery(java.lang.String, java.lang.String)`).
`Query` | `QueryParserTestBase.getQuery(String query, Analyzer a)`
`Query` | `QueryParserTestBase.getQueryDOA(String query, Analyzer a)`
`protected Query` | `MultiFieldQueryParser.getRangeQuery(String field, String part1, String part2, boolean inclusive)`
`protected Query` | `QueryParser.getRangeQuery(String field, String part1, String part2, boolean inclusive)`
`protected Query` | `QueryParserTestBase.QPTestParser.getWildcardQuery(String field, String termStr)`
`protected Query` | `MultiFieldQueryParser.getWildcardQuery(String field, String termStr)`
`protected Query` | `QueryParser.getWildcardQuery(String field, String termStr)` Factory method for generating a query.
`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(String field, String part1, 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(String query)` Parses a query string, returning a `Query`.
`static Query` | `MultiFieldQueryParser.parse(Version matchVersion, String[] queries, String[] fields, Analyzer analyzer)` Parses a query which searches on the fields specified.
`static Query` | `MultiFieldQueryParser.parse(Version matchVersion, String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Parses a query, searching on the fields specified.
`static Query` | `MultiFieldQueryParser.parse(Version matchVersion, String query, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Parses a query, searching on the fields specified.
`Query` | `QueryParser.Query(String field)`
`Query` | `QueryParser.Term(String field)`
`Query` | `QueryParser.TopLevelQuery(String field)`

Methods in org.apache.lucene.queryParser with parameters of type Query
`protected void` | `QueryParser.addClause(List<BooleanClause> clauses, int conj, int mods, Query q)`
`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(String field, String termStr, float minSimilarity)` Called when parser parses an input term token that has the fuzzy suffix (~) appended.
`protected Query` | `AnalyzingQueryParser.getPrefixQuery(String field, 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(String field, String part1, String part2, boolean inclusive)` Overrides super class, by passing terms through analyzer.
`protected Query` | `AnalyzingQueryParser.getWildcardQuery(String field, 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(String field, String queryText, int slop)`
`protected Query` | `ComplexPhraseQueryParser.getFuzzyQuery(String field, String termStr, float minSimilarity)`
`protected Query` | `ComplexPhraseQueryParser.getRangeQuery(String field, String part1, String part2, boolean inclusive)`
`protected Query` | `ComplexPhraseQueryParser.getWildcardQuery(String field, String termStr)`
`protected Query` | `ComplexPhraseQueryParser.newRangeQuery(String field, String part1, String part2, boolean inclusive)`
`protected Query` | `ComplexPhraseQueryParser.newTermQuery(Term term)`
`Query` | `ComplexPhraseQueryParser.parse(String query)`

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

Methods in org.apache.lucene.queryParser.ext that return Query
`protected Query` | `ExtendableQueryParser.getFieldQuery(String field, String queryText, boolean quoted)`
`abstract Query` | `ParserExtension.parse(ExtensionQuery query)` Processes the given `ExtensionQuery` and returns a corresponding `Query` instance.

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

Methods in org.apache.lucene.queryParser.standard that return Query
`protected Query` | `QueryParserWrapper.getBooleanQuery(List<BooleanClause> clauses, boolean disableCoord)` Deprecated.
`protected Query` | `QueryParserWrapper.getFieldQuery(String field, String queryText)` Deprecated. Use `QueryParserWrapper.getFieldQuery(String, String, boolean)` instead
`protected Query` | `QueryParserWrapper.getFieldQuery(String field, String queryText, boolean quoted)` Deprecated.
`protected Query` | `QueryParserWrapper.getFieldQuery(String field, String queryText, int slop)` Deprecated. Base implementation delegates to `QueryParserWrapper.getFieldQuery(String,String)`.
`protected Query` | `QueryParserWrapper.getFuzzyQuery(String field, String termStr, float minSimilarity)` Deprecated.
`protected Query` | `QueryParserWrapper.getPrefixQuery(String field, String termStr)` Deprecated.
`protected Query` | `QueryParserWrapper.getRangeQuery(String field, String part1, String part2, boolean inclusive)` Deprecated.
`protected Query` | `QueryParserWrapper.getWildcardQuery(String field, String termStr)` Deprecated.
`Query` | `QueryParserWrapper.parse(String query)` Deprecated.
`static Query` | `MultiFieldQueryParserWrapper.parse(String[] queries, String[] fields, Analyzer analyzer)` Deprecated. Parses a query which searches on the fields specified.
`static Query` | `QueryParserUtil.parse(String[] queries, String[] fields, Analyzer analyzer)` Parses a query which searches on the fields specified.
`static Query` | `MultiFieldQueryParserWrapper.parse(String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Deprecated. Parses a query, searching on the fields specified.
`static Query` | `QueryParserUtil.parse(String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Parses a query, searching on the fields specified.
`Query` | `StandardQueryParser.parse(String query, String defaultField)` Overrides `QueryParserHelper.parse(String, String)` so it casts the return object to `Query`.
`static Query` | `MultiFieldQueryParserWrapper.parse(String query, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Deprecated. Parses a query, searching on the fields specified.
`static Query` | `QueryParserUtil.parse(String query, 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` | `StandardQueryTreeBuilder.build(QueryNode queryNode)`
`Query` | `GroupQueryNodeBuilder.build(QueryNode queryNode)`
`Query` | `BoostQueryNodeBuilder.build(QueryNode queryNode)`
`Query` | `ModifierQueryNodeBuilder.build(QueryNode queryNode)`
`Query` | `SlopQueryNodeBuilder.build(QueryNode queryNode)`
`Query` | `StandardQueryBuilder.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, String fieldName, float boost, BasicQueryFactory qf)`
`Query` | `SrndQuery.makeLuceneQueryField(String fieldName, BasicQueryFactory qf)`
`Query` | `SimpleTerm.makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)`
`Query` | `NotQuery.makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)`
`Query` | `OrQuery.makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)`
`abstract Query` | `SrndQuery.makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)`
`Query` | `DistanceQuery.makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)`
`Query` | `FieldsQuery.makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)`
`Query` | `AndQuery.makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)`
`Query` | `FieldsQuery.makeLuceneQueryNoBoost(BasicQueryFactory qf)`

Methods in org.apache.lucene.queryParser.surround.query that return types with arguments of type Query
`List<Query>` | `ComposedQuery.makeLuceneSubQueriesField(String fn, 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

Classes in org.apache.lucene.search with type parameters of type Query
`static class` | `Scorer.ScorerVisitor<P extends Query,C extends Query,S extends Scorer>` A callback to gather information from a scorer and its sub-scorers.
`static class` | `Scorer.ScorerVisitor<P extends Query,C extends Query,S extends Scorer>` A callback to gather information from a scorer and its sub-scorers.
`class` | `ScoringRewrite<Q extends Query>`
`class` | `TopTermsRewrite<Q extends Query>` Base rewrite method for collecting only the top terms via a priority queue.

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 another query or a filter and simply returns a constant score equal to the query boost for every document that matches the filter or query.
`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` | `NGramPhraseQuery` This is a `PhraseQuery` which is optimized for n-gram phrase query.
`class` | `NumericRangeQuery<T extends Number>` 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` | `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.

Fields in org.apache.lucene.search declared as Query
`protected Query` | `ConstantScoreQuery.query`

Methods in org.apache.lucene.search that return Query
`Query` | `Query.combine(Query[] queries)` Expert: called when re-writing queries under MultiSearcher.
`Query` | `ConstantScoreQuery.getQuery()` Returns the encapsulated query, returns `null` if a filter is wrapped.
`Query` | `ConstantScoreQuery.ConstantWeight.getQuery()`
`Query` | `DisjunctionMaxQuery.DisjunctionMaxWeight.getQuery()` Return our associated DisjunctionMaxQuery
`Query` | `BooleanQuery.BooleanWeight.getQuery()`
`Query` | `BooleanClause.getQuery()`
`Query` | `FilteredQuery.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` | `FuzzyLikeThisQuery.rewrite(IndexReader reader)`
`Query` | `BoostingQuery.rewrite(IndexReader reader)`
`Query` | `ConstantScoreQuery.rewrite(IndexReader reader)`
`Query` | `MultiTermQuery.rewrite(IndexReader reader)` To rewrite to a simpler form, instead return a simpler enum from `MultiTermQuery.getEnum(IndexReader)`.
`Query` | `DisjunctionMaxQuery.rewrite(IndexReader reader)` Optimize our representation and our subqueries representations
`Query` | `BooleanQuery.rewrite(IndexReader reader)`
`Query` | `MultiPhraseQuery.rewrite(IndexReader reader)`
`Query` | `NGramPhraseQuery.rewrite(IndexReader reader)`
`Query` | `PhraseQuery.rewrite(IndexReader reader)`
`Query` | `FilteredQuery.rewrite(IndexReader reader)` Rewrites the wrapped query.
`Query` | `Query.rewrite(IndexReader reader)` Expert: called to re-write queries into primitive queries.
`abstract Query` | `MultiTermQuery.RewriteMethod.rewrite(IndexReader reader, MultiTermQuery query)`
`Query` | `RemoteSearchable.rewrite(Query original)` Deprecated.
`Query` | `IndexSearcher.rewrite(Query original)` Expert: called to re-write queries into primitive queries.
`abstract Query` | `Searcher.rewrite(Query query)` Deprecated.
`Query` | `Searchable.rewrite(Query query)` Deprecated. Expert: called to re-write queries into primitive queries.
`Query` | `MultiSearcher.rewrite(Query original)` Deprecated.

Methods in org.apache.lucene.search that return types with arguments of type Query
`Iterator<Query>` | `DisjunctionMaxQuery.iterator()` An Iterator over the disjuncts

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.
`void` | `SearchEquivalenceTestBase.assertSameSet(Query q1, Query q2)` Asserts that the documents returned by `q1` are the same as of those returned by `q2`
`void` | `SearchEquivalenceTestBase.assertSubsetOf(Query q1, Query q2)` Asserts that the documents returned by `q1` are a subset of those returned by `q2`
`protected void` | `SearchEquivalenceTestBase.assertSubsetOf(Query q1, Query q2, Filter filter)` Asserts that the documents returned by `q1` are a subset of those returned by `q2`.
`static void` | `QueryUtils.check(Query q)` Check the types of things query objects should be able to do.
`static void` | `QueryUtils.check(Random random, Query q1, Searcher s)` Various query sanity checks on a searcher, some checks are only done for instanceof IndexSearcher.
`static void` | `QueryUtils.check(Random random, Query q1, Searcher s, boolean wrap)`
`static void` | `QueryUtils.checkEqual(Query q1, Query q2)`
`static void` | `CheckHits.checkEqual(Query query, ScoreDoc[] hits1, ScoreDoc[] hits2)`
`protected void` | `CheckHits.ExplanationAssertingSearcher.checkExplanations(Query q)`
`static void` | `QueryUtils.checkExplanations(Query q, Searcher s)` deep check that explanations of a query 'score' correctly
`static void` | `CheckHits.checkExplanations(Query query, String defaultFieldName, Searcher searcher)` Asserts that the explanation value for every document matching a query corresponds with the true score.
`static void` | `CheckHits.checkExplanations(Query query, String defaultFieldName, Searcher searcher, boolean deep)` Asserts that the explanation value for every document matching a query corresponds with the true score.
`static void` | `QueryUtils.checkHashEquals(Query q)` check very basic hashCode and equals
`static void` | `CheckHits.checkHitCollector(Random random, Query query, String defaultFieldName, Searcher searcher, int[] results)` Tests that a query matches the an expected set of documents using a HitCollector.
`static void` | `CheckHits.checkHits(Random random, Query query, String defaultFieldName, Searcher searcher, int[] results)` Tests that a query matches the an expected set of documents using Hits.
`static void` | `CheckHits.checkHitsQuery(Query query, ScoreDoc[] hits1, ScoreDoc[] hits2, int[] results)` Tests that two queries have an expected order of documents, and that the two queries have the same score values.
`static void` | `CheckHits.checkNoMatchExplanations(Query q, String defaultFieldName, Searcher searcher, int[] results)` Tests that all documents up to maxDoc which are *not* in the expected result set, have an explanation which indicates that the document does not match
`static void` | `QueryUtils.checkSkipTo(Query q, IndexSearcher s)` alternate scorer skipTo(),skipTo(),next(),next(),skipTo(),skipTo(), etc and ensure a hitcollector receives same docs and scores
`static void` | `QueryUtils.checkUnequal(Query q1, Query q2)`
`Query` | `Query.combine(Query[] queries)` Expert: called when re-writing queries under MultiSearcher.
`Weight` | `AssertingIndexSearcher.createNormalizedWeight(Query query)` Ensures, that the returned `Weight` is not normalized again, which may produce wrong scores.
`Weight` | `IndexSearcher.createNormalizedWeight(Query query)` Creates a normalized weight for a top-level `Query`.
`Weight` | `Searcher.createNormalizedWeight(Query query)` Deprecated. Creates a normalized weight for a top-level `Query`.
`Weight` | `MultiSearcher.createNormalizedWeight(Query original)` Deprecated. Create weight in multiple index scenario.
`protected Weight` | `Searcher.createWeight(Query query)` Deprecated. never ever use this method in `Weight` implementations. Subclasses of Searcher should use `Searcher.createNormalizedWeight(org.apache.lucene.search.Query)`, instead.
`long` | `NRTManager.TrackingIndexWriter.deleteDocuments(Query... queries)`
`long` | `NRTManager.TrackingIndexWriter.deleteDocuments(Query q)`
`Explanation` | `IndexSearcher.explain(Query query, int doc)` Returns an Explanation that describes how `doc` scored against `query`.
`Explanation` | `Searcher.explain(Query query, int doc)` Deprecated. Returns an Explanation that describes how `doc` scored against `query`.
`Query` | `RemoteSearchable.rewrite(Query original)` Deprecated.
`Query` | `IndexSearcher.rewrite(Query original)` Expert: called to re-write queries into primitive queries.
`abstract Query` | `Searcher.rewrite(Query query)` Deprecated.
`Query` | `Searchable.rewrite(Query query)` Deprecated. Expert: called to re-write queries into primitive queries.
`Query` | `MultiSearcher.rewrite(Query original)` Deprecated.
`void` | `CheckHits.ExplanationAssertingSearcher.search(Query query, Collector results)`
`void` | `IndexSearcher.search(Query query, Collector results)` Lower-level search API.
`void` | `Searcher.search(Query query, Collector results)` Deprecated. Lower-level search API.
`void` | `CheckHits.ExplanationAssertingSearcher.search(Query query, Filter filter, Collector results)`
`void` | `IndexSearcher.search(Query query, Filter filter, Collector results)` Lower-level search API.
`void` | `Searcher.search(Query query, Filter filter, Collector results)` Deprecated. Lower-level search API.
`TopDocs` | `CheckHits.ExplanationAssertingSearcher.search(Query query, Filter filter, int n)`
`TopDocs` | `IndexSearcher.search(Query query, Filter filter, int n)` Finds the top `n` hits for `query`, applying `filter` if non-null.
`TopDocs` | `Searcher.search(Query query, Filter filter, int n)` Deprecated. Finds the top `n` hits for `query`, applying `filter` if non-null.
`TopFieldDocs` | `CheckHits.ExplanationAssertingSearcher.search(Query query, Filter filter, int n, Sort sort)`
`TopFieldDocs` | `IndexSearcher.search(Query query, Filter filter, int n, Sort sort)` Search implementation with arbitrary sorting.
`TopFieldDocs` | `Searcher.search(Query query, Filter filter, int n, Sort sort)` Deprecated. Search implementation with arbitrary sorting.
`TopDocs` | `IndexSearcher.search(Query query, int n)` Finds the top `n` hits for `query`.
`TopDocs` | `Searcher.search(Query query, int n)` Deprecated. Finds the top `n` hits for `query`.
`TopFieldDocs` | `IndexSearcher.search(Query query, int n, Sort sort)` Search implementation with arbitrary sorting and no filter.
`TopFieldDocs` | `Searcher.search(Query query, int n, Sort sort)` Deprecated. Search implementation with arbitrary sorting and no filter.
`TopDocs` | `IndexSearcher.searchAfter(ScoreDoc after, Query query, Filter filter, int n)` Finds the top `n` hits for `query`, applying `filter` if non-null, where all results are after a previous result (`after`).
`TopDocs` | `IndexSearcher.searchAfter(ScoreDoc after, Query query, int n)` Finds the top `n` hits for `query` where all results are after a previous result (`after`).
`void` | `BooleanClause.setQuery(Query query)`
`void` | `Scorer.visitSubScorers(Query parent, BooleanClause.Occur relationship, Scorer.ScorerVisitor<Query,Query,Scorer> visitor)` `Scorer` subclasses should implement this method if the subclass itself contains multiple scorers to support gathering details for sub-scorers via `Scorer.ScorerVisitor`

Method parameters in org.apache.lucene.search with type arguments of type Query
`void` | `DisjunctionMaxQuery.add(Collection<Query> disjuncts)` Add a collection of disjuncts to this disjunction via Iterable
`void` | `Scorer.visitScorers(Scorer.ScorerVisitor<Query,Query,Scorer> visitor)` Expert: call this to gather details for all sub-scorers for this query.
`void` | `Scorer.visitScorers(Scorer.ScorerVisitor<Query,Query,Scorer> visitor)` Expert: call this to gather details for all sub-scorers for this query.
`void` | `Scorer.visitSubScorers(Query parent, BooleanClause.Occur relationship, Scorer.ScorerVisitor<Query,Query,Scorer> visitor)` `Scorer` subclasses should implement this method if the subclass itself contains multiple scorers to support gathering details for sub-scorers via `Scorer.ScorerVisitor`
`void` | `Scorer.visitSubScorers(Query parent, BooleanClause.Occur relationship, Scorer.ScorerVisitor<Query,Query,Scorer> visitor)` `Scorer` subclasses should implement this method if the subclass itself contains multiple scorers to support gathering details for sub-scorers via `Scorer.ScorerVisitor`

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)`
`CheckHits.ExplanationAsserter(Query q, String defaultFieldName, Searcher s)` Constructs an instance which does shallow tests on the Explanation
`CheckHits.ExplanationAsserter(Query q, String defaultFieldName, Searcher s, boolean deep)`
`ConstantScoreQuery(Query query)` Strips off scores from the passed in Query.
`FilteredQuery(Query query, Filter filter)` Constructs a new query which applies a filter to the results of the original query.
`QueryWrapperFilter(Query query)` Constructs a filter which only matches documents matching `query`.

Constructor parameters in org.apache.lucene.search with type arguments of type Query
`DisjunctionMaxQuery(Collection<Query> disjuncts, float tieBreakerMultiplier)` Creates a new DisjunctionMaxQuery

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... valSrcQueries)` Create a CustomScoreQuery over input subQuery and a `ValueSourceQuery`.
`CustomScoreQuery(Query subQuery, ValueSourceQuery valSrcQuery)` 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
`protected void` | `WeightedSpanTermExtractor.extract(Query query, Map<String,WeightedSpanTerm> terms)` Fills a `Map` with <@link WeightedSpanTerm>s using the terms from the supplied `Query`.
`protected void` | `WeightedSpanTermExtractor.extractUnknownQuery(Query query, Map<String,WeightedSpanTerm> terms)`
`protected void` | `WeightedSpanTermExtractor.extractWeightedTerms(Map<String,WeightedSpanTerm> terms, Query query)` Fills a `Map` with <@link WeightedSpanTerm>s using the terms from the supplied `Query`.
`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)` 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, String fieldName)` Extracts all terms texts of a given Query into an array of WeightedTerms
`Map<String,WeightedSpanTerm>` | `WeightedSpanTermExtractor.getWeightedSpanTerms(Query query, TokenStream tokenStream)` Creates a Map of `WeightedSpanTerms` from the given `Query` and `TokenStream`.
`Map<String,WeightedSpanTerm>` | `WeightedSpanTermExtractor.getWeightedSpanTerms(Query query, TokenStream tokenStream, String fieldName)` Creates a Map of `WeightedSpanTerms` from the given `Query` and `TokenStream`.
`Map<String,WeightedSpanTerm>` | `WeightedSpanTermExtractor.getWeightedSpanTermsWithScores(Query query, TokenStream tokenStream, 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, String field)`
`QueryScorer(Query query, IndexReader reader, String field, String defaultField)`
`QueryScorer(Query query, String field)`
`QueryScorer(Query query, String field, String defaultField)`
`QueryTermScorer(Query query)`
`QueryTermScorer(Query query, IndexReader reader, String fieldName)`
`QueryTermScorer(Query query, String fieldName)`

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

Subclasses of Query in org.apache.lucene.search.join
`class` | `ToChildBlockJoinQuery` Just like `ToParentBlockJoinQuery`, except this query joins in reverse: you provide a Query matching parent documents and it joins down to child documents.
`class` | `ToParentBlockJoinQuery` This query requires that you index children and parent docs as a single block, using the `IndexWriter.addDocuments(java.util.Collection)` or `IndexWriter.updateDocuments(org.apache.lucene.index.Term, java.util.Collection)` API.

Methods in org.apache.lucene.search.join that return Query
`static Query` | `JoinUtil.createJoinQuery(String fromField, String toField, Query fromQuery, IndexSearcher fromSearcher)` Method for query time joining.
`Query` | `ToChildBlockJoinQuery.rewrite(IndexReader reader)`
`Query` | `ToParentBlockJoinQuery.rewrite(IndexReader reader)`

Methods in org.apache.lucene.search.join with parameters of type Query
`static Query` | `JoinUtil.createJoinQuery(String fromField, String toField, Query fromQuery, IndexSearcher fromSearcher)` Method for query time joining.

Constructors in org.apache.lucene.search.join with parameters of type Query
`ToChildBlockJoinQuery(Query parentQuery, Filter parentsFilter, boolean doScores)`
`ToParentBlockJoinQuery(Query childQuery, Filter parentsFilter, ToParentBlockJoinQuery.ScoreMode scoreMode)` Create a ToParentBlockJoinQuery.

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

Subclasses of Query in org.apache.lucene.search.payloads
`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
`Collection<byte[]>` | `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` Deprecated. Use `new SpanMultiTermQueryWrapper<RegexQuery>(new RegexQuery())` instead. This query will be removed in Lucene 4.0

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(String body, Analyzer a, String field, Set<?> stop)` Simple similarity query generators.
`Query` | `MoreLikeThis.like(File f)` Deprecated. use `MoreLikeThis.like(Reader, String)` instead
`Query` | `MoreLikeThis.like(InputStream is)` Deprecated. use `MoreLikeThis.like(Reader, String)` instead
`Query` | `MoreLikeThis.like(int docNum)` Return a query that will return docs like the passed lucene document ID.
`Query` | `MoreLikeThis.like(Reader r)` Deprecated. use `MoreLikeThis.like(Reader, String)` instead
`Query` | `MoreLikeThis.like(Reader r, String fieldName)` Return a query that will return docs like the passed Reader.
`Query` | `MoreLikeThis.like(URL u)` Deprecated. use `MoreLikeThis.like(Reader, String)` instead
`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` | `SpanMultiTermQueryWrapper<Q extends MultiTermQuery>` Wraps any `MultiTermQuery` as a `SpanQuery`, so it can be nested within other SpanQuery classes.
`class` | `SpanNearPayloadCheckQuery` Only return those matches that have a specific payload at the given position.
`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` | `SpanPayloadCheckQuery` Only return those matches that have a specific payload at the given position.
`class` | `SpanPositionCheckQuery` Base class for filtering a SpanQuery based on the position of a match.
`class` | `SpanPositionRangeQuery` Checks to see if the `SpanPositionCheckQuery.getMatch()` lies between a start and end position
`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` | `SpanPositionCheckQuery.rewrite(IndexReader reader)`
`Query` | `SpanNearQuery.rewrite(IndexReader reader)`
`Query` | `SpanNotQuery.rewrite(IndexReader reader)`
`Query` | `SpanMultiTermQueryWrapper.rewrite(IndexReader reader)`
`Query` | `FieldMaskingSpanQuery.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.
`FieldQuery` | `FastVectorHighlighter.getFieldQuery(Query query, IndexReader reader)` 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)` Deprecated.

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

Uses of Query in org.apache.lucene.xmlparser

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

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

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

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