Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about boosted fields in Multi Match Query #73

Open
tortuetorche opened this issue Mar 16, 2015 · 1 comment
Open

Question about boosted fields in Multi Match Query #73

tortuetorche opened this issue Mar 16, 2015 · 1 comment

Comments

@tortuetorche
Copy link

Hi Ivo,

Is it possible to apply boost on Individual fields with the caret (^) notation?
Like this sample:

{
  "multi_match" : {
    "query" : "this is a test",
    "fields" : [ "subject^3", "message" ] 
  }
}

Source: http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html#CO47-1

If it's possible, how to do this with your package?
Something like this?

$results = Wife::search('multi_match', [
    'query' => 'Lisa',
    'fields' => ['firstname^3', 'lastname']
])->getResults();

The firstname field is three times as important as the lastname field.

Cheers,
Tortue Torche

@feenx
Copy link

feenx commented Apr 1, 2015

I too would love to see this feature. It seems as though @iverberk is busy in real life and hasn't had much time to work on this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants