CatalogueOfLife / backend

Complete backend of COL ChecklistBank
Apache License 2.0
15 stars 11 forks source link

ES exception for single char queries? #1331

Open mdoering opened 5 months ago

mdoering commented 5 months ago

Found some of these in the error logs: http://api.checklistbank.org/dataset/3LR/nameusage/search?content=SCIENTIFIC_NAME&sortBy=NAME&fuzzy=true&type=prefix&limit=20&q=festuca%20a

If you change the query festuca%20a to either festuca%20 or festuca%20ab it works.

life.catalogue.es.EsException: [1:434] [bool] failed to parse field [filter]. Caused by: [1:434] [bool] failed to parse field [must] at life.catalogue.es.EsUtil.executeRequest(EsUtil.java:373) at life.catalogue.es.nu.NameUsageQueryService.executeSearchRequest(NameUsageQueryService.java:91) at life.catalogue.es.nu.search.NameUsageSearchServiceEs.search(NameUsageSearchServiceEs.java:62)

mdoering commented 5 months ago

other: http://api.checklistbank.org/dataset/3LR/nameusage/search?content=SCIENTIFIC_NAME&sortBy=NAME&fuzzy=true&type=prefix&limit=20&q=rubus%20i