M
M
magary42016-11-29 15:11:06
Database
magary4, 2016-11-29 15:11:06

Geoquery to the database?

I have a field in my database schema

<dynamicField name="*__loc" type="location" indexed="true" stored="true"/>

I delete all documents and leave only one with the data of the fields
"property__map__loc_0_coordinate":"52.1",
"property__map__loc_1_coordinate":"-93.87341",
"property__map__loc":"52.1,-93.87341",
I want to make a geoquery
/select?omitHeader=true&wt=json&json.nl=flat&fq={!geofilt%20sfield=property__map__loc}&pt=45.15,-93.85&d=50

I get an error
{"trace":"java.lang.UnsupportedOperationException\n\tat org.apache.lucene.queries.function.FunctionValues.doubleVal(FunctionValues.java:47)\n\tat org.apache.solr.schema.SpatialDistanceQuery$SpatialScorer.match(LatLonType.java:387)\n\tat org.apache.solr.schema.SpatialDistanceQuery$SpatialScorer$1.nextDoc(LatLonType.java:449)\n\tat org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)\n\tat org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)\n\tat org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)\n\tat org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)\n\tat

The field in the scheme is configured
The data is correct The
request is also
Please help me figure it out

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question