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

Introduce abstract result classes #651

Merged
merged 4 commits into from
Mar 3, 2022

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Mar 3, 2022

The second part of encapsulating ElasticSearch code. Introduces an abstract result class, where the ES subpackage implements the necessary accessors to its internal SearchHit class.

With the abstract result, the deduplication and conversion into the GeocodeJSON result can be moved into the generic handler part. The assumption here is that all database backends will use the same data schema. The abstract results just hids how the data is retrieved.

@lonvia lonvia merged commit 2556997 into komoot:master Mar 3, 2022
@lonvia lonvia deleted the abstract-result-class branch March 3, 2022 16:08
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