-
Notifications
You must be signed in to change notification settings - Fork 0
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
No handler for type [geo_shape] declared on field [geometry] #3
Comments
I have added the GeoModulePlugin. If version 2.18.0.1-SNAPSHOT looks good to you, I will proceed with releasing version 2.18.0.1. |
Confirmed! Unit tests for Photon work perfectly now! Thanks! |
Version 2.18.0.1 has been released. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Photon uses the opensearch runner for a local instance using testing and production. Whilst creating a pull request, I ran into a problem.
When adding the geo_shape field in the index mapping and running, the OpenSearch runner gives the error:
No handler for type [geo_shape] declared on field [geometry]
The geo_shape is a valid field, but unfortunately isn't supported by de opensearch runner.
I've tried adding it through the modules using the following code:
public static final String OPENSEARCH_MODULES = "org.opensearch.analysis.common.CommonAnalysisPlugin," + // "org.opensearch.transport.Netty4Plugin," + // "org.opensearch.geo.GeoModulePlugin";
...
runner = new OpenSearchRunner(); runner.onBuild((number, settingsBuilder) -> { settingsBuilder.put("http.cors.enabled", false); settingsBuilder.put("discovery.type", "single-node"); settingsBuilder.putList("discovery.seed_hosts", "127.0.0.1:9201"); settingsBuilder.put("indices.query.bool.max_clause_count", "30000"); }).build(OpenSearchRunner.newConfigs() .basePath(dataDirectory) .clusterName(clusterName) .numOfNode(1) .moduleTypes(OPENSEARCH_MODULES)
What am I doing wrong?
The text was updated successfully, but these errors were encountered: