Merged in feature/IO-3152-opensearch-improvements (pull request #2129)

feature/IO-3152-opensearch-improvements

Approved-by: Patrick Fic
This commit is contained in:
Patrick Fic
2025-02-25 19:28:03 +00:00

View File

@@ -204,7 +204,7 @@ async function OpenSearchSearchHandler(req, res) {
: process.env.BODY_SHOP_ID_MATCH_OVERRIDE;
const { body } = await osClient.search({
...(index ? { index } : {}),
...(index ? { index } : { index: ["jobs", "vehicles", "owners", "bills", "payments"] }),
body: {
size: 100,
query: {
@@ -248,8 +248,8 @@ async function OpenSearchSearchHandler(req, res) {
"*ownr_fn^8",
"*ownr_co_nm^8",
"*ownr_ph1^8",
"*ownr_ph2^8",
"*"
"*ownr_ph2^8"
// "*"
]
}
}