Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: No Longer Reproducible
-
Affects Version/s: 5.1.2
-
Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
-
Component/s: -- none --
-
Labels:
-
Branch Version/s:5.1.x
-
Similar Issues:
Description
I have founded a bug related to a lucene bug during sorting element.
The problem is described in my own post here http://www.liferay.com/web/guest/community/forums/-/message_boards/message/3162682
Because everything indexed is a string the solution proposed by the team of Emmanuel of the team of Hibernate Search is the correct workaround.
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-97
So I correct the bug exchange this part from in the file LuceneIndexSearcherImpl.java from:
if (sort != null)
to
if (sort != null)
{ luceneSort = new org.apache.lucene.search.Sort( new SortField(sort.getFieldName(),SortField.STRING, sort.isReverse())); }
This is the version corrected of the Indexer.