Page MenuHomePhabricator

[services] Modify lambda opensearch request to use keyword instead of text
ClosedPublic

Authored by will on Feb 26 2024, 8:37 PM.
Tags
None
Referenced Files
F3395981: D11179.id37632.diff
Sun, Dec 1, 9:39 AM
Unknown Object (File)
Fri, Nov 29, 12:26 AM
Unknown Object (File)
Sat, Nov 16, 5:46 PM
Unknown Object (File)
Sat, Nov 16, 5:46 PM
Unknown Object (File)
Sat, Nov 16, 5:45 PM
Unknown Object (File)
Sat, Nov 16, 5:44 PM
Unknown Object (File)
Fri, Nov 8, 10:26 PM
Unknown Object (File)
Fri, Nov 8, 9:02 PM
Subscribers

Details

Summary

This modifies the opensearch modify request to match on keyword instead of text. Term query by default uses a text-based analyzer which causes a mismatch between valid userID queries and results.

This didn't come up during testing before as my test data didn't use uuid for userIDs. This diff fixes this issue by requiring an exact search (using the raw userID) through accessing the keyword field.

Test Plan

Tested on staging. Modify request successfully working

Diff Detail

Repository
rCOMM Comm
Branch
search-index-lambda-keyword
Lint
No Lint Coverage
Unit
No Test Coverage