NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

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

...

  • This search is case in-sensitive. 
  • It only searches on the property value and literal property value.  
  • A leading and trailing wild card is added to the each token in the search text.
  • The literal property part (without the wild cards) of the query is boosted by 50.  This gives a literal match priority.
  • Parsing is done with Lucene's StandardAnalyzer.

...

  • entity code: Chevy
  • entity description: Chevrolet


Example 2:
Search string: hev

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

Complete query:

  • +*:* +(entityType:concept)
  • +*:* +isAnonymous:F
  • +*:* +(+propertyValue:*hev* literal_propertyValue:hev^50.0) +(propertyType:presentation)

 

Result: 1 result

  • entity code: Chevy
  • entity description: Chevrolet

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

...