Skip to content

Commit

Permalink
try to fix wildcard search. Problem: wildcard should not go to analys…
Browse files Browse the repository at this point in the history
…ed fields
  • Loading branch information
ksuess committed Jul 11, 2022
1 parent c9278a9 commit 71f8d2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Searchkit/CustomESRequestSerializer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,13 @@ export class CustomESRequestSerializer {
qs_tailored.push(word);
});

let simpleFields = this.simpleFields;
let simpleFields = [...this.simpleFields];
console.debug('simpleFields', simpleFields);
simpleFields.forEach((fld) => {
const fieldname = fld.split('^')[0];
simpleFields.push(fld.replace(fieldname, `${fieldname}.exact`));
});
console.debug('simpleFields', simpleFields);

// let shouldList = [];
// shouldList.push({
Expand Down

0 comments on commit 71f8d2c

Please sign in to comment.