[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-1009) buildSpatialQuery vs buildGridQuery is still a bit confusing

Nicolas Helleringer (JIRA) noreply at atlassian.com
Fri Dec 23 08:44:19 EST 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-1009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44685#comment-44685 ] 

Nicolas Helleringer commented on HSEARCH-1009:
----------------------------------------------

GridQuery : Search for documents in the grid cells covering search disc (defined by center and radius) => this may return documents that are outside search discus as this discus is inscribed into the covering grid cells (they are larger)
It may be suitable for an Hibernate Search using app to do the filtering on the larger subset by itself (keeping the sur numerous documents for any use ?)

DistanceQuery : Search for documents in the strict search radius by doing a double range numeric filter on the latitude and longitude indexed fields. More costly than the Grid on large datasets but exact match.

SpatialQuery : Search for documents by Grid then Filter with Distance strict. Best of both world ?

> buildSpatialQuery vs buildGridQuery is still a bit confusing
> ------------------------------------------------------------
>
>                 Key: HSEARCH-1009
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-1009
>             Project: Hibernate Search
>          Issue Type: Sub-task
>          Components: query
>            Reporter: Emmanuel Bernard
>            Assignee: Nicolas Helleringer
>
> I can't make up the actual diff between the two. Is buildSpatialQuery a mix of buildGridQuery + buildDistanceFilter?

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

        


More information about the hibernate-issues mailing list