AtlasOfLivingAustralia / ala-name-matching

Atlas name matching API and index generation
Other
10 stars 13 forks source link

Fix autocomplete for lucene 8.0 #133

Closed charvolant closed 3 years ago

charvolant commented 3 years ago

Fix for #132 to produce slightly more sensible autocomplete. Lucene seems to be treating wildcard searches differently between 6 and 8 leading to valid results being excluded or deprioritised.

Searches use the synonym flag to include/exclude synonyms Results are tested against the query name for similarity, squashing down over-enthusiastic long matches.