dulibrarytech / digitaldu-frontend

Digital Collections DU front end
Apache License 2.0
3 stars 0 forks source link

Replace search terms feature #401

Open jrynhart opened 2 years ago

jrynhart commented 2 years ago

Add a feature to allow specific search terms to be replaced with another term after a search has been submitted

Ex. A search for the term "Indians" could swap out "Indians" with "Indigenous people", and return results for "indigenous people"

Need feedback to show the user the terms have been replaced

Compass example: https://du.primo.exlibrisgroup.com/discovery/search?query=any,contains,Felis%20catus&tab=Everything&search_scope=MyInst_and_CI&vid=01UODE_INST:01UODE_MAIN&lang=en&offset=0

Compass example: https://du.primo.exlibrisgroup.com/discovery/search?query=any,contains,indigenouus&tab=Everything&search_scope=MyInst_and_CI&vid=01UODE_INST:01UODE_MAIN&lang=en&offset=0

Google example: https://www.google.com/search?q=indenouslkh&sxsrf=ALiCzsa9YLQS72v8K2fnC5XDigoe0r_rkw%3A1651856471065&source=hp&ei=V1R1YvRr9NHQ8Q_4toH4Ag&iflsig=AJiK0e8AAAAAYnViZ8F8N5oYd6wGLdGzLKGloAJrbjno&ved=0ahUKEwi087LxrMv3AhX0KDQIHXhbAC8Q4dUDCAk&uact=5&oq=indenouslkh&gs_lcp=Cgdnd3Mtd2l6EAMyBAgAEA0yBAgAEA0yBggAEA0QCjIECAAQDTIECAAQDTIKCC4QxwEQrwEQDTIECAAQDTIECAAQDTIECAAQDTIECAAQDToHCCMQ6gIQJzoNCC4QxwEQrwEQ6gIQJzoECCMQJzoECAAQQzoLCAAQgAQQsQMQgwE6BQgAEIAEOg4ILhCABBCxAxDHARCjAjoQCAAQgAQQhwIQsQMQgwEQFDoICC4QgAQQsQM6EQguEIAEELEDEIMBEMcBEKMCOgQILhAnOhMIABCABBCHAhCxAxCDARDJAxAUOgUIABCSAzoHCAAQsQMQQzoICAAQgAQQsQM6BwgAEIAEEAo6CgguEIAEENQCEAo6CggAELEDEIMBEAo6BwgAELEDEAo6BAguEAo6BggAEAoQAzoKCAAQsQMQgwEQDToECC4QDVC2BVj8HGCdIGgBcAB4AIABaYgBhgeSAQM5LjKYAQCgAQGwAQo&sclient=gws-wiz