Equivalent to ' term* ' - in other words - a trailing wildcard on a term (but no leading wild card) and the term can appear at any position.
The contains search has the following characteristics:
Parsing is done with the following analyzers:
propertyValue - Uses our custom standard analyzer that has no stop words.
literal_propertyValue - Uses our custom literal analyzer. This literal analyzer uses Lucene's WhitespaceTokenizer with Lucene's LowerCaseFilter.
The following examples are based on the Automobiles coding scheme.
Example 1:
Search string: automob
Lucene query: +propertyValue:automob* literal_propertyValue:automob^50.0
Result: 1 result
Example 2:
Search string: General Motors
Lucene query: (+propertyValue:general* +propertyValue:motors*) ((+literal_propertyValue:general +literal_propertyValue:motors)^50.0)
Result: 1 result
Junits for contains tests can be found here: https://github.com/lexevs/lexevs/blob/master/lbTest/src/test/java/org/LexGrid/LexBIG/Impl/function/query/lucene/searchAlgorithms/TestContains.java