You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/03 19:26:21 UTC
[jira] [Created] (SOLR-5807) Support rectangle range query syntax
for indexed shapes & worldBounds
David Smiley created SOLR-5807:
----------------------------------
Summary: Support rectangle range query syntax for indexed shapes & worldBounds
Key: SOLR-5807
URL: https://issues.apache.org/jira/browse/SOLR-5807
Project: Solr
Issue Type: Improvement
Components: spatial
Reporter: David Smiley
Priority: Minor
Want to do a spatial query using the RPT field type using an arbitrary rectangle? There are two choices right now (and I'm omitting the deprecated 3rd choice):
* {{field:\["minX minY" TO "maxX maxY"]}}
* {{field:"ENVELOPE(minX, maxX, maxY, minY)"}} (the Y order is not a typo)
But what about *indexing* a rectangle? Or configuring the worldBounds attribute on the field type? For both those (and again, omitting the deprecated choice), you just have ENVELOPE. Well... if you have JTS then you can also do a 4-point polygon.
What this issue proposes is that the rectangle range query syntax be parsed by Solr as a shape syntax for indexing & worldBounds. It'll add consistency, and it means you don't need to see/use WKT unless you have complex shapes. That way you never have to use WKT if you don't have complex shapes. (well, indexing a circle is still an exception)
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org