SearchIndexPredicateComparisonOperator_enum

SearchIndexPredicateComparisonOperator_enum
SearchIndexPredicateComparisonOperator_enum

Possible values:

  • Equal: Equality operator.

  • NotEqual: Inequality operator.

  • Greater: Greater than operator.

    Applicable to numerical properties only, e.g. long, double. Cannot apply to String or boolean.

  • GreaterOrEqual: Greater than or equal to operator.

    Applicable to numerical properties only, e.g. long, double. Cannot apply to String or boolean.

  • Less: Less than operator.

    Applicable to numerical properties only, e.g. long, double. Cannot apply to String or boolean.

  • LessOrEqual: Less than or equal to operator.

    Applicable to numerical properties only, e.g. long, double. Cannot apply to String or boolean.

  • In: Checks for equality with at least one of a list of values.

    Must be used either with comparableList or with Predicate#comparableQueryIndex. In the second case the query result set is used as comparableList.

  • NotIn: Checks for inequality with all values in a list.

    If the property is equal to any of the values in the list, evaluates to false. Otherwise, evaluates to true and the property is matched.

    Must be used either with comparableList or with Predicate#comparableQueryIndex. In the second case the query result set is used as comparableList.

  • Like: Pattern matching operator applicable to String properties.

    The * character is used to define wildcard, i.e. substitute for zero or more missing letters) before or after a given sequence of characters. If used at the end, it is interpreted as search for all properties whose value starts with the given characters. If used at the beginning, it is interpreted as search for all properties whose value ends with the given characters.

    For instance, if the input pattern is *vm it will match property with value linux-vm, but not vm-linux. If the input pattern is vm* it will match property with value vm-linux, but not linux-vm.

    The wildcard character cannot be used in between other characters, i.e. in the middle of a pattern. It can be use more than once in a single pattern only in case it surrounds the pattern, i.e. both in the beginning and at the end of the pattern to perform substring (infix) search.

    For instance, if the input pattern is *vm* it will match property with value linux-vm-1, linux-vm, old-vm-linux, vm-linux and vm.

    The backslash character \ is used for escaping. Hence, wildcard is escaped with the sequence \* and the escape character itself with the sequence \\.

  • NotLike: Opposite of Like.

    The resource will be matched if the property does NOT contain the provided pattern.

This data structure has no properties.
Enumeration: Equal, NotEqual, Greater, GreaterOrEqual, Less, LessOrEqual, In, NotIn, Like, NotLike,