You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrated from navapbc#31
Originally created by @chouinar on Thu, 16 May 2024 14:35:15 GMT
Summary
While I've been looking into a few ideas for how we'll actually construct the queries / mappings / staging configurations.
This is less structure of the query, and more configurational. There are a lot of ways we might set things up, and while I expect this will evolve once we're testing, we should aim to get something that makes sense for us / works out a few of the oddities.
One thing worth calling out, we can technically support different query approaches if we want. Since this is all handled when constructing the query, we could always have a parameter in the request that dictates what type of query we construct, including potentially using different analyzers or the advanced query string approach: https://opensearch.org/docs/latest/query-dsl/full-text/query-string/
Need to figure out when dashes negatively affect things, those are interpreted as boundaries in a lot of cases so search USAID-ABC can sometimes cause issues as it interprets that as USAID and ABC separately. I've found that using <whatever_field>.keyword fixes it, but might be something we handle in mapping or another manner.
Capitalization seems to matter for some fields. The values are stored as lowercase, so a search for "USAID" doesn't give results, but "usaid" does. We either need to adjust that, or just lower-case the query string.
Migrated from navapbc#31
Originally created by @chouinar on Thu, 16 May 2024 14:35:15 GMT
Summary
While I've been looking into a few ideas for how we'll actually construct the queries / mappings / staging configurations.
This is less structure of the query, and more configurational. There are a lot of ways we might set things up, and while I expect this will evolve once we're testing, we should aim to get something that makes sense for us / works out a few of the oddities.
A few things to investigate:
X | (Y & Z)
.USAID-ABC
can sometimes cause issues as it interprets that asUSAID
andABC
separately. I've found that using<whatever_field>.keyword
fixes it, but might be something we handle in mapping or another manner.Acceptance criteria
No response
The text was updated successfully, but these errors were encountered: