Leading and Trailing Wild Card Implementation Details

Equivalent to '*term*' This should be a very poor performing search and is not recommended especially when entering a phrase.

Algorithm:

The Leading and Trailing Wild Card search has the following characteristics:

Example of use:

The following examples are based on the Automobiles coding scheme.

Example 1:

Search string: hevy

Lucene query: +propertyValue:*hevy* literal_propertyValue:hevy^50.0

Result: 1 result


Example 2:
Search string: hev

Lucene query: +propertyValue:*hev* literal_propertyValue:hev^50.0

Result: 1 result

Associated JUnits:

Junits can be found here: https://github.com/lexevs/lexevs/blob/master/lbTest/src/test/java/org/LexGrid/LexBIG/Impl/function/query/lucene/searchAlgorithms/TestLeadingAndTrailingWildcard.java