Hi again Bruce,
On Tue, Feb 18, 2014 at 8:34 AM, Bruce Hartzler <[hidden email]> wrote:
I adjusted CHANGES.md just now to point out you should use the ENVELOPE syntax in worldBounds. I'm working on various updates to the Solr ref guide & Solr wiki now -- in progress.
What's going on with the documentation by the way? It's so scattered. Can we kill some of it to force people to the right places? You know what I mean?
Yeah, it's a mess :-( The Solr ref guide is the official documentation for Solr and it's only modifiable by committers (like me). But it's newer documentation compared to other sources so it is not as comprehensive. At least it's cleaner and more approachable. The older MoinMoin wiki was the defacto documentation but it's transitioning not to be anymore -- a slow and gradual process. It is where more community advice tips & tricks go. It holds lots of details not in the ref guide -- definitely true for spatial.
Would you be opposed to including some basic Solr field types on the help page there on github? I think you can be sure most people read that page at least. There also isn't really anything on the new switches (validationRule, datelineRule, etc.). These options are very hot BTW.
Ah, definitely *not* GitHub here because Spatial4j is ostensibly independent of Lucene-spatial, and definitely of Solr / ElasticSearch which is another layer away. I think as long as there is a link in Solr's default example schema next to the field type for more information -- that's good. The sore point is that the current link to https://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4 could use a refresher and perhaps migration into the Ref guide. Again, I'm in-progress today with some amount of this activity.
I still can't get it to run though with my custom worldBounds. Here's my field definition and the error it generates. I'm guessing but it would seem that the SpatialContextFactory is trying to instantiate a ShapeParser in order to parse the worldBounds line but ends up passing in a SpatialContext instead of a JtsSpatialContext? Does that make sense? If I kill the worldBounds line, it starts up fine.
So did you swap out Spatial4j 0.4 in for 0.3 into your existing Solr pre 4.7? You don't *have* to change the worldBounds syntax to ENVELOPE by the way -- I'm trying to keep backwards compatibility. But any way you should and you are... so the specific problem appears to be that your 3rd and 4th arguments to ENVELOPE need to be swapped. The order is minX, maxX, maxY, minY -- definitely not intuitive! Blame OGC for that one.
dev mailing list
Oh drat! initWorldBounds() should call newSpatialContext();. I didn't test JTS in combo with a custom world bounds. I may need to rush a fix for this for 0.4.1
On Tue, Feb 18, 2014 at 11:27 AM, Bruce Hartzler <[hidden email]> wrote:
dev mailing list
|Free forum by Nabble||Edit this page|