protected static class ANetricsQueryBuilderBuilderBase.CognateQueryField extends ANetricsQueryBuilderBuilderBase.SimpleQueryField
Constructor and Description |
---|
CognateQueryField(java.lang.String query_string,
java.lang.String field_name,
java.lang.Double weight)
Create a field reference for a cognate query.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getQueryString() |
getFieldName, getFieldWeight
public CognateQueryField(java.lang.String query_string, java.lang.String field_name, java.lang.Double weight) throws java.lang.IllegalArgumentException
query_string
- the query value for the field. This
has the source field encoded into it using
the ${input-field-name} convention.field_name
- the field name. This is the default output
field name for the field.weight
- the weight factor for this field. This may
be null, in which case the default 1.0 weight
is applied.java.lang.IllegalArgumentException
- if field_name or query_string
is null or empty, or if weight is given and not
between 0.0 and 1.0.