Bibliome / alvisir

AlvisIR semantic search engine
Apache License 2.0
6 stars 2 forks source link

MW Expansion without double quotes #3

Closed rbossy closed 7 years ago

rbossy commented 7 years ago

Expand MW synonyms across term conjunctions, and use quotes to inhibit expansion.

Current behavior

"food for humans" expands to OBT:000035/food for human

food for humans expands to OBT:000003/food OBT:001804/human, raw search for the term for

New behaviour

"food for humans" does not expand, raw search for the sequence of terms food, for, and human.

food for humans expands to OBT:000035/food for human

food for "humans" expands to OBT:000003/food, raw search for terms for and human

"food" for "humans" does not expand, raw search for terms food, for, and human

rbossy commented 7 years ago

food for humans expands to OBT:000035/food for human

but would we also include OBT:000003/food and OBT:001804/human ?

I say NO.

rbossy commented 7 years ago

2aaa6664c9882ad7fc49f18cecc58e90e729a084

In the last version, it is possible to test the alternate supposedly better query syntax:

<alvisir-search
     index="..."
     expander-index="..."
     default-field="..."

     query-expansion="advanced">

Streaks of unquoted terms will be searched for expansions, including MW expansions. Quoted terms and phrases will be searched as-is (raw search, no expansion).

@ldeleger, @echaix, please test...

ldeleger commented 7 years ago

Tested on Microbes, looks good