Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
replace 'or' operator by 'and'
Browse files Browse the repository at this point in the history
This apparently results in Elasticsearch requiring *all* words in the
query to occur in a field before it is considered a match, thus "fefe
fnord" won't match the event "Fnord Jahresrückblick" with "fefe" in the
person-field anymore. On the other hand, it prevents "CCC
Jahresrückblick" from occuring when somebody enters "Fnord
Jahresrückblick" as a query.

All in all, this probably makes the search more useful for now.
  • Loading branch information
florolf committed Dec 1, 2015
1 parent 90e7abc commit 3e585c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/search.pl
Expand Up @@ -49,7 +49,7 @@ sub term_search {
'event.description^1'
],
type => 'best_fields',
operator => 'or',
operator => 'and',
fuzziness => 1
},
},
Expand Down

0 comments on commit 3e585c4

Please sign in to comment.