textSearch for at most n words match

I have a document signature indexed (the top 60 most significant terms in
the document) in an ES index, along with a document ID. I would like to
retrieve documents that match at least 3 words in a query string, in the
document signature field. Is it possible to limit search results that
satisfy this condition (or at least 3 words matching). and if possible sort
the results with the most matches ranking higher.

The field is a straightforward String field so a text match would work, But
it would also return documents that have 1 word in common.(I only want
documents that have at least 3 words in common).

Thanks for the assist.

Ramdev

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a3711f9e-e3ca-4a73-bd97-112023bbf572%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.