Hi there!
As suggested elsewhere
(http://lucene.472066.n3.nabble.com/Modeling-openinghours-using-multipoints-td4025336.html),
I'm trying to use spatial mapping to model intervals of availability.
I've defined the following fieldType in schema.xml:
<fieldType name="time_rpt"
class="solr.SpatialRecursivePrefixTreeFieldType" geo="false"
distErrPct="0.001" worldBounds="1362528000000 1362528000000
2524608000000 2524608000000" units="degrees" />
...and then I have a field like this:
<field name="availability" type="time_rpt" indexed="true"
stored="false" required="false" multiValued="true"/>
When I try to index a document (via solrj) with availability values in
the the worldBounds range, I get the following exception:
org.apache.solr.common.SolrException:
com.spatial4j.core.exception.InvalidShapeException: Invalid latitude:
latitudes are range -90 to 90: provided lat: [1.3626036E12]
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:404)
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:181)
at
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)
at org.apache.solr.client.solrj.SolrServer.addBean(SolrServer.java:136)
at org.apache.solr.client.solrj.SolrServer.addBean(SolrServer.java:125)
I've searched around a bit, and haven't found anybody else with this
problem. In fact, it sounds like lots of people are doing this kind of
thing with some success. I'm using solr 4.1.0; am I missing something?
Thanks very much!
-Jon