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

Fabien (JIRA) noreply at atlassian.com
Thu Jul 26 05:25:53 EDT 2007


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

Fabien commented on HSEARCH-97:
-------------------------------

Sorry, I forgot to change it.

If you write this :
@Field(index=Index.UN_TOKENIZED, store=Store.YES)
@DateBridge(resolution=Resolution.SECOND)
private Date date;

and fullTextQuery.setSort(new Sort("date",true));

the result is not reversed :
Date : Thu Jul 26 11:21:30 CEST 2007
Date : Thu Jul 26 11:21:33 CEST 2007



My test is in main method of com.test.dao.utilitaires.HibernateUtil

> 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