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

Support es 7 #266

Closed
wants to merge 9 commits into from
Closed

Support es 7 #266

wants to merge 9 commits into from

Conversation

AlexeyRaga
Copy link
Contributor

Changes

  • Upgraded docker compose to run ES 7.4.1
  • Removed MappingType
  • Implemented parent/child relationship (it is not perfect, but I have reasons to believe that it has never been perfect in Bloodhound)
  • Removed support for templated queries because this feature is no longer supported by the ES
  • Numerous fixes for annoying incompatibilities and breaking changes

Note that one tests is currently disabled due to a bug that I have found in the ES itself: elastic/elasticsearch#48670
The bug hits rather rare use case, and bloodhound is not at fault so I think it shouldn't be a show stopper for moving forward.

@AlexeyRaga
Copy link
Contributor Author

@bitemyapp Sorry, I did not realise that Travis is using a different way of provisioning the ES and that there was an example project.

I have fixed them both and now the build is green, please have another look.

@@ -1,3 +0,0 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:5.6.0
Copy link
Owner

Choose a reason for hiding this comment

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

What's the purpose for deleting stuff behind elasticsearch/?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not needed anymore.
It was used in docker-compose only, but now it is possible to just use an official docker image.

@bitemyapp
Copy link
Owner

@AlexeyRaga I'm interested in supporting this and updating Bloodhound to ES 7. I've asked @JoseD92 to combine his ES 7 update effort with what you've done. So even if we don't merge this specific PR in the end, it's likely the final PR will reflect the good work you've done here.

@AlexeyRaga
Copy link
Contributor Author

@bitemyapp Where I can see these changes? We are currently maintaining our own fork of bloodhound and it would be useful to see what I missed and probably get these changes too until the official release is out.

@AlexeyRaga AlexeyRaga closed this Jan 6, 2020
@AlexeyRaga AlexeyRaga reopened this Jan 6, 2020
@AlexeyRaga
Copy link
Contributor Author

With @JoseD92 PR merged, what holds us back from having ES7 support in master and on Hackage?

@rsoeldner
Copy link

@bitemyapp @AlexeyRaga any update on this ?

@teto
Copy link

teto commented Oct 21, 2020

that would be awesome, as well as an update on katip-elasticsearch. I can help but would like some confirmation this works first.

@bitemyapp
Copy link
Owner

cc @wraithm

Copy link
Collaborator

@wraithm wraithm left a comment

Choose a reason for hiding this comment

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

This looks great on first review other than some minor style nitpicks. I'm gonna do some more testing tonight.

parseJSON _ = empty

data SearchTemplate =
SearchTemplate {
Copy link
Collaborator

Choose a reason for hiding this comment

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

style nitpick: This is a bit different from the other data type definitions in this project. Would you mind changing it?

s .:? "lang" <*>
s .:? "source" <*>
s .:? "options" <*>
v .: "_id" <*>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would you mind cleaning this up a bit?

v .: "found"
)
script
parseJSON _ = empty
Copy link
Collaborator

Choose a reason for hiding this comment

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

Style nit: Please add a newline here

@teto
Copy link

teto commented Oct 28, 2020

I've tried to use this with katip-elasticsearch and this update breaks it. I wonder where it's best to break the interface bloohound vs katip (I don't know enough about either to have an opinion)

@bitemyapp
Copy link
Owner

cc @MichaelXavier #266 (comment)

@ivanbakel
Copy link
Contributor

@wraithm I've addressed the style nits you raised.

It seems that the original author is no longer in a position to maintain this particular PR. If there are any other changes that need to be made, I am happy to have a go - but I will need to re-open this under a fork I control. (For example, it seems that the disabled test could be re-enabled).

@wraithm
Copy link
Collaborator

wraithm commented Nov 25, 2020

Great! Thanks. I'll get to this later today.

@@ -98,23 +97,23 @@ upload:

## Run test environment
compose-ES5:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor naming thing, would you mind changing the name of this (and the others) to compose-ES7? Maybe it should just simply be called compose?

Copy link
Contributor

Choose a reason for hiding this comment

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

My personal opinion is that compose makes sense because there is nothing obviously connected to the version here.

Copy link
Contributor

Choose a reason for hiding this comment

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

This has been addressed on #276, which is a duplicate PR that I control.

@wraithm
Copy link
Collaborator

wraithm commented Nov 26, 2020

@MichaelXavier Ping, do you have any opinions about katip-elasticsearch and this PR? I've reviewed this, and I'm pretty sure this is good to go.

@ivanbakel ivanbakel mentioned this pull request Nov 27, 2020
@wraithm wraithm closed this Dec 14, 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.

7 participants