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

Add multi_match leaf query function #114

Merged
merged 1 commit into from
Nov 7, 2019
Merged

Conversation

Joxit
Copy link
Member

@Joxit Joxit commented Oct 25, 2019

I follow #109 with the multi_match in leaf query.

I think this will be useful for the multi-lang support, it will simplify queries in the API.

Connected pelias/api#1300

Copy link
Member

@orangejulius orangejulius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks. This is a really complicated query type to support but I suspect we'll be using it more and more over time.

'cross_fields': ['analyzer', 'boost', 'operator', 'minimum_should_match', 'lenient', 'zero_terms_query', 'cutoff_frequency'],
'phrase': PHRASE_PARAMS,
'phrase_prefix': PHRASE_PARAMS.concat('max_expansions')
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So many params :)

@orangejulius orangejulius merged commit 41d6492 into master Nov 7, 2019
@Joxit Joxit deleted the joxit/feat/multi_match branch November 7, 2019 21:27
@Joxit
Copy link
Member Author

Joxit commented Nov 7, 2019

Yes, I tried to support all ES parameters 😁

Joxit added a commit to pelias/api that referenced this pull request Nov 8, 2019
Joxit added a commit to pelias/api that referenced this pull request Nov 8, 2019
orangejulius pushed a commit to pelias/api that referenced this pull request May 25, 2020
Joxit added a commit to pelias/api that referenced this pull request Jun 4, 2020
orangejulius pushed a commit to pelias/api that referenced this pull request Jun 26, 2020
orangejulius pushed a commit to pelias/api that referenced this pull request Jun 26, 2020
orangejulius added a commit that referenced this pull request Aug 26, 2020
BREAKING CHANGE: the old multi_match view is removed.

I don't remembe writing it, but since
#14 in early 2016(!) we have had a
general purpose view for
[multi_match](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html)
queries.

This view doesn't fit our current pattern for keeping general purpose
(i.e. corresponding to built in Elasticsear query) views in the
`view/leaf` directory, and it doesn't support as much functionality as
the `multi_match` view @Joxit made for us in
#114 last year.

This PR removes the older view, and in the process converts the
`admin_multi_match` view over to using the new `multi_match` leaf query.

While I don't think anything in the Pelias API uses the old
`multi_match` query directly, this removal will require changes to the
API tests because of minor differences in the final output.
orangejulius added a commit that referenced this pull request Aug 26, 2020
BREAKING CHANGE: the old multi_match view is removed.

I don't remember writing it, but since
#14 in early 2016(!) we have had a
general purpose view for
[multi_match](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html)
queries.

This view doesn't fit our current pattern for keeping general purpose
(i.e. corresponding to built in Elasticsearch query) views in the
`view/leaf` directory, and it doesn't support as much functionality as
the `multi_match` view @Joxit made for us in
#114 last year.

This PR removes the older view, and in the process converts the
`admin_multi_match` view over to using the new `multi_match` leaf query.

While I don't think anything in the Pelias API uses the old
`multi_match` query directly, this removal will require changes to the
API tests because of minor differences in the final output.
orangejulius added a commit that referenced this pull request Aug 26, 2020
BREAKING CHANGE: the old multi_match view is removed.

I don't remember writing it, but since
#14 in early 2016(!) we have had a
general purpose view for
[multi_match](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html)
queries.

This view doesn't fit our current pattern for keeping general purpose
(i.e. corresponding to built in Elasticsearch query) views in the
`view/leaf` directory, and it doesn't support as much functionality as
the `multi_match` view @Joxit made for us in
#114 last year.

This PR removes the older view, and in the process converts the
`admin_multi_match` view over to using the new `multi_match` leaf query.

While I don't think anything in the Pelias API uses the old
`multi_match` query directly, this removal will require changes to the
API tests because of minor differences in the final output.
bboure pushed a commit to tamaringoapp/api that referenced this pull request Sep 22, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants