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 an experimental OpenSearch-based version #799

Merged
merged 14 commits into from
May 10, 2024

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented May 6, 2024

This adds experimental support for running Photon under the latest version of OpenSearch. It can be run in embedded mode thanks to opensearch-runner. External OpenSearch instances are supported as well but currently only via an unsecured HTTP connection.

The underlying Lucene library has changed quite a bit. Thus search results are not exactly the same but close enough in quality. Testing a planet installation against geocoder-tester I get comparable database sizes, execution time and number of good results.

The indexes are not expected to be binary compatible, so I made some small changes to how the collector indexes are organized. This should speed up the queries a little bit by avoiding multi-match queries. Other than that I've left the query structure as is. The newest version of OpenSearch has a few new interesting features but lets get this working as before first.

See README on how to build the new version. Please be aware that I have moved the final jars back to the target directory.

Feedback welcome.

@lonvia lonvia force-pushed the port-to-opensearch branch from 0f46ae4 to 2da4023 Compare May 8, 2024 08:26
@lonvia lonvia merged commit f071a06 into komoot:master May 10, 2024
4 checks passed
@lonvia lonvia deleted the port-to-opensearch branch May 10, 2024 09:07
@lonvia lonvia mentioned this pull request May 13, 2024
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