Query which exact matches a search term, but partially matches a different search term


(bruno) #1

I've been investigating how to do this in a single query, but I'm really struggling to find a way.

Let's imagine I have a search term: "wool socks" should exact match to field type which will have a keyword "wool socks" and should also exclude/filter from the result set any documents that do not have "wool socks" in the type field.

On the other hand if I search for "brown wool socks" then I'll get no matches because there is no type "brown wool socks" but I'd still want it to respond with documents that match partially on other fields.

Any ideas?


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.