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

Cannot index Geospatial with solr4 [DATASOLR-81] #203

Closed
spring-projects-issues opened this issue May 30, 2013 · 1 comment
Closed

Cannot index Geospatial with solr4 [DATASOLR-81] #203

spring-projects-issues opened this issue May 30, 2013 · 1 comment
Assignees
Labels
in: core type: bug
Milestone

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented May 30, 2013

Assaf opened DATASOLR-81 and commented

Hi,

I have the following solr config:
<field name="position" type="location_rpt" indexed="true" stored="true" multiValued="false" />

I have a field defined:

@Field(FIELD_POSITION)
private GeoLocation position;

which is set:
this.position = new GeoLocation(x,y);

Yet, when indexing the document, I get the exception:

com.spatial4j.core.exception.InvalidShapeException: incompatible dimension (2) and values (org.springframework.data.solr.core.geo.GeoLocation@6366fad9). Only 0 values specified; nested exception is org.apache.solr.common.SolrException: com.spatial4j.core.exception.InvalidShapeException: incompatible dimension (2) and values (org.springframework.data.solr.core.geo.GeoLocation@6366fad9). Only 0 values specified

Any ideas? Maybe something in the converter?


Issue Links:

  • DATASOLR-35 Add support for non default constructors when mapping beans
    ("depends on")
@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented May 31, 2013

Christoph Strobl commented

Hi,
currently SDS uses SolrJ DocumetObjectBinder for conversion which is not able to handle GeoLocation. DATASOLR-35 will take care of those custom types and will allow to register your own converters. I'll link this issue an give DATASOLR-35 a higher priority.
Cheers Christoph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: bug
Projects
None yet
Development

No branches or pull requests

2 participants