Inherits Lucene.Net.Search.Query.
|
| MoreLikeThisQuery (String likeText, String[] moreLikeFields, Analyzer analyzer) |
|
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 String | ToString (String field) |
|
String[] | GetMoreLikeFields () |
|
void | SetMoreLikeFields (String[] moreLikeFields) |
|
ISet< string > | GetStopWords () |
|
void | SetStopWords (ISet< string > stopWords) |
|
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:
-
If the query was created by the parser, the printed representation may not be exactly what was parsed. For example, characters that need to be escaped will be represented without the required backslash.
-
Some of the more complicated queries (e.g. span queries) don't have a representation that can be parsed by QueryParser.
|
|
override System.String | ToString () |
| Prints a query to a string.
|
|
virtual Weight | CreateWeight (Searcher searcher) |
| Expert: Constructs an appropriate Weight implementation for this query.
|
|
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) |
|
Definition at line 36 of file MoreLikeThisQuery.cs.
Lucene.Net.Search.Similar.MoreLikeThisQuery.MoreLikeThisQuery |
( |
String |
likeText, |
|
|
String[] |
moreLikeFields, |
|
|
Analyzer |
analyzer |
|
) |
| |
String [] Lucene.Net.Search.Similar.MoreLikeThisQuery.GetMoreLikeFields |
( |
| ) |
|
ISet<string> Lucene.Net.Search.Similar.MoreLikeThisQuery.GetStopWords |
( |
| ) |
|
override Query Lucene.Net.Search.Similar.MoreLikeThisQuery.Rewrite |
( |
IndexReader |
reader | ) |
|
|
virtual |
void Lucene.Net.Search.Similar.MoreLikeThisQuery.SetMoreLikeFields |
( |
String[] |
moreLikeFields | ) |
|
void Lucene.Net.Search.Similar.MoreLikeThisQuery.SetStopWords |
( |
ISet< string > |
stopWords | ) |
|
override String Lucene.Net.Search.Similar.MoreLikeThisQuery.ToString |
( |
String |
field | ) |
|
Analyzer Lucene.Net.Search.Similar.MoreLikeThisQuery.Analyzer |
|
getset |
string Lucene.Net.Search.Similar.MoreLikeThisQuery.LikeText |
|
getset |
int Lucene.Net.Search.Similar.MoreLikeThisQuery.MaxQueryTerms |
|
getset |
int Lucene.Net.Search.Similar.MoreLikeThisQuery.MinDocFreq |
|
getset |
int Lucene.Net.Search.Similar.MoreLikeThisQuery.MinTermFrequency |
|
getset |
float Lucene.Net.Search.Similar.MoreLikeThisQuery.PercentTermsToMatch |
|
getset |
The documentation for this class was generated from the following file: