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.

...

  • This search is case in-sensitive. 
  • It only searches on the property value the untokenizedLCPropertyValue 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 on the term (but no leading wild card) and the term can appear at any position.
  • Lowercase and special characters removed during query parser parse.
  • Parsing is done with Lucene's StandardAnalyzer.

...

Search string: automob

Lucene query: +untokenizedLCPropertyValue:automob* literal_propertyValue:automob^50.0

Complete query:

  • +*:* +(entityType:concept)
  • +*:* +isAnonymous:F
  • +*:* +(+untokenizedLCPropertyValue:automob* literal_propertyValue:automob^50.0) +(propertyType:presentation)

Result: 1 result

  • entity code: A0001
  • entity description: Automobile

 

Example 2:

Search string: Car (with special) charaters!

Lucene query: +untokenizedLCPropertyValue:car (with special) charaters!* ((+literal_propertyValue:car +literal_propertyValue:(with +literal_propertyValue:special) +literal_propertyValue:charaters!)^50.0)

Complete query:

  • +*:* +(entityType:concept)
  • +*:* +isAnonymous:F
  • +*:* +(+untokenizedLCPropertyValue:car (with special) charaters!* ((+literal_propertyValue:car +literal_propertyValue:(with +literal_propertyValue:special) +literal_propertyValue:charaters!)^50.0)) +(propertyType:presentation)

Result: 1 result

  • entity code: C0001
  • entity description: Car

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

...