Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-33973

EntityBroker Search endpoint is broken

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.8 [Tentative], 11.5 [Tentative], 12.0, 19.0
    • Fix Version/s: 12.0, 19.0
    • Component/s: Entity Broker, Search
    • Labels:
      None
    • 12 status:
      Resolved
    • 11 status:
      Please Merge
    • 10 status:
      Please Merge
    • Test Plan:
      Hide

      Tested with the following url's:

      [http://localhost:8080/direct/search/tools.json
      ]produces JSON:

      {
      "data": [
      "forums",
      "site",
      "chat",
      "profile",
      "wiki",
      "content",
      "email",
      "lessons",
      "announcement"
      ],
      "displayTitle": "tools",
      "entityId": null,
      "entityProperties": {},
      "entityReference": "/search",
      "entityURL": "http://localhost:8080/direct/search"
      }

      And after adding some resources and logging in 
      http://localhost:8080/direct/search/search.json?searchTerms=ipsum&startIndex=9&count=1
      searchTerms=<some text>, startIndex=9, count=1

      should produce the same result as
      [http://localhost:8080/direct/search/search.json?searchTerms=ipsum&page=10&count=1
      ]searchTerms=<same text>, page=10, count=1

      Show
      Tested with the following url's: [http://localhost:8080/direct/search/tools.json ]produces JSON: { "data" : [ "forums" , "site" , "chat" , "profile" , "wiki" , "content" , "email" , "lessons" , "announcement" ], "displayTitle" : "tools" , "entityId" : null , "entityProperties" : {}, "entityReference" : "/search" , "entityURL" : "http: //localhost:8080/direct/search" } And after adding some resources and logging in  http://localhost:8080/direct/search/search.json?searchTerms=ipsum&startIndex=9&count=1 searchTerms=<some text>, startIndex=9, count=1 should produce the same result as [http://localhost:8080/direct/search/search.json?searchTerms=ipsum&page=10&count=1 ]searchTerms=<same text>, page=10, count=1

      Description

      I believe the search endpoint has been broken when ElasticSearch was added. Another issue I saw was that a "Search" start and limit/end works slightly differently than previously.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ern Earle R Nietzel
                Reporter:
                ern Earle R Nietzel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code