specify / webportal-installer

The Specify Web Portal
GNU General Public License v2.0
8 stars 10 forks source link

Make the Advanced Search case insensitive #70

Open tlammer opened 1 year ago

tlammer commented 1 year ago

Requested by Nebraska they would like to be able to search on a term like "femur" and get back records with both "Femur" and "femur" in the field. I cannot think of any use cases where having case sensitivity would be necessary and not having it would make it considerably easier.

mcruz-umich commented 1 year ago

UMich would like this as well.

specifysoftware commented 1 year ago

This issue has been mentioned on Specify Community Forum. There might be relevant details there:

https://discourse.specifysoftware.org/t/make-advanced-search-mode-in-webportal-case-insensitive/1233/2

grantfitzsimmons commented 1 year ago

Oranim College of Education would like this as well

grantfitzsimmons commented 1 year ago

Requested by KU Mammals as well

grantfitzsimmons commented 11 months ago

Requested By PRI Paleo as well

grantfitzsimmons commented 10 months ago

Requested by Paul Larson at FWRI as well

grantfitzsimmons commented 10 months ago

This was one of the main topics of our Technical Advisory Committee in July this year.

This has now been requested by:

grantfitzsimmons commented 9 months ago

Requested by UWFC

grantfitzsimmons commented 8 months ago

After asking FLMNH about case-sensitivity, they had the following to say:

Yes, all our collections prefer case-insensitive searching and I believe all our portals are currently set that way. We alter the string field type to text_gen_sort_hypen in the solr schema with a bash script. Attached is a copy. If I recall correctly, we discussed the problem with Tim Noble back when the portals initially became case sensitive and he suggested we change the field type. The bash script was our solution.

webportal-rebuild.sh.txt

grantfitzsimmons commented 1 month ago

In the webportal the express search field appears to be case insensitive, while the fields using the advanced search option seems to be case sensitive. The attached screenshots show searches for “woot” (all lower case) using the two different search options. If this isn’t a bug, it is unnecessarily confusing to the user.

It would be best for all searches in the webportal to be case insensitive. Also diacriticals should be ignored using both the express and advanced search options.

Requested by: New Mexico State University Herbaria