public class MoreLikeThisQuery extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_BOOST |
static float |
DEFAULT_BOOST_FACTOR |
static int |
DEFAULT_MAXIMUM_DOCUMENT_FREQUENCY |
static int |
DEFAULT_MAXIMUM_NUMBER_OF_TOKENS_PARSED |
static int |
DEFAULT_MAXIMUM_QUERY_TERMS |
static int |
DEFAULT_MAXIMUM_WORD_LENGTH |
static int |
DEFAULT_MINIMUM_DOCUMENT_FREQUENCY |
static int |
DEFAULT_MINIMUM_TERM_FREQUENCY |
static int |
DEFAULT_MINIMUM_WORD_LENGTH |
Constructor and Description |
---|
MoreLikeThisQuery() |
Modifier and Type | Method and Description |
---|---|
String |
getAdditionalQuery()
An additional query that the matching documents need to also
match to be returned.
|
Boolean |
getBoost()
Boost terms in query based on score.
|
Float |
getBoostFactor()
Boost factor when boosting based on score.
|
String |
getDocumentId()
The document id to use as the basis for comparison
|
String[] |
getFields()
The fields to compare
|
String[] |
getIncludes()
Array of paths under which document Ids can be found.
|
String |
getIndexName()
The name of the index to use for this operation
|
Map<String,String> |
getMapGroupFields()
Values for the the mapping group fields to use as the basis for comparison
|
Integer |
getMaximumDocumentFrequency()
Ignore words which occur in more than this many documents.
|
Integer |
getMaximumDocumentFrequencyPercentage()
Ignore words which occur in more than this percentage of documents.
|
Integer |
getMaximumNumberOfTokensParsed()
The maximum number of tokens to parse in each example doc field that is not stored with TermVector support.
|
Integer |
getMaximumQueryTerms()
A Query with no more than this many terms.
|
Integer |
getMaximumWordLength()
Ignore words greater than this length or if 0 then this has no effect.
|
Integer |
getMinimumDocumentFrequency()
Ignore words which do not occur in at least this many documents.
|
Integer |
getMinimumTermFrequency()
Ignore terms with less than this frequency in the source doc.
|
Integer |
getMinimumWordLength()
Ignore words less than this length or if 0 then this has no effect.
|
String |
getRequestUri() |
String |
getResultsTransformer()
Transformer to use on the query results.
|
String |
getStopWordsDocumentId()
The document id containing the custom stop words
|
Map<String,RavenJToken> |
getTransformerParameters()
Parameters that will be passed to transformer.
|
void |
setAdditionalQuery(String additionalQuery)
An additional query that the matching documents need to also
match to be returned.
|
void |
setBoost(Boolean boost)
Boost terms in query based on score.
|
void |
setBoostFactor(Float boostFactor)
Boost factor when boosting based on score.
|
void |
setDocumentId(String documentId)
The document id to use as the basis for comparison
|
void |
setFields(String[] fields)
The fields to compare
|
void |
setIncludes(String[] includes)
Array of paths under which document Ids can be found.
|
void |
setIndexName(String indexName)
The name of the index to use for this operation
|
void |
setMapGroupFields(Map<String,String> mapGroupFields)
Values for the the mapping group fields to use as the basis for comparison
|
void |
setMaximumDocumentFrequency(Integer maximumDocumentFrequency)
Ignore words which occur in more than this many documents.
|
void |
setMaximumDocumentFrequencyPercentage(Integer maximumDocumentFrequencyPercentage)
Ignore words which occur in more than this percentage of documents.
|
void |
setMaximumNumberOfTokensParsed(Integer maximumNumberOfTokensParsed)
The maximum number of tokens to parse in each example doc field that is not stored with TermVector support.
|
void |
setMaximumQueryTerms(Integer maximumQueryTerms)
A Query with no more than this many terms.
|
void |
setMaximumWordLength(Integer maximumWordLength)
Ignore words greater than this length or if 0 then this has no effect.
|
void |
setMinimumDocumentFrequency(Integer minimumDocumentFrequency)
Ignore words which do not occur in at least this many documents.
|
void |
setMinimumTermFrequency(Integer minimumTermFrequency)
Ignore terms with less than this frequency in the source doc.
|
void |
setMinimumWordLength(Integer minimumWordLength)
Ignore words less than this length or if 0 then this has no effect.
|
void |
setResultsTransformer(String resultsTransformer)
Transformer to use on the query results.
|
void |
setStopWordsDocumentId(String stopWordsDocumentId)
The document id containing the custom stop words
|
void |
setTransformerParameters(Map<String,RavenJToken> transformerParameters)
Parameters that will be passed to transformer.
|
public static final int DEFAULT_MAXIMUM_NUMBER_OF_TOKENS_PARSED
public static final int DEFAULT_MINIMUM_TERM_FREQUENCY
public static final int DEFAULT_MINIMUM_DOCUMENT_FREQUENCY
public static final int DEFAULT_MAXIMUM_DOCUMENT_FREQUENCY
public static final boolean DEFAULT_BOOST
public static final float DEFAULT_BOOST_FACTOR
public static final int DEFAULT_MINIMUM_WORD_LENGTH
public static final int DEFAULT_MAXIMUM_WORD_LENGTH
public static final int DEFAULT_MAXIMUM_QUERY_TERMS
public String getAdditionalQuery()
public void setAdditionalQuery(String additionalQuery)
public String[] getIncludes()
public void setIncludes(String[] includes)
includes
- public Map<String,RavenJToken> getTransformerParameters()
public void setTransformerParameters(Map<String,RavenJToken> transformerParameters)
transformerParameters
- public String getResultsTransformer()
public void setResultsTransformer(String resultsTransformer)
resultsTransformer
- public Boolean getBoost()
public Float getBoostFactor()
public String getDocumentId()
public String[] getFields()
public String getIndexName()
public Map<String,String> getMapGroupFields()
public Integer getMaximumDocumentFrequency()
Integer.MAX_VALUE
public Integer getMaximumDocumentFrequencyPercentage()
public Integer getMaximumNumberOfTokensParsed()
public Integer getMaximumQueryTerms()
public Integer getMaximumWordLength()
public Integer getMinimumDocumentFrequency()
public Integer getMinimumTermFrequency()
public Integer getMinimumWordLength()
public String getStopWordsDocumentId()
public void setBoost(Boolean boost)
boost
- public void setBoostFactor(Float boostFactor)
boostFactor
- public void setDocumentId(String documentId)
documentId
- public void setFields(String[] fields)
fields
- public void setIndexName(String indexName)
indexName
- public void setMapGroupFields(Map<String,String> mapGroupFields)
mapGroupFields
- public void setMaximumDocumentFrequency(Integer maximumDocumentFrequency)
Integer.MAX_VALUE
maximumDocumentFrequency
- public void setMaximumDocumentFrequencyPercentage(Integer maximumDocumentFrequencyPercentage)
maximumDocumentFrequencyPercentage
- public void setMaximumNumberOfTokensParsed(Integer maximumNumberOfTokensParsed)
maximumNumberOfTokensParsed
- public void setMaximumQueryTerms(Integer maximumQueryTerms)
maximumQueryTerms
- public void setMaximumWordLength(Integer maximumWordLength)
maximumWordLength
- public void setMinimumDocumentFrequency(Integer minimumDocumentFrequency)
minimumDocumentFrequency
- public void setMinimumTermFrequency(Integer minimumTermFrequency)
minimumTermFrequency
- public void setMinimumWordLength(Integer minimumWordLength)
minimumWordLength
- public void setStopWordsDocumentId(String stopWordsDocumentId)
stopWordsDocumentId
- public String getRequestUri()
Copyright © 2016. All Rights Reserved.