{scrollbar:icons=false} |
Works the same as contains but uses the literal property value enabling searches on special characters.
The Literal Contains search has the following characteristics:
Parsing is done with the following analyzer:
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: a^s
Lucene query: +literal_propertyValue:a^s* literal_propertyValue:a\^s^50.0
Result: 1 result
Example 2:
Search string: a^s sp*cial co{nce]pt
Lucene query: +(+literal_propertyValue:a^s* +literal_propertyValue:sp*cial* +literal_propertyValue:co{nce]pt*) ((+literal_propertyValue:a\^s +literal_propertyValue:sp\*cial +literal_propertyValue:co\{nce\]pt)^50.0)
Result: 1 result
Junit tests can be found here: https://github.com/lexevs/lexevs/blob/master/lbTest/src/test/java/org/LexGrid/LexBIG/Impl/function/query/lucene/searchAlgorithms/TestLiteralContains.java