@Deprecated public class MoreLikeThisFieldQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder<MoreLikeThisFieldQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
MoreLikeThisFieldQueryBuilder(String name)
Deprecated.
A more like this query that runs against a specific field.
|
Modifier and Type | Method and Description |
---|---|
MoreLikeThisFieldQueryBuilder |
analyzer(String analyzer)
Deprecated.
The analyzer that will be used to analyze the text.
|
MoreLikeThisFieldQueryBuilder |
boost(float boost)
Deprecated.
Sets the boost for this query.
|
MoreLikeThisFieldQueryBuilder |
boostTerms(float boostTerms)
Deprecated.
Sets the boost factor to use when boosting terms.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params)
Deprecated.
|
MoreLikeThisFieldQueryBuilder |
failOnUnsupportedField(boolean fail)
Deprecated.
Whether to fail or return no result when this query is run against a field which is not supported such as binary/numeric fields.
|
MoreLikeThisFieldQueryBuilder |
likeText(String likeText)
Deprecated.
The text to use in order to find documents that are "like" this.
|
MoreLikeThisFieldQueryBuilder |
maxDocFreq(int maxDocFreq)
Deprecated.
Set the maximum frequency in which words may still appear.
|
MoreLikeThisFieldQueryBuilder |
maxQueryTerms(int maxQueryTerms)
Deprecated.
Sets the maximum number of query terms that will be included in any generated query.
|
MoreLikeThisFieldQueryBuilder |
maxWordLen(int maxWordLen)
Deprecated.
Sets the maximum word length above which words will be ignored.
|
MoreLikeThisFieldQueryBuilder |
minDocFreq(int minDocFreq)
Deprecated.
Sets the frequency at which words will be ignored which do not occur in at least this
many docs.
|
MoreLikeThisFieldQueryBuilder |
minimumShouldMatch(String minimumShouldMatch)
Deprecated.
Number of terms that must match the generated query expressed in the
common syntax for minimum should match.
|
MoreLikeThisFieldQueryBuilder |
minTermFreq(int minTermFreqy)
Deprecated.
The frequency below which terms will be ignored in the source doc.
|
MoreLikeThisFieldQueryBuilder |
minWordLength(int minWordLength)
Deprecated.
Sets the minimum word length below which words will be ignored.
|
MoreLikeThisFieldQueryBuilder |
percentTermsToMatch(float percentTermsToMatch)
Deprecated.
|
MoreLikeThisFieldQueryBuilder |
queryName(String queryName)
Deprecated.
Sets the query name for the filter that can be used when searching for matched_filters per hit.
|
MoreLikeThisFieldQueryBuilder |
stopWords(String... stopWords)
Deprecated.
Set the set of stopwords.
|
buildAsBytes, buildAsBytes, toString, toXContent
public MoreLikeThisFieldQueryBuilder(String name)
name
- The field name to run the query againstpublic MoreLikeThisFieldQueryBuilder likeText(String likeText)
public MoreLikeThisFieldQueryBuilder minimumShouldMatch(String minimumShouldMatch)
@Deprecated public MoreLikeThisFieldQueryBuilder percentTermsToMatch(float percentTermsToMatch)
public MoreLikeThisFieldQueryBuilder minTermFreq(int minTermFreqy)
public MoreLikeThisFieldQueryBuilder maxQueryTerms(int maxQueryTerms)
public MoreLikeThisFieldQueryBuilder stopWords(String... 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".
public MoreLikeThisFieldQueryBuilder minDocFreq(int minDocFreq)
public MoreLikeThisFieldQueryBuilder maxDocFreq(int maxDocFreq)
public MoreLikeThisFieldQueryBuilder minWordLength(int minWordLength)
public MoreLikeThisFieldQueryBuilder maxWordLen(int maxWordLen)
public MoreLikeThisFieldQueryBuilder boostTerms(float boostTerms)
public MoreLikeThisFieldQueryBuilder analyzer(String analyzer)
public MoreLikeThisFieldQueryBuilder boost(float boost)
BoostableQueryBuilder
boost
in interface BoostableQueryBuilder<MoreLikeThisFieldQueryBuilder>
public MoreLikeThisFieldQueryBuilder failOnUnsupportedField(boolean fail)
public MoreLikeThisFieldQueryBuilder queryName(String queryName)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class BaseQueryBuilder
IOException
Copyright © 2009–2015. All rights reserved.