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

Reorganise code to properly encapsulate elasticsearch #648

Merged
merged 5 commits into from
Mar 1, 2022

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Mar 1, 2022

This shifts around the existing code, so that access to the elasticsearch library is now completely restricted to the de.komoot.photon.elasticsearch package. The sever class becomes the main component responsible for creating any objects related to ES processing. The query classes are reorganised to have a clean break between webserver and database access. The *ElasticSearcher classes are gone and it's code is merged into the ES-specific classes.

There is still some reorganisation work to do for the result handling. The conversion to a Geocode JSON result shouldn't be done in the ES-specific part.

@lonvia lonvia merged commit 15275dd into komoot:master Mar 1, 2022
@lonvia lonvia deleted the encapsulate-elasticsearch branch March 1, 2022 09:34
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.

1 participant