You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Zac Smith (JIRA)" <ji...@apache.org> on 2011/06/20 05:20:47 UTC

[jira] [Created] (SOLR-2609) Coordinate range queries do not work with Spatial Solr

Coordinate range queries do not work with Spatial Solr
------------------------------------------------------

                 Key: SOLR-2609
                 URL: https://issues.apache.org/jira/browse/SOLR-2609
             Project: Solr
          Issue Type: Bug
          Components: SearchComponents - other
    Affects Versions: 3.1
            Reporter: Zac Smith


The Spatial Search documentation states that you can create your own bounding box using a range query:
"Since the LatLonType field also supports field queries and range queries, one can manually create their own bounding box rather than using bbox: ...&q=*:*&fq=store:[45,-94 TO 46,-93]"

This works unless your range covers an area where longitude goes from 180 to -180. For instance I want all items in the longitude range of 
178 to -177 which of course gives no results (it is not a valid numeric range). It's not really surprising that this doesn't work as it is just a standard range query with no spatial filters being applied.

I am wondering if this is just an issue with the documentation and there is another way that this should be done? Please advise if more details are needed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2609) Coordinate range queries do not work with Spatial Solr

Posted by "David Smiley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051988#comment-13051988 ] 

David Smiley commented on SOLR-2609:
------------------------------------

I highly doubt this can be fixed, based on how it works. The documentation/wiki should be updated to note this problem.

I recommend you use bbox: http://wiki.apache.org/solr/SpatialSearch#bbox_-_Bounding-box_filter
Granted you cannot specify an arbitrary bounding box, only one based on a point-distance, but this may be good enough.

> Coordinate range queries do not work with Spatial Solr
> ------------------------------------------------------
>
>                 Key: SOLR-2609
>                 URL: https://issues.apache.org/jira/browse/SOLR-2609
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>    Affects Versions: 3.1
>            Reporter: Zac Smith
>              Labels: spatialsearch
>
> The Spatial Search documentation states that you can create your own bounding box using a range query:
> "Since the LatLonType field also supports field queries and range queries, one can manually create their own bounding box rather than using bbox: ...&q=*:*&fq=store:[45,-94 TO 46,-93]"
> This works unless your range covers an area where longitude goes from 180 to -180. For instance I want all items in the longitude range of 
> 178 to -177 which of course gives no results (it is not a valid numeric range). It's not really surprising that this doesn't work as it is just a standard range query with no spatial filters being applied.
> I am wondering if this is just an issue with the documentation and there is another way that this should be done? Please advise if more details are needed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2609) Coordinate range queries do not work with Spatial Solr

Posted by "Zac Smith (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052093#comment-13052093 ] 

Zac Smith commented on SOLR-2609:
---------------------------------

It would be really great if there was support for creating arbitrary bounding boxes that do work over the 180th meridian.
Should this be changed from a bug to a feature request to that end?

> Coordinate range queries do not work with Spatial Solr
> ------------------------------------------------------
>
>                 Key: SOLR-2609
>                 URL: https://issues.apache.org/jira/browse/SOLR-2609
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>    Affects Versions: 3.1
>            Reporter: Zac Smith
>              Labels: spatialsearch
>
> The Spatial Search documentation states that you can create your own bounding box using a range query:
> "Since the LatLonType field also supports field queries and range queries, one can manually create their own bounding box rather than using bbox: ...&q=*:*&fq=store:[45,-94 TO 46,-93]"
> This works unless your range covers an area where longitude goes from 180 to -180. For instance I want all items in the longitude range of 
> 178 to -177 which of course gives no results (it is not a valid numeric range). It's not really surprising that this doesn't work as it is just a standard range query with no spatial filters being applied.
> I am wondering if this is just an issue with the documentation and there is another way that this should be done? Please advise if more details are needed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2609) Coordinate range queries do not work with Spatial Solr

Posted by "David Smiley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052136#comment-13052136 ] 

David Smiley commented on SOLR-2609:
------------------------------------

Yes, this should be a feature request for "Allow arbitrary bbox lat-lon, not limited to circle".  Under the hood, I recall the first order of business is resolving the point-radius to a bounding box. At that point the special prime-meridian logic is handled. It seems it would not be hard to make a patch that ads new parameters for explicit lat-lon bbox params.

> Coordinate range queries do not work with Spatial Solr
> ------------------------------------------------------
>
>                 Key: SOLR-2609
>                 URL: https://issues.apache.org/jira/browse/SOLR-2609
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>    Affects Versions: 3.1
>            Reporter: Zac Smith
>              Labels: spatialsearch
>
> The Spatial Search documentation states that you can create your own bounding box using a range query:
> "Since the LatLonType field also supports field queries and range queries, one can manually create their own bounding box rather than using bbox: ...&q=*:*&fq=store:[45,-94 TO 46,-93]"
> This works unless your range covers an area where longitude goes from 180 to -180. For instance I want all items in the longitude range of 
> 178 to -177 which of course gives no results (it is not a valid numeric range). It's not really surprising that this doesn't work as it is just a standard range query with no spatial filters being applied.
> I am wondering if this is just an issue with the documentation and there is another way that this should be done? Please advise if more details are needed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2609) Allow arbitrary bbox lat-lon, not limited to circle

Posted by "Zac Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zac Smith updated SOLR-2609:
----------------------------

    Description: 
The Spatial Search documentation states that you can create your own bounding box using a range query:
"Since the LatLonType field also supports field queries and range queries, one can manually create their own bounding box rather than using bbox: ...&q=*:*&fq=store:[45,-94 TO 46,-93]"

This works unless your range covers an area where longitude goes from 180 to -180. For instance I want all items in the longitude range of 
178 to -177 which of course gives no results (it is not a valid numeric range). It's not really surprising that this doesn't work as it is just a standard range query with no spatial filters being applied.

UPDATE
Updated issue to be an enhancement, title changed.

Desired functionality is for bbox to accept coordinate parameters for an arbitrary size bounding box. The bbox should take into account the prime meridians, in particular the 180th meridian.
Documentation also needs to be updated to remove incorrect query example.

  was:
The Spatial Search documentation states that you can create your own bounding box using a range query:
"Since the LatLonType field also supports field queries and range queries, one can manually create their own bounding box rather than using bbox: ...&q=*:*&fq=store:[45,-94 TO 46,-93]"

This works unless your range covers an area where longitude goes from 180 to -180. For instance I want all items in the longitude range of 
178 to -177 which of course gives no results (it is not a valid numeric range). It's not really surprising that this doesn't work as it is just a standard range query with no spatial filters being applied.

I am wondering if this is just an issue with the documentation and there is another way that this should be done? Please advise if more details are needed.

     Issue Type: Improvement  (was: Bug)
        Summary: Allow arbitrary bbox lat-lon, not limited to circle  (was: Coordinate range queries do not work with Spatial Solr)

> Allow arbitrary bbox lat-lon, not limited to circle
> ---------------------------------------------------
>
>                 Key: SOLR-2609
>                 URL: https://issues.apache.org/jira/browse/SOLR-2609
>             Project: Solr
>          Issue Type: Improvement
>          Components: SearchComponents - other
>    Affects Versions: 3.1
>            Reporter: Zac Smith
>              Labels: spatialsearch
>
> The Spatial Search documentation states that you can create your own bounding box using a range query:
> "Since the LatLonType field also supports field queries and range queries, one can manually create their own bounding box rather than using bbox: ...&q=*:*&fq=store:[45,-94 TO 46,-93]"
> This works unless your range covers an area where longitude goes from 180 to -180. For instance I want all items in the longitude range of 
> 178 to -177 which of course gives no results (it is not a valid numeric range). It's not really surprising that this doesn't work as it is just a standard range query with no spatial filters being applied.
> UPDATE
> Updated issue to be an enhancement, title changed.
> Desired functionality is for bbox to accept coordinate parameters for an arbitrary size bounding box. The bbox should take into account the prime meridians, in particular the 180th meridian.
> Documentation also needs to be updated to remove incorrect query example.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2609) Allow arbitrary bbox lat-lon, not limited to circle

Posted by "Zac Smith (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052151#comment-13052151 ] 

Zac Smith commented on SOLR-2609:
---------------------------------

Thanks David, I have updated this to be a feature request.

> Allow arbitrary bbox lat-lon, not limited to circle
> ---------------------------------------------------
>
>                 Key: SOLR-2609
>                 URL: https://issues.apache.org/jira/browse/SOLR-2609
>             Project: Solr
>          Issue Type: Improvement
>          Components: SearchComponents - other
>    Affects Versions: 3.1
>            Reporter: Zac Smith
>              Labels: spatialsearch
>
> The Spatial Search documentation states that you can create your own bounding box using a range query:
> "Since the LatLonType field also supports field queries and range queries, one can manually create their own bounding box rather than using bbox: ...&q=*:*&fq=store:[45,-94 TO 46,-93]"
> This works unless your range covers an area where longitude goes from 180 to -180. For instance I want all items in the longitude range of 
> 178 to -177 which of course gives no results (it is not a valid numeric range). It's not really surprising that this doesn't work as it is just a standard range query with no spatial filters being applied.
> UPDATE
> Updated issue to be an enhancement, title changed.
> Desired functionality is for bbox to accept coordinate parameters for an arbitrary size bounding box. The bbox should take into account the prime meridians, in particular the 180th meridian.
> Documentation also needs to be updated to remove incorrect query example.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org