Skip to content

Commit

Permalink
Exclude AND and OR
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Jul 23, 2023
1 parent 7654dce commit 469b807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Searchkit/CustomESRequestSerializer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ export class CustomESRequestSerializer {
// - search also for word parts (LSR-Lehrbetrieb: search also for LSR and Lehrbetrieb)
let words = queryString.trim().split(' ');
words = words
// filter out spaces and orphan "
.filter((word) => word !== '' && word !== '"');
// filter out spaces, orphan ", "AND", and "OR"
.filter((word) => !['', '"', 'AND', 'OR', 'NOT'].includes(word));

words.forEach((word) => {
word = _remove_orphan_leading_or_trailing_quotmarks(word);
Expand Down

0 comments on commit 469b807

Please sign in to comment.