spraakbanken / karp-backend

Karp backend
MIT License
3 stars 2 forks source link

Freetext: multi-word expressions should only give exact matches. #287

Closed majsan closed 2 months ago

majsan commented 2 months ago

For example freetext|äta mat should only return entries where the exact words "äta mat" occur in any field.

I think this is simply solved by adding type: "phrase" to the multi-match queries generated by freetext. But it should be tested, for example:

majsan commented 2 months ago

I was also an issue that equals didn't respect:

is the order respected? "mat äta" should not be a hit no slop i.e. "äta god mat" should not be a hit

But both freetext and equals have been fixed.