This is an old revision of the document!
Table of Contents
Search Modifications
Summary
This feature consists of adding a few changes to the way Evergreen performs searches via the QueryParser.pm module.
Action
Search modifications will alter the way searches perform in the following ways:
- Exact Match: Now exactly matches what is typed in under normalization rules.
- Contains Phrase: Will now require that the phrase appear in the index being searched on.
- Normalized Indexes: Some indexes contain content that are all normalized characters. This will detect that anomaly and force a search without using text normalization.
These changes will be organization specific and can turned on or off for staff or user. The change will be added to the Admin (.) - Local Administration - Library Settings Editor menu.
All changes will be done to the QueryParser.pm perl module at /OpenILS/Application/Storage/Driver/Pg/Queryparser.pm
Remaining changes will be to the database, they include adding 5 tables of normalized text fields that are created from triggers from the field_entry tables. The text fields will be indexed using an extension called Pg_trgm.
Deliverable
- Option to have searches perform differently.
- Newly Indexed tables for more searching options. (In future releases)
- Ability to use an indexed search on tables with LIKE and ILIKE
- New operator to fuzzy match values, offering the ability to recognize spelling errors.
- Relevance functions that will score results if they are spelled incorrectly. ("neighbor" will be scored similarly to "nieghbor")