Exact phrase searching requirements
https://folio-org.atlassian.net/browse/UXPROD-4974
Purpose: In current implementation, exact phrase searching is not supported in basic search, and though it is a search modifier in both advanced search and query search, fuzzy logic/word-stemming is applied. We need to support the ability to perform a true exact search in all three query types.
Contents
Requirements
Requirement | Notes | |
---|---|---|
1 | With exact phrase searching, word-stemming should not be applied in any language | confirmed |
2 | Support the ability to use double quotes in basic search of Inventory and MARC authority apps to represent an exact phrase search | confirmed |
3 | When users input terms within double quotes while conducting a search in Inventory or MARC authority app, match against titles using an exact match, in the exact order (match phrase query) | confirmed |
4 | Do not apply fuzzy logic or word stemming; "Global" should not match to "Globalization" | confirmed |
5 | No additional positions allowed between terms in the phrase for a match | confirmed |
6 | Terms outside of the quotes should all also be found in the title, but not necessarily in the same order and may have additional words in between | confirmed |
7 | Searches should NOT be case sensitive | confirmed |
8 | Full-text usage | confirmed |
9 | For Keyword search, when query only contains terms within quotes, the exact phrase should be searched in all fields in the Keyword index | confirmed |
10 | For Keyword search, when query contains both terms within quotes and terms outside of the quotes:
Questions:
| under review |
11 | For exact phrase, the search should be agnostic to diacritics. | confirmed |
Scenarios
Query (all case insensitive) | Returns instances | Does NOT return (examples) | Scenario | |
---|---|---|---|---|
1 | Title (all): “Global Africa” |
|
| Exact phrase |
2 | Title (all): “Global africa” ethnography sorcery |
|
| Exact phrase with additional terms |
3 | Title (all): “Global africa” Ngeti |
|
| Exact phrase with additional terms |
4 | Title (all): “globalizing africa” |
|
| Exact phrase |
5 | Title (all): Global africa (no quotes) |
|
| Basic search (contains all) |
6 | Title (all): “climate change” Africa |
|
| Exact phrase with additional terms |
7 | under review Keyword: “climate change” Africa |
|
| Keyword with exact phrase and additional terms |
8 | Title (all): “Frank Forster” wuste |
|
| Exact phrase with diacratics |
9 | Title (all): “Frank Förster” wuste |
|
| Exact phrase with diacratics |
10 | Title (all): “Frank Förster” wüste |
|
| Exact phrase with diacratics |
11 | Contributor: “Salgado, Sebastião” |
|
| Exact phrase with diacratics |
12 | Contributor: “Salgado, Sebastiao” |
|
| Exact phrase with diacratics |
13 | Title (all): “Afrīqiyā” française |
|
| Exact phrase with diacratics |
14 | Title (all): “Afriqiya” francaise |
|
| Exact phrase with diacratics |
Test files
Title | File | |
---|---|---|
1 | Africa and global climate change /guest ed.: Paul Desanker. |
|
2 | The Global Horizon: Expectations of Migration in Africa and the Middle East |
|
3 | Globalizing Africa / edited by Malinda S. Smith. |
|
4 | Neoliberal Africa :the impact of global social engineering /Graham Harrison. |
|
5 | West Africa and the global financial crisis /edited by Diery Seck. |
|
6 | Global Africa :into the twenty-first century /edited by Dorothy L. Hodgson and Judith A. Byfield. |
|
7 | Email from Ngeti :an ethnography of sorcery, redemption, and friendship in global Africa /James H. Smith and Ngeti Mwadime. |
|
8 | Africa :up in smoke 2 /the second report on Africa and global warming from the Working Group on Climate Change and Development ; [written and compiled by John Magrath with the assistance of Andrew Simms]. |
|
9 | The climate of Africa. |
|
10 |
|
|
11 | Afrique, nord-est, Arabie =$bAfrica, north east, Arabia = Afrīqiyā, al-shamāl al-sharqī wa-al-Jazīrah al-ʻArabīyah /$cdressée par la Manufacture française des pneumatiques Michelin.
|
|
12 |
|
|