Click or drag to resize

KeywordQuery Methods


The KeywordQuery type exposes the following members.

Methods
  NameDescription
Public methodAdd(BooleanClause)
Adds a clause to a boolean query.
(Inherited from BooleanQuery.)
Public methodAdd(Query, Occur)
Adds a clause to a boolean query.
(Inherited from BooleanQuery.)
Public methodClone (Inherited from BooleanQuery.)
Public methodCombine
Expert: called when re-writing queries under MultiSearcher. Create a single query suitable for use by all subsearchers (in 1-1 correspondence with queries). This is an optimization of the OR of all queries. We handle the common optimization cases of equal queries and overlapping clauses of boolean OR queries (as generated by MultiTermQuery.rewrite()). Be careful overriding this method as queries[0] determines which method will be called and is not necessarily of the same type as the other queries.
(Inherited from Query.)
Public methodCreateWeight (Inherited from BooleanQuery.)
Public methodEquals
Returns true iff o is equal to this.
(Inherited from BooleanQuery.)
Public methodExtractTerms (Inherited from BooleanQuery.)
Public methodGetClauses
Returns the set of clauses in this query.
(Inherited from BooleanQuery.)
Public methodGetEnumerator
Returns an iterator on the clauses in this query.
(Inherited from BooleanQuery.)
Public methodGetHashCode
Returns a hash code value for this object.
(Inherited from BooleanQuery.)
Public methodGetSimilarity (Inherited from BooleanQuery.)
Public methodIsCoordDisabled
Returns true iff Coord(Int32, Int32) is disabled in scoring for this query instance.
(Inherited from BooleanQuery.)
Public methodRewrite (Inherited from BooleanQuery.)
Public methodToString
Prints a query to a string.
(Inherited from Query.)
Public methodToString(String)
Prints a user-readable version of this query.
(Inherited from BooleanQuery.)
Public methodWeight
Expert: Constructs and initializes a Weight for a top-level query.
(Inherited from Query.)
Top
See Also