[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-172) Add ability to do a Hibernate Sort rather then Lucene Sort

Emmanuel Bernard (JIRA) noreply at atlassian.com
Mon Mar 24 19:31:33 EDT 2008


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

Emmanuel Bernard commented on HSEARCH-172:
------------------------------------------

I think you are sliding to a different subject which is mixing Lucene and SQL queries. As you mentioned, this is not a generically fixable problem.

Back to the original subject, if you manage to get a small amount of elements from Lucene, then I imagine sorting the data in memory (using Comparable) will be quite trivial and fast. If you have a huge amount of data returned from the Lucene query, you're back to the problem I described initially. That is the reason I still need to be convinced before putting a double edge sword into people's hands

> Add ability to do a Hibernate Sort rather then Lucene Sort
> ----------------------------------------------------------
>
>                 Key: HSEARCH-172
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-172
>             Project: Hibernate Search
>          Issue Type: Improvement
>          Components: engine
>            Reporter: Josh Atir
>            Priority: Minor
>
> I have a case in which a Lucene sort would be much more expensive then a sql sort.  I can specify a sort order using Criteria, which causes the entity loading query to be sorted correctly.  The engine then ignores the order that was returned, and instead returns the results based on the order it was received from Lucene.
> I'd like the ability to specify a Hibernate sort rather then a Lucene sort.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list