Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

multi_match support #204

Open
noirbizarre opened this Issue · 2 comments

2 participants

@noirbizarre

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')
@willkg
Owner

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 willkg added this to the 0.10 milestone
@willkg
Owner

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 willkg removed this from the 0.10 milestone
@willkg willkg added this to the 0.11 milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.