Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-3068

Switch queries from SearchService to CoreSession

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2 M4
    • Component/s: Query & PageProvider
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Most important APIs modified:

      • QueryModel.getDocuments now takes a CoreSession as first argument
      • QueryModel.getResultsProvider now takes a CoreSession as first argument

      Also modified:

      • QueryModel constructor doesn't take a NuxeoPrincipal anymore
        API deprecated:
      • SearchService.searchQuery is deprecated in favor of CoreSession.query
        APIs removed:
      • FileManager.isFileAlreadyPresentInPath removed because unused and buggy
      • FileManager.findExistingDocumentWithFile(..., Blob, ...) removed because unused and buggy
      Show
      Most important APIs modified: QueryModel.getDocuments now takes a CoreSession as first argument QueryModel.getResultsProvider now takes a CoreSession as first argument Also modified: QueryModel constructor doesn't take a NuxeoPrincipal anymore API deprecated: SearchService.searchQuery is deprecated in favor of CoreSession.query APIs removed: FileManager.isFileAlreadyPresentInPath removed because unused and buggy FileManager.findExistingDocumentWithFile(..., Blob, ...) removed because unused and buggy

      Description

      NXP-3067 has added the proper CoreSession API to do queries with batching and count, this should be used directly instead of the SearchService.searchQuery() API that is obliged to open a new session for each query.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: