NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.   Searches on property value only. 

Algorithm:

The contains search has the following characteristics:

  • This search is case insensitivein-sensitive.
     
  • It only searches on the property value and literal property value.
  • The literal property part of the query is boosted by 50.  This gives a literal match priority.
  • A trailing wild card is added to all tokens in the search text.
  • Lowercase and special characters removed during query parser parse.
  • Parsing is done with Lucene's StandardAnalyzer.

Description of Algorithm:

 

Example of use:

The following examples are based on the Automobiles coding scheme.

...

  • entity code: GM
  • entity description: General Motors

Implementation Details:

...

Associated JUnits:

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

...