multi_match support #204

Open
noirbizarre opened this Issue Feb 18, 2014 · 2 comments

Comments

Projects
None yet
2 participants

Hi !

Are you planning to support multi_match queries ?

Something like that would be great:

def multi(query, fields=[], type='best_fields', **options)

So I can simply write:

S().multi('my query', ['field1', 'field2^3'])
S().multi('other query', ['field1', 'field2^3'], 'most_fields')
S().multi('another one', ['field1', 'field2^3'], operator='and')
Member

willkg commented Feb 28, 2014

I had no plans to implement this, but I'll happily accept a PR. It looks pretty handy.

For whoever wants to implement this, the Elasticsearch 0.90 docs for this are here:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-multi-match-query.html

willkg added this to the 0.10 milestone May 20, 2014

Member

willkg commented May 30, 2014

I'm bumping this out of the 0.10 time frame. If someone wants to take a stab at implementing it, I'll happily accept a pull request.

willkg removed this from the 0.10 milestone May 30, 2014

willkg added this to the 0.11 milestone Aug 19, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment