IO-3152 Restrict searched indexes and remove wildcard search.

IO-3152 Resolve accidentally committed change.
This commit is contained in:
Patrick Fic
2025-02-25 11:21:04 -08:00
parent ef4bb75ce7
commit ace9ec792d

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"
// "*"
]
}
}