project-lux / lux-marklogic

Code, issues, and resources related to LUX MarkLogic
Other
3 stars 2 forks source link

Restore synonym support (from 714) #21

Open gigamorph opened 4 months ago

gigamorph commented 4 months ago

Problem Description:

653 severed #308's support for synonyms in full text search and #351's support for synonyms in other applicable search patterns.

The scope of this ticket is to restore support in all applicable search patterns (below) but we should get this prioritized since synonyms were disabled shortly after the Search & Discovery committee took them for a spin. IIRC, Sarah reported it confused users, which I interpreted as including unexpected results. Note too that the code base still only has a sample thesaurus as opposed to one(s) more targeted to the content at hand.

Applicable search patterns:

  1. indexedWord
  2. oneRelationshipWithField
  3. text

I don't think synonyms would apply to the indexedRange, indexedValue, or overlappingDateRange patterns.

The Similar feature in introducing the similar pattern, as an entry point to the code responsible for applying a search scope's definition of similar. Synonyms may be applicable therein too. Related tickets: #657, #658, #660, and #706.

To add synonym support to one or more of these patterns, consider moving _wordQueryWithSynonyms from searchLib into searchPatterns, then having the patterns use it.

Expected Behavior/Solution: TBD

Requirements: TBD

Needed for promotion: If an item on the list is not needed, it should be crossed off but not removed.

- [ ] Wireframe/Mockup - Heather - [ ] Committee discussions - Sarah

UAT/LUX Examples:

Dependencies/Blocks:

Related Github Issues:

Related links:

Wireframe/Mockup: