How can I achieve query loosening in elasticsearch?


(Jofen) #1

For example, I want to search "text1 text2 text3 text4 text5" in _all fields, and my preference would be find the documents that have all the five text terms in it, but usually it would return with very little hit. So I would want to do some query loosening here. e.g. I would also accept documents that contains 3 or 4 of the terms. Is there a way to do it in a single query call to elasticsearch?

Thanks.


(system) #2