Represents the placeholder "block" in operator display names.
the arity of the operator.
Checks whether the provided array contains at leas as many arguments, as is the operators number of operands. Throws an error if not enough arguments is provided.
an array of potential operands
the queried fields
Generates a query that matches null fields and fields with empty string values.
Counterintuitively elasticsearch query string queries behave weirdly when combining the queries with operators such as AND
.
Because of this the following query:
(dataSet.text_0.value:"")
returns an empty result set.
But query that should be intuitively more constraining:
(dataSet.text_0.value:"") AND (processId:600168ccf68fea5241ae5e62)
will return a non empty and expected result.
This method exists to combat this issue and add the, sometimes necessary, constraint into the query generated by this operator.
the queried fields
a constraining query that is distributively applied into the query generated by this operator. If an empty query is provided the result will be the same as calling [createQuery()]{@link IsNull#createQuery}.
a query with distributively applied constraint query
the queried field
a string representation of the query that checks whether the field has an empty string value
The name template is used when generating search GUI, and so the arity of the operator should match the number of INPUT_PLACEHOLDER constant occurrences in the returned array.
an array of translation paths that represent the operator name, as it should be displayed to the user. The INPUT_PLACEHOLDER constant (or any falsy value) can be used to place visual input placeholder blocks in the operator name where user input is expected.
the queried field
a string representation of the query that checks whether the field is null
the operator class in a serializable form
Escapes all escapable Elasticsearch symbols. Removes all unescapable Elasticsearch symbols.
For a list of symbols see Elasticsearch's Query string query doc.
user input that should have special characters escaped
user input with the escapable characters escaped and the unescapable characters removed
Applies the provided function to all keywords and combines the resulting queries with an OR
operator.
keywords that the function is call on
function that generates a Query
object for each keyword
Creates a Query string query string literal with the provided arguments.
Elasticsearch index keyword for the field you want to query
The value that you want to query the property for
The operator you want to use to query the indexed field. Consult the Elasticsearch's documentation for more information.
combines the input strings by this pattern: ([elasticKeyword]:[operator][arg])
If the value contains a space character, or if force
is set to true
.
user input that should be wrapped with double quotes
if set to true
the value will be wrapped regardless of it's content
Generated using TypeDoc
An operator that can be used on any field and matches entries with null or empty string values.
Beware that if any additional constraints should be applied to the generated query the results may behave strangely. Consult the [createQueryWithConstraint()]{@link IsNull#createQueryWithConstraint} method for more information.