[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-97) Problem with date Sort

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Jul 26 09:18:52 EDT 2007


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

Emmanuel Bernard commented on HSEARCH-97:
-----------------------------------------

This is a bug/flaw in the Lucene Sort type detector, set it up manually
new Sort( new SortField( "date", SortField.STRING, true ) );

Really you should start learning how to use a debugger: both Hibernate Search and Apache Lucene are open source, that makes it easy.

> Problem with date Sort
> ----------------------
>
>                 Key: HSEARCH-97
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-97
>             Project: Hibernate Search
>          Issue Type: Task
>    Affects Versions: 3.0.0.beta3
>            Reporter: Fabien
>         Attachments: 2007-07-17-WorkspaceTestSort.zip
>
>
> I have a problem when I made a date Sort.
> The main method is in HibernateUtil.java
> I inserted 2 objects "Entite". Then, I made a search and sort is :
> fullTextQuery.setSort(new Sort("date",false));
> Result :
> Date : Tue Jul 17 10:48:26 CEST 2007
> Date : Tue Jul 17 10:48:29 CEST 2007
> and
> fullTextQuery.setSort(new Sort("date",true));
> Result :
> Date : Tue Jul 17 10:49:04 CEST 2007
> Date : Tue Jul 17 10:49:08 CEST 2007
> The results are in the same order :S
> Is it an HSearch bug ?
> Thank you.

-- 
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