Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-39809

In Lucene, doing numeric range queries on int fields does not return any result

    Details

      Description

      This issue is related to LPS-32589.

      The BooleanQuery interface has a few different methods to specify numeric ranges, so it's possible to search for documents with numeric field values in a range. As of today, int, long and short fields are supported (and the way they are indexed depends on their type), but, during search, they are all incorrectly treated as long by the LuceneHelperImpl class, and, because of this, such searches don't return any result.

      It's not possible to reproduce this bug in the portal, because these methods aren't used by the core.

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                6.2.0 CE RC1