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

No handler for type [geo_shape] declared on field [geometry] #3

Closed
red-fenix opened this issue Dec 5, 2024 · 4 comments
Closed

No handler for type [geo_shape] declared on field [geometry] #3

red-fenix opened this issue Dec 5, 2024 · 4 comments

Comments

@red-fenix
Copy link

red-fenix commented Dec 5, 2024

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?

@Rob-Biemans
Copy link

@marevol

marevol added a commit that referenced this issue Dec 12, 2024
@marevol
Copy link
Contributor

marevol commented Dec 12, 2024

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.

@red-fenix
Copy link
Author

Confirmed! Unit tests for Photon work perfectly now! Thanks!

@marevol
Copy link
Contributor

marevol commented Dec 13, 2024

Version 2.18.0.1 has been released.

@marevol marevol closed this as completed Dec 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

No branches or pull requests

3 participants