-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make certain search (only) fields case insensitive #322
Comments
If |
@ansell |
The alternative to creating a case-insensitive version of Edit: biocache-hubs/ala-hub does this but I'm talking about on the biocache-service side only. Edit: Adam advise the |
See also #76.
I think there is a case to at least create a
copyTo
field version of thetaxon_name
field. The problem is this field is currently case sensitive, so the user has to know the case of the indexed value in order to search for it. E.g.Acacia dealbata
works butacacia dealbata
returns nothing. Even worse is the search forANIMALIA
- you have to search for it in all caps to find records for that name.This is a problem in the batch taxon search form where we allow users to search with multiple names. It works fine for
raw_name
(insensitive version ofraw_taxon_name
I think), which is case insensitive but not fortaxon_name
(enhancement I'm working on).@djtfmartin suggested in #76 that we use the plain
q=acacia dealbata
query but this fails for terms likeacacia
andanimalia
because it searches in other fields (is replaced bytext:foo
), such as the variousremarks
fields and therefore blows out the record count because it brings back records that only mention those terms in those other fields.There are probably a few other fields where we want to do this as well - will update if I think of them.
The text was updated successfully, but these errors were encountered: