AtlasOfLivingAustralia / ala-name-matching

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

testAutoComplete10 #206

Open Sherrin-ALA opened 1 year ago

Sherrin-ALA commented 1 year ago
    List<Map> results = searcher.autocomplete("Rossi", 40, true);
    assertNotNull(results);
    assertTrue(results.size() > 0);
    assertTrue(results.stream().anyMatch(r -> "Iliocirrus rossi".equals(r.get("name"))));
    assertTrue(results.stream().anyMatch(r -> "Natatolana rossi".equals(r.get("name"))));
Sherrin-ALA commented 1 year ago

Natatolana rossi no longer comes back in the top 40. Replaced with Nesothrips rossi in the test case.

assertTrue(results.stream().anyMatch(r -> "Nesothrips rossi".equals(r.get("name"))));
   // assertTrue(results.stream().anyMatch(r -> "Natatolana rossi".equals(r.get("name"))));