Page History
...
Search based on a \"*some sub-string here*\". Functions much like the Java String.indexOf method. This requires two indexed fields to manage this without significant overhead. One field is the tokenized property value which causes no extra indexing, the other is reversed which requires an extra indexed field.
When multiple terms are being searched on, the first term is a spanWildcardQuery on the reverse property with a trailing wildcard. The middle property values are searched for as property values. The last term is a spanWildcardQuery on the propertyValue with a tailing wildcard.
Algorithm:
The contains search has the following characteristics:
...