-
Notifications
You must be signed in to change notification settings - Fork 400
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 #21
Comments
Did you try $books = Book::complexSearch([
'body' => [
'multi_match' => [
'query' => 'Moby Dick',
'fields' => ['title^3', 'author']
]
]
]); |
Also, you could use $books = Book::searchByQuery([
'multi_match' => [
'query' => 'Moby Dick',
'fields' => ['title^3', 'author']
]
]); Here (https://github.com/elasticquent/Elasticquent#query-based-search) is the documentation! |
@tortuetorche ... did this answer your question? |
Yes, you did 👌 Many thanks 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Is it possible to apply boost on Individual fields with the caret (^) notation?
Like this sample:
Source: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html#CO115-1
If it's possible, how to do this with your package?
Something like that?
The
title
field is three times as important as theauthor
field.See adamfairholm/Elasticquent#25 for the original issue and iverberk/larasearch#73 for a similar feature request on another Laravel Elastic Search package.
Cheers,
Tortue Torche
The text was updated successfully, but these errors were encountered: