Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-5464

Using multiple search engine adapters does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0 EE SP1 (6.0.11)
    • Fix Version/s: 6.0 EE SP2 (6.0.12)
    • Component/s: Web Search
    • Labels:
      None

      Description

      Using multiple search engine adapters does not work.

      API CHANGES:

      Class: com.liferay.portal.kernel.search.BooleanQueryFactoryUtil

      Method: create()
      Status: Deleted
      New method: create(SearchContext searchContext)

      Method: getBooleanQueryFactory()
      Status: Deleted
      New method: getBooleanQueryFactory(SearchContext searchContext)

      Method: setBooleanQueryFactory(BooleanQueryFactory booleanQueryFactory)
      Status: Deleted

      Class: com.liferay.portal.kernel.search.IndexSearcher

      Method: search(long companyId, Query query, Sort[] sort, int start, int end)
      Status: Deleted
      New method: search(String searchEngineId, long companyId, Query query, Sort[] sort, int start, int end)

      Class: com.liferay.portal.kernel.search.IndexWriter

      Method: addDocument(long companyId, Document document)
      Status: Deleted
      New method: addDocument(SearchContext searchContext, Document document)

      Method: addDocuments(long companyId, Collection<Document> documents)
      Status: Deleted
      New method: addDocuments(SearchContext searchContext, Collection<Document> documents)

      Method: deleteDocument(long companyId, String uid)
      Status: Deleted
      New method: deleteDocument(SearchContext searchContext, String uid)

      Method: deleteDocuments(long companyId, Collection<String> uids)
      Status: Deleted
      New method: deleteDocuments(SearchContext searchContext, Collection<String> uids)

      Method: deletePortletDocuments(long companyId, String portletId)
      Status: Deleted
      New method: deletePortletDocuments(SearchContext searchContext, String portletId)

      Method: updateDocument(long companyId, Document document)
      Status: Deleted
      New method: updateDocument(SearchContext searchContext, Document document)

      Method: updateDocuments(long companyId, Collection<Document> documents)
      Status: Deleted
      New method: updateDocuments(SearchContext searchContext, Collection<Document> documents)

      Class: com.liferay.portal.kernel.search.SearchEngine

      Method: getSearcher()
      Status: Deleted
      New method: getIndexSearcher()

      Method: getWriter()
      Status: Deleted
      New method: getIndexWriter()

      Class: com.liferay.portal.kernel.search.SearchEngineUtil

      Method: getPortalSearchEngine()
      Status: Deleted

      Method: setPortalSearchEngine(PortalSearchEngine portalSearchEngine)
      Status: Deleted

      Class: com.liferay.portal.kernel.search.SearchPermissionChecker

      Method: getPermissionQuery(long companyId, long[] groupIds, long userId, String className, Query query)
      Status: Deleted
      New method: getPermissionQuery(long companyId, long[] groupIds, long userId, String className, Query query, SearchContext searchContext)

      Class: com.liferay.portal.kernel.search.TermQueryFactoryUtil

      Method: create(String field, long value)
      Status: Deleted
      New method: create(SearchContext searchContext, String field, long value)

      Method: create(String field, String value)
      Status: Deleted
      New method: create(SearchContext searchContext, String field, String value)

      Method: getTermQueryFactory()
      Status: Deleted
      New method: getTermQueryFactory(SearchContext searchContext)

      Class: com.liferay.portal.kernel.search.TermRangeQueryFactoryUtil

      Method: create(String field, String lowerTerm, String upperTerm, boolean includesLower, boolean includesUpper)
      Status: Deleted
      New method: SearchContext searchContext, String field, String lowerTerm, String upperTerm, boolean includesLower, boolean includesUpper)

      Method: getTermRangeQueryFactory()
      Status: Deleted
      New method: getTermRangeQueryFactory(SearchContext searchContext)

      Method: setTermRangeQueryFactory(TermRangeQueryFactory termRangeQueryFactory)
      Status: Deleted

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michael.han Michael Han
                Reporter:
                douglas.wong Douglas Wong
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  6.0 EE SP2 (6.0.12)