public static class QueryOptions.QueryTerm extends Object implements TermOptions, Annotatable<QueryOptions.QueryTerm>
If a search term doesn't match a named constraint, it uses Term. You can thus override default search behavior by changing a QueryOptions term element.
Modifier and Type | Class and Description |
---|---|
static class |
QueryOptions.QueryTerm.TermApply
The TermApply enumeration provides the special circumstances of an
empty search string.
|
Constructor and Description |
---|
QueryTerm() |
Modifier and Type | Method and Description |
---|---|
QueryOptions.QueryTerm |
annotate(String xmlString) |
List<QueryOptions.QueryAnnotation> |
getAnnotations() |
QueryOptions.QueryTerm.TermApply |
getEmptyApply() |
String |
getRef() |
<T extends QueryOptions.BaseConstraintItem> |
getSource()
get the constraint definition that backs default term queries.
|
QueryOptions.XQueryExtension |
getTermFunction() |
List<String> |
getTermOptions() |
Double |
getWeight() |
void |
setEmptyApply(QueryOptions.QueryTerm.TermApply termApply) |
void |
setRef(String defaultSourceName) |
void |
setSource(TermSource termSource)
Sets the source of data that backs default (unprefixed) search terms.
|
void |
setTermFunction(QueryOptions.XQueryExtension extension) |
void |
setTermOptions(List<String> termOptions) |
void |
setWeight(Double weight) |
public List<QueryOptions.QueryAnnotation> getAnnotations()
getAnnotations
in interface Annotatable<QueryOptions.QueryTerm>
public QueryOptions.QueryTerm annotate(String xmlString)
annotate
in interface Annotatable<QueryOptions.QueryTerm>
public <T extends QueryOptions.BaseConstraintItem> T getSource()
T
- the type of sourcepublic QueryOptions.QueryTerm.TermApply getEmptyApply()
public QueryOptions.XQueryExtension getTermFunction()
public void setTermFunction(QueryOptions.XQueryExtension extension)
public List<String> getTermOptions()
getTermOptions
in interface TermOptions
public Double getWeight()
getWeight
in interface TermOptions
public void setSource(TermSource termSource)
termSource
- A value, word, or range that backs term queries.public void setEmptyApply(QueryOptions.QueryTerm.TermApply termApply)
public void setTermOptions(List<String> termOptions)
setTermOptions
in interface TermOptions
public void setWeight(Double weight)
setWeight
in interface TermOptions
public void setRef(String defaultSourceName)
public String getRef()
Copyright © 2013-2016 MarkLogic Corporation.