Details

    • Branch Version/s:
      5.1.x
    • Similar Issues:
      Show 5 results 

      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())); }

        Activity

        Hide
        Luca Preziati added a comment -

        This is the version corrected of the Indexer.

        Show
        Luca Preziati added a comment - This is the version corrected of the Indexer.
        Hide
        Corne added a comment -

        Luca,
        thanks for the report. I tried to reproduce this issue on Liferay Portal 6.0.12 but could
        not.

        Has been fixed with raymond.auge 80233 7-mei-2011 9:09
        LPS-6473 Search Faceted - Preliminary faceted search support

        sortFields[i] = new SortField(sort.getFieldName(), sort.getType(), sort.isReverse());

        If you still experience this issue,
        please let me know how to reproduce the issue and we can re-visit it.
        Thanks!

        This issue will be closed.>

        Show
        Corne added a comment - Luca, thanks for the report. I tried to reproduce this issue on Liferay Portal 6.0.12 but could not. Has been fixed with raymond.auge 80233 7-mei-2011 9:09 LPS-6473 Search Faceted - Preliminary faceted search support sortFields [i] = new SortField(sort.getFieldName(), sort.getType(), sort.isReverse()); If you still experience this issue, please let me know how to reproduce the issue and we can re-visit it. Thanks! This issue will be closed.>
        Hide
        Luca Preziati added a comment -

        It's right, because the use of Lucene, starting from 5.3.2, if i remember well, was changed.

        Show
        Luca Preziati added a comment - It's right, because the use of Lucene, starting from 5.3.2, if i remember well, was changed.
        Hide
        Michael Saechang added a comment -

        Closing ticket as per Corne's comment. Thank you for verifying.

        Show
        Michael Saechang added a comment - Closing ticket as per Corne's comment. Thank you for verifying.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 6 weeks ago

              Development

                Structure Helper Panel