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

Document search filtering by fileentrytypeid does not work is id is provided as long instead of string

    Details

      Description

      If fileentrytypeid is added to searchcontext attributes as long and not as String it is not used in building the search query.

      Here is the relevat part of the code that used to work with LR 6.1.20

      SearchContext searchContext = SearchContextFactory.getInstance(req);
      searchContext.setAttribute("fileEntryTypeId", 12345L); //with Long.toString(12345L) it works as expected
      Indexer indexer = IndexerRegistryUtil.getIndexer(DLFileEntryConstants.getClassName());
      Hits hits = indexer.search(searchContext);
      

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                7.0.0 M6