Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
A SpanQuery version of RegexQuery allowing regular expression queries to be nested within other SpanQuery subclasses. More...
Inherits Lucene.Net.Search.Spans.SpanQuery, Contrib.Regex.IRegexQueryCapable, and IEquatable< SpanRegexQuery >.
Public Member Functions | |
SpanRegexQuery (Term term) | |
override string | ToString (string field) |
override Query | Rewrite (IndexReader reader) |
Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys. | |
override Lucene.Net.Search.Spans.Spans | GetSpans (IndexReader reader) |
Expert: Returns the matches for this query in an index. Used internally to search for spans. | |
ICollection< Term > | GetTerms () |
bool | Equals (SpanRegexQuery other) |
Indicates whether the current object is equal to another object of the same type. | |
override bool | Equals (object obj) |
True if this object equals the specified object. | |
override int | GetHashCode () |
Get hash code for this object. | |
Public Member Functions inherited from Lucene.Net.Search.Spans.SpanQuery | |
override Weight | CreateWeight (Searcher searcher) |
Expert: Constructs an appropriate Weight implementation for this query. | |
Public Member Functions inherited from Lucene.Net.Search.Query | |
abstract System.String | ToString (System.String field) |
Prints a query to a string, with field assumed to be the default field and omitted. The representation used is one that is supposed to be readable by QueryParser. However, there are the following limitations:
| |
override System.String | ToString () |
Prints a query to a string. | |
virtual Weight | Weight (Searcher searcher) |
Expert: Constructs and initializes a Weight for a top-level query. | |
virtual Query | Combine (Query[] queries) |
Expert: called when re-writing queries under MultiSearcher. | |
virtual void | ExtractTerms (System.Collections.Generic.ISet< Term > terms) |
Expert: adds all terms occuring in this query to the terms set. Only works if this query is in its rewritten form. | |
virtual Similarity | GetSimilarity (Searcher searcher) |
Expert: Returns the Similarity implementation to be used for this query. Subclasses may override this method to specify their own Similarity implementation, perhaps one that delegates through that of the Searcher. By default the Searcher's Similarity implementation is returned. | |
virtual System.Object | Clone () |
Returns a clone of this query. | |
override int | GetHashCode () |
override bool | Equals (System.Object obj) |
Properties | |
Term | Term [get] |
override string | Field [get] |
Returns the name of the field matched by this query. | |
IRegexCapabilities | RegexImplementation [get, set] |
Properties inherited from Lucene.Net.Search.Spans.SpanQuery | |
abstract string | Field [get] |
Returns the name of the field matched by this query. | |
Properties inherited from Lucene.Net.Search.Query | |
virtual float | Boost [get, set] |
Gets or sets the boost for this query clause to b . Documents matching this clause will (in addition to the normal weightings) have their score multiplied by b . The boost is 1.0 by default. | |
Properties inherited from Contrib.Regex.IRegexQueryCapable | |
IRegexCapabilities | RegexImplementation [get, set] |
Additional Inherited Members | |
Static Public Member Functions inherited from Lucene.Net.Search.Query | |
static Query | MergeBooleanQueries (params BooleanQuery[] queries) |
Expert: merges the clauses of a set of BooleanQuery's into a single BooleanQuery. | |
A SpanQuery version of RegexQuery allowing regular expression queries to be nested within other SpanQuery subclasses.
Definition at line 33 of file SpanRegexQuery.cs.
Contrib.Regex.SpanRegexQuery.SpanRegexQuery | ( | Term | term | ) |
Definition at line 38 of file SpanRegexQuery.cs.
bool Contrib.Regex.SpanRegexQuery.Equals | ( | SpanRegexQuery | other | ) |
Indicates whether the current object is equal to another object of the same type.
other | An object to compare with this object. |
Definition at line 123 of file SpanRegexQuery.cs.
override bool Contrib.Regex.SpanRegexQuery.Equals | ( | object | obj | ) |
True if this object equals the specified object.
obj | object |
Definition at line 139 of file SpanRegexQuery.cs.
override int Contrib.Regex.SpanRegexQuery.GetHashCode | ( | ) |
|
virtual |
Expert: Returns the matches for this query in an index. Used internally to search for spans.
Implements Lucene.Net.Search.Spans.SpanQuery.
Definition at line 89 of file SpanRegexQuery.cs.
ICollection<Term> Contrib.Regex.SpanRegexQuery.GetTerms | ( | ) |
Definition at line 103 of file SpanRegexQuery.cs.
|
virtual |
Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
Reimplemented from Lucene.Net.Search.Query.
Definition at line 58 of file SpanRegexQuery.cs.
override string Contrib.Regex.SpanRegexQuery.ToString | ( | string | field | ) |
Definition at line 48 of file SpanRegexQuery.cs.
|
get |
Returns the name of the field matched by this query.
Definition at line 96 of file SpanRegexQuery.cs.
|
getset |
Definition at line 110 of file SpanRegexQuery.cs.
|
get |
Definition at line 44 of file SpanRegexQuery.cs.