Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
None
-
-
eHoldings Sprint 42
-
2
Description
Support Boolean/Exact Phrase/Wildcard Character operators when searching Titles
General Requirement
- Assume we want to always pass advancedsearch=true in the GET Titles request.
- Developer documentation: http://10.80.3.221:4662/guides/overviewsearch.html
Boolean Search
- Can only conduct a Boolean search when advancedsearch=true and Boolean operators NOT/OR/AND are in all caps
- If both requirements are not met then the search will be no different than the current search behavior
Exact Phrase Search
- Can only conduct an exact phrase search when advancedsearch=true and search query is enclosed by "double quotation marks"
- If both requirements are not met then the search will be no different than the current search behavior
- When conducting an "exact phrase search" then RM API will return any title that contains the exact phrase. Example below.
Wildcard
- Can only conduct an exact phrase search when advancedsearch=true and search query includes an asterisk
- If both requirements are not met then the search will be no different than the current search behavior
- When conducting a wildcard search then RM API will return any title that contain the characters in the search query. Example below.
- NOTE: per Mohan this behavior will be corrected but no timeframe right now. The better behavior is for the search to return results that start with the characters entered to search.
Nested search
- Nested searches are supported as long as search is enclosed with parentheses AND advancedsearch=true. Example below.
Search query | Search Type | Expected Outcome |
---|---|---|
"Harvard Business Review" | exact phrase | Returns only titles that contain the phrase Harvard Business Review |
Radical Equations Civil | search without boolean operators | Should return titles that contain Radical or Equations or Civil. In other words, search behaves as current. |
"Civil War" OR "War between the states" | exact phrase using Boolean operator | only return results that contain the Civil War or War between the states |
comp* | wildcard search | return results that contain comp (i.e. computer, compute, non-compete) |
fashion OR dress | boolean OR operator since OR is in all CAPS | should conduct a Boolean OR search |
fashion or dress | or is not in all CAPS | search will behave as current. RM API will return results with fashion, or, dress. |
(physical OR mental) AND illness | nested search and multiple boolean operators | returns results with physical OR mental and illness in the title |
TestRail: Results
Attachments
Issue Links
- relates to
-
MODKBEBSCO-15 Update Titles Search to support searchType param/Remove advancedSearch param
-
- Closed
-
-
UIEH-121 Results List: Title Sort Options
-
- Closed
-
-
UXPROD-871 Updates to mod-codex-ekb
-
- Closed
-
-
UXPROD-1015 Boolean/Query Search for Users
-
- Draft
-