This clause searches all scalar fields of the perspective table for a value contains the term John (case-insensitive). All indexed scalar fields are searched, which means those whose analyzer is other than
NullAnalyzer. Fields indexed with the
OpaqueTextAnalyzer will match only if the field’s value
equals John. Fields that use other analyzers will match if they
contain the term
John. However, Boolean, timestamp, and numeric fields do not contain text terms, so they will never contain a text term such as
John.
If an object has a text field called MessageID with the value “
Host1-12226-Alpha1”, 12226 is one the terms generated by the field, hence the above clause would match the field. If another object has an integer field called
Size whose value is 12226, it would also match since the
IntegerAnalyzer generates a term equal to the field’s value. Hence, objects could match a term clause based on the type of terms generated by their scalar field analyzers.
This multi-term clause searches for the terms John and
Smith in
any order and across
any field. For example, an object will match if it has a
FirstName field that contains
John and a
LastName field that contains
Smith. If all terms are contained in the same field, they can appear in any order and be separated by other terms. For example, an object will match the example above if it has a
Name field whose value is “
John Smith”, “
John Q. Smith”, or “
Smith, John”.