public class LikeThisQueryBuilder extends java.lang.Object implements QueryBuilder
MoreLikeThisQuery
Modifier and Type | Field and Description |
---|---|
private Analyzer |
analyzer |
private static int |
DEFAULT_MAX_QUERY_TERMS |
private static int |
DEFAULT_MIN_TERM_FREQUENCY |
private static float |
DEFAULT_PERCENT_TERMS_TO_MATCH |
private java.lang.String[] |
defaultFieldNames |
Constructor and Description |
---|
LikeThisQueryBuilder(Analyzer analyzer,
java.lang.String[] defaultFieldNames) |
Modifier and Type | Method and Description |
---|---|
Query |
getQuery(org.w3c.dom.Element e) |
private static final int DEFAULT_MAX_QUERY_TERMS
private static final int DEFAULT_MIN_TERM_FREQUENCY
private static final float DEFAULT_PERCENT_TERMS_TO_MATCH
private final Analyzer analyzer
private final java.lang.String[] defaultFieldNames
public LikeThisQueryBuilder(Analyzer analyzer, java.lang.String[] defaultFieldNames)
public Query getQuery(org.w3c.dom.Element e) throws ParserException
getQuery
in interface QueryBuilder
ParserException