Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-21850

Facet/Advanced Search - "Site" facet not working

    Details

    • Type: Bug
    • Status: New (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: Community Edition 201701 GA
    • Fix Version/s: None
    • Security Level: external (External user)
    • Labels:
      None
    • Security Severity:
      None
    • Regression:
      Regression
    • Triage:
      ACE

      Description

      When adding a new facet filter for "Site" it does not show up.

      To reproduce

      • Install 201701GA
      • Create 3 sites
      • Add the same test document to each site
      • Go to the Search admin page and add a new facet for "Site"
      • Search for the document

      Expected: The document is found 3 times, and the facet filter is shown.
      Actual: Document is found 3 times, but facet filter not present.

      When looking at the raw JSON
      In facets section

      		"@{http:\/\/www.alfresco.org\/model\/site\/1.0}site":
      		[
      		],
      

      it includes the facet filer, but no items in the filter.

        Attachments

          Issue Links

            Activity

            Hide
            loftux Peter Löfgren added a comment -

            If I check the raw JSON results it shows (extract)
            In facets section

            		"@{http:\/\/www.alfresco.org\/model\/site\/1.0}site":
            		[
            		],
            

            and for each item (that that belongs to a site)

            			"mimetype": "application\/pdf",
            			"site":
            			{
            				"shortName": "test-site",
            				"title": "Test-site"
            			},
            			"container": "documentLibrary",
            

            So it may be tow different issues, the facet is not shown because it doesn't have any results when it clearly should, the other is a client side display issue.

            Show
            loftux Peter Löfgren added a comment - If I check the raw JSON results it shows (extract) In facets section "@{http:\/\/www.alfresco.org\/model\/site\/1.0}site" : [ ], and for each item (that that belongs to a site) "mimetype" : "application\/pdf" , "site" : { "shortName" : "test-site" , "title" : "Test-site" }, "container" : "documentLibrary" , So it may be tow different issues, the facet is not shown because it doesn't have any results when it clearly should, the other is a client side display issue.
            Hide
            loftux Peter Löfgren added a comment -

            Found the site link for each item, it was moved and not as visible as before. Not sure if that was a good thing.
            So just one issue, that Facet is not showing, I'll edit the case description.

            Show
            loftux Peter Löfgren added a comment - Found the site link for each item, it was moved and not as visible as before. Not sure if that was a good thing. So just one issue, that Facet is not showing, I'll edit the case description.
            Hide
            loftux Peter Löfgren added a comment -

            The error is that when the facet is saved, the property srft:fieldType is not saved as {}SITE.
            I could manually change this, and it Site facet works!

            Attaching screen shots of this.

            Show
            loftux Peter Löfgren added a comment - The error is that when the facet is saved, the property srft:fieldType is not saved as {}SITE. I could manually change this, and it Site facet works! Attaching screen shots of this.
            Hide
            resplin Richard Esplin added a comment -

            Thank you Peter Löfgren for reporting this issue, and investigating the underlying cause.

            The team will look to address this issue in the near future.

            Show
            resplin Richard Esplin added a comment - Thank you Peter Löfgren for reporting this issue, and investigating the underlying cause. The team will look to address this issue in the near future.

              People

              • Assignee:
                uiPlatform UI Platform
                Reporter:
                loftux Peter Löfgren
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: