Class ANetricsQueryBuilderBuilderBase.CognateQueryField

    • Constructor Detail

      • CognateQueryField

        public CognateQueryField​(java.lang.String query_string,
                                 java.lang.String field_name,
                                 java.lang.Double weight)
                          throws java.lang.IllegalArgumentException
        Create a field reference for a cognate query.
        Parameters:
        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.
        Throws:
        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.
    • Method Detail

      • getQueryString

        public java.lang.String getQueryString()
        Returns:
        the query string value.