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 Table Of Contents 
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
protected  Query MultiFieldQueryParser.getFieldQuery(String field, String queryText, int slop)
           
protected  Query MultiFieldQueryParser.getFieldQuery(String field, String queryText)
           
protected  Query MultiFieldQueryParser.getFuzzyQuery(String field, String termStr, float minSimilarity)
           
protected  Query MultiFieldQueryParser.getPrefixQuery(String field, String termStr)
           
protected  Query MultiFieldQueryParser.getWildcardQuery(String field, String termStr)
           
protected  Query MultiFieldQueryParser.getRangeQuery(String field, String part1, String part2, boolean inclusive)
           
static Query MultiFieldQueryParser.parse(String[] queries, String[] fields, Analyzer analyzer)
          Parses a query which searches on the fields specified.
static Query MultiFieldQueryParser.parse(String query, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)
          Parses a query, searching on the fields specified.
static Query MultiFieldQueryParser.parse(String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)
          Parses a query, searching on the fields specified.
 Query QueryParser.parse(String query)
          Parses a query string, returning a Query.
protected  Query QueryParser.getFieldQuery(String field, String queryText)
           
protected  Query QueryParser.getFieldQuery(String field, String queryText, int slop)
          Base implementation delegates to QueryParser.getFieldQuery(String,String).
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.getBooleanQuery(Vector clauses, boolean disableCoord)
          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, 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, e.g.
 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
          A range query that returns a constant score equal to its boost for all documents in the range.
 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 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
          A Query that matches documents containing a subset of terms provided by a FilteredTermEnum enumeration.
 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.
 

Methods in org.apache.lucene.search that return Query
 Query BooleanClause.getQuery()
           
 Query BooleanQuery.rewrite(IndexReader reader)
           
 Query ConstantScoreQuery.rewrite(IndexReader reader)
           
 Query ConstantScoreQuery.ConstantWeight.getQuery()
           
 Query ConstantScoreRangeQuery.rewrite(IndexReader reader)
           
 Query DisjunctionMaxQuery.rewrite(IndexReader reader)
          Optimize our representation and our subqueries representations
 Query FilteredQuery.rewrite(IndexReader reader)
          Rewrites the wrapped query.
 Query FilteredQuery.getQuery()
           
 Query FuzzyQuery.rewrite(IndexReader reader)
           
 Query IndexSearcher.rewrite(Query original)
           
 Query MultiPhraseQuery.rewrite(IndexReader reader)
           
 Query MultiSearcher.rewrite(Query original)
           
 Query MultiTermQuery.rewrite(IndexReader reader)
           
 Query ParallelMultiSearcher.rewrite(Query original)
           
 Query PrefixQuery.rewrite(IndexReader reader)
           
 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 RangeQuery.rewrite(IndexReader reader)
           
 Query RemoteSearchable.rewrite(Query original)
           
 Query Searchable.rewrite(Query query)
          Expert: called to re-write queries into primitive queries.
abstract  Query Searcher.rewrite(Query query)
           
 Query Weight.getQuery()
          The query that this concerns.
 Query WildcardQuery.rewrite(IndexReader reader)
           
 

Methods in org.apache.lucene.search with parameters of type Query
 void BooleanClause.setQuery(Query query)
           
 void BooleanQuery.add(Query query, BooleanClause.Occur occur)
          Adds a clause to a boolean query.
 void DisjunctionMaxQuery.add(Query query)
          Add a subquery to this disjunction
 Query IndexSearcher.rewrite(Query original)
           
 Query MultiSearcher.rewrite(Query original)
           
protected  Weight MultiSearcher.createWeight(Query original)
          Create weight in multiple index scenario.
 Query ParallelMultiSearcher.rewrite(Query original)
           
 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 RemoteSearchable.rewrite(Query original)
           
 Query Searchable.rewrite(Query query)
          Expert: called to re-write queries into primitive queries.
 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.
 TopFieldDocs Searcher.search(Query query, Filter filter, int n, Sort sort)
          Expert: Low-level search implementation with arbitrary sorting.
 void Searcher.search(Query query, HitCollector results)
          Lower-level search API.
 void Searcher.search(Query query, Filter filter, HitCollector results)
          Lower-level search API.
 TopDocs Searcher.search(Query query, Filter filter, int n)
          Expert: Low-level search implementation.
 Explanation Searcher.explain(Query query, int doc)
          Returns an Explanation that describes how doc scored against query.
protected  Weight Searcher.createWeight(Query query)
          creates a weight for query
abstract  Query Searcher.rewrite(Query query)
           
 

Constructors in org.apache.lucene.search with parameters of type Query
BooleanClause(Query query, BooleanClause.Occur occur)
          Constructs a BooleanClause.
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.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.
 

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



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