Introduce a Sort DSL, especially for Spatial Queries

Description

This doesn't look like as something we would like to keep as API:

Activity

Show:

Yoann Rodière October 16, 2018 at 2:31 PM

Was implemented in HSEARCH-1872. Closing as duplicate.

Sanne Grinovero February 18, 2016 at 9:48 PM

Wondering: how far could we reuse the existing Hibernate API for sorting?
Just a late night idea, didn't think it through yet but it seems worth linking the issues.

Sanne Grinovero November 10, 2014 at 9:05 PM

Did you try writing some code using it?

  • It requires a lot of knowledge, while on the DSL you can present the option nicely.

  • the "location" field is duplicated from the spatial field names

  • wrapping with the "new Sort()" at least could be redundant.

  • the DSL creates the query, it's quite odd already that I have to wrap the query in one point and then wrap the sort to a different entry point

Hardy Ferentschik November 10, 2014 at 8:07 PM

This doesn't look like as something we would like to keep as API:

Why not? It is very much inline with sorting in general. Why introducing asymmetry in the API just for this case?

Duplicate

Details

Assignee

Reporter

Components

Priority

Created October 18, 2012 at 6:40 PM
Updated October 16, 2018 at 2:31 PM
Resolved October 16, 2018 at 2:31 PM