Method | Description | |
---|---|---|
Analyzer ( String analyzer ) : |
The analyzer that will be used to analyze the text. Defaults to the analyzer associated with the fied.
|
|
Boost ( float boost ) : |
||
BoostTerms ( float boostTerms ) : |
Sets the boost factor to use when boosting terms. Defaults to 1.
|
|
LikeText ( string likeText ) : |
The text to use in order to find documents that are "like" this.
|
|
MaxDocFreq ( int maxDocFreq ) : |
Set the maximum frequency in which words may still appear. Words that appear in more than this many docs will be ignored. Defaults to unbounded.
|
|
MaxQueryTerms ( int maxQueryTerms ) : |
Sets the maximum number of query terms that will be included in any generated query. Defaults to 25.
|
|
MaxWordLen ( int maxWordLen ) : |
Sets the maximum word length above which words will be ignored. Defaults to unbounded (0).
|
|
MinDocFreq ( int minDocFreq ) : |
Sets the frequency at which words will be ignored which do not occur in at least this many docs. Defaults to 5.
|
|
MinTermFreq ( int minTermFreqy ) : |
The frequency below which terms will be ignored in the source doc. The default frequency is 2.
|
|
MinWordLen ( int minWordLen ) : |
Sets the minimum word length below which words will be ignored. Defaults to 0.
|
|
MoreLikeThisFieldQueryBuilder ( string name ) : System |
A more like this query that runs against a specific field.
|
|
PercentTermsToMatch ( float percentTermsToMatch ) : |
The percentage of terms to match. Defaults to 0.3.
|
|
StopWords ( ) : |
Set the set of stopwords. Any word in this set is considered "uninteresting" and ignored. Even if your Analyzer allows stopwords, you might want to tell the MoreLikeThis code to ignore them, as for the purposes of document similarity it seems reasonable to assume that "a stop word is never interesting".
|
|
ToJsonObject ( ) : object | ||
ToString ( ) : string |
public Analyzer ( String analyzer ) : |
||
analyzer | String | |
return |
public Boost ( float boost ) : |
||
boost | float | |
return |
public BoostTerms ( float boostTerms ) : |
||
boostTerms | float | |
return |
public LikeText ( string likeText ) : |
||
likeText | string | |
return |
public MaxDocFreq ( int maxDocFreq ) : |
||
maxDocFreq | int | |
return |
public MaxQueryTerms ( int maxQueryTerms ) : |
||
maxQueryTerms | int | |
return |
public MaxWordLen ( int maxWordLen ) : |
||
maxWordLen | int | |
return |
public MinDocFreq ( int minDocFreq ) : |
||
minDocFreq | int | |
return |
public MinTermFreq ( int minTermFreqy ) : |
||
minTermFreqy | int | |
return |
public MinWordLen ( int minWordLen ) : |
||
minWordLen | int | |
return |
public MoreLikeThisFieldQueryBuilder ( string name ) : System | ||
name | string | The field name to run the query against |
return | System |
public PercentTermsToMatch ( float percentTermsToMatch ) : |
||
percentTermsToMatch | float | |
return |
public StopWords ( ) : |
||
return |