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
F3115415: D11179.id37632.diff
Thu, Oct 31, 9:28 PM
F3113845: D11179.diff
Thu, Oct 31, 7:37 PM
Unknown Object (File)
Mon, Oct 14, 7:05 PM
Unknown Object (File)
Mon, Oct 14, 7:05 PM
Unknown Object (File)
Mon, Oct 14, 7:04 PM
Unknown Object (File)
Mon, Oct 14, 7:04 PM
Unknown Object (File)
Sep 12 2024, 11:53 PM
Unknown Object (File)
Sep 12 2024, 11:53 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