Details

    • Branch Version/s:
      5.1.x

      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)

      { luceneSort = new org.apache.lucene.search.Sort( new SortField(sort.getFieldName(),sort.isReverse())); }

      to

      if (sort != null)

      { luceneSort = new org.apache.lucene.search.Sort( new SortField(sort.getFieldName(),SortField.STRING, sort.isReverse())); }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 28 weeks, 1 day ago