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

feat: Add Elasticsearch 7 support #2092

Merged
merged 5 commits into from
Feb 10, 2021
Merged

feat: Add Elasticsearch 7 support #2092

merged 5 commits into from
Feb 10, 2021

Conversation

jplaisted
Copy link
Contributor

@jplaisted jplaisted commented Feb 8, 2021

Taking over from https://github.com/linkedin/datahub/pull/1997/files

This is now tested with the integration test framework :)

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

jywadhwani and others added 5 commits February 8, 2021 15:02
Some parameters in search query are optional and automatically populated. With the ES upgrade these parameters could be removed/added.
@jplaisted jplaisted mentioned this pull request Feb 8, 2021
4 tasks
Copy link
Contributor

@camelliazhang camelliazhang left a comment

Choose a reason for hiding this comment

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

Thanks for picking this up!

@@ -22,18 +22,17 @@
"fuzzy_transpositions" : true,
"lenient" : false,
"zero_terms_query" : "NONE",
"auto_generate_synonyms_phrase_query": true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar question: what is the default value for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(Optional, Boolean) If true, match phrase queries are automatically created for multi-term synonyms. Defaults to true. See Synonyms for an example.

I don't know why this was added, I copied it from Jyoti's PR. I can remove it and see what happens?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, this is in test data. Yes, I'm guessing the ES java library makes some defaults explicit.

build.gradle Show resolved Hide resolved
@camelliazhang camelliazhang merged commit fb609f6 into datahub-project:es-7-support Feb 10, 2021
@jplaisted
Copy link
Contributor Author

fyi @cobolbaby

@jplaisted jplaisted deleted the es-7-support branch February 10, 2021 20:29
jplaisted pushed a commit that referenced this pull request Mar 19, 2021
* upgrade to ES7

* add doc summarizing the changes

* Call out the optional parameters in search query

Some parameters in search query are optional and automatically populated. With the ES upgrade these parameters could be removed/added.

* revert unrelated changes

* update required max_ngram_diff field for ES7 (caught by integration tests)

Co-authored-by: Jyoti Wadhwani <[email protected]>
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.

3 participants