Click or drag to resize

KeywordQuery Methods


The KeywordQuery type exposes the following members.

Methods
  Name Description
Public method Add(BooleanClause) Adds a clause to a boolean query.
(Inherited from BooleanQuery)
Public method Add(Query, Occur) Adds a clause to a boolean query.
(Inherited from BooleanQuery)
Public method Clone
(Inherited from BooleanQuery)
Public method Combine 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 method CreateWeight
(Inherited from BooleanQuery)
Public method Equals Returns true iff o is equal to this.
(Inherited from BooleanQuery)
Public method ExtractTerms
(Inherited from BooleanQuery)
Public method GetClauses Returns the set of clauses in this query.
(Inherited from BooleanQuery)
Public method GetEnumerator Returns an iterator on the clauses in this query.
(Inherited from BooleanQuery)
Public method GetHashCode Returns a hash code value for this object.
(Inherited from BooleanQuery)
Public method GetSimilarity
(Inherited from BooleanQuery)
Public method IsCoordDisabled Returns true iff Coord(Int32, Int32) is disabled in scoring for this query instance.
(Inherited from BooleanQuery)
Public method Rewrite
(Inherited from BooleanQuery)
Public method ToString Prints a query to a string.
(Inherited from Query)
Public method ToString(String) Prints a user-readable version of this query.
(Inherited from BooleanQuery)
Public method Weight Expert: Constructs and initializes a Weight for a top-level query.
(Inherited from Query)
Top
See Also