cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Filtered Search

fararjeh
Champ in-the-making
Champ in-the-making

How to display custom facet values of a date filter as date buckets or ranges ? 

like this 

1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

Oddly enough, the exact same question has been covered a few days ago in a blog post by FormTek.

View answer in original post

8 REPLIES 8

afaust
Legendary Innovator
Legendary Innovator

Oddly enough, the exact same question has been covered a few days ago in a blog post by FormTek.

fararjeh
Champ in-the-making
Champ in-the-making

Thanks for the reply, I applied this solution, and it's worked fine, but when I added multiple filters using search manager, then there is error occurred and there was no result retrieved from the server .

The error caused is the length of the request webscript when to exceed 3200 characters. but when I removed solution Its work Whatever the length of the link (I can't understand the relation between them Smiley Sad  ) 

This error appeare in log

 Sep 27, 2016 6:56:35 PM org.apache.coyote.http11.AbstractHttp11Processor process

INFO: Error parsing HTTP request header

 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

afaust
Legendary Innovator
Legendary Innovator

The Tomcat connector has a default limit for the length of URLs. The more facet filters / values are included in the configuration, the longer the URL gets for the call to SOLR. In order to work around this, the URL length limit needs to be set higher on the Tomcat connector.

fararjeh
Champ in-the-making
Champ in-the-making

Mmmmm why when remove date buckets It works fine whatever length of the link? 

kaynezhang
World-Class Innovator
World-Class Innovator

As far as I can remember  by default the maximum length of a URL in tomcat is  4096 (4 KB).

If your url did not exceed the limit,you d better check you date facet field configuration,maybe it case request url in  wrong format.

augustobitu
Champ in-the-making
Champ in-the-making
Hello, I am starting to use aikau and wanted to help you. In this code shown, can include research but can not include the result. I am a beginner and I'm learning all the start. You can see my code?

model.jsonModel = {
   services: [
      "alfresco/services/NavigationService",
      "alfresco/services/LogoutService",
      "alfresco/services/DocumentService",
      "alfresco/services/SearchService",
      "alfresco/layout/HorizontalWidgets",
      "alfresco/documentlibrary/AlfSearchList",
   ],
   
   widgets: [
             
      {

         id: "MAIN_VERTICAL_LAYOUT",
         name: "alfresco/layout/VerticalWidgets",
         config:
         {
            widgets: [
              
               {
                  id: "HEADER_BAR",
                  name: "alfresco/header/Header",
                  config:
                  {
                     widgets: [
                               
                        {
                           id: "APP_MENU_BAR",
                           name: "alfresco/header/AlfMenuBar",
                           align: "left",
                           config:
                           {
                              widgets: [
                                 {
                                    id: "HOME",
                                    name: "alfresco/menus/AlfMenuBarItem",
                                    config: {
                                       label: "Home",
                                       targetUrl: "ap/ws/home"
                                    }
                                 }
                              ]
                           }
                        },
                        {
                           id: "USER_MENU_BAR",
                           name: "alfresco/header/AlfMenuBar",
                           align: "right",
                           config: {
                              widgets: [
                                 {
                                    id: "USER_MENU",
                                    name: "alfresco/header/AlfMenuBarPopup",
                                    config: {
                                       label: "User Menu",
                                       widgets: [
                                          {
                                             id: "HEADER_USER_MENU",
                                             name: "alfresco/menus/AlfMenuGroup",
                                             config: {
                                                widgets: [
                                                   {
                                                      id: "LOGOUT",
                                                      name: "alfresco/header/AlfMenuItem",
                                                      config:
                                                      {
                                                         label: "Logout",
                                                         iconClass: "alf-user-logout-icon",
                                                         publishTopic: "ALF_DOLOGOUT"
                                                      }
                                                   }
                                                ]
                                             }
                                          }
                                       ]
                                    }
                                 }
                              ]
                           }
                        }
                     ]
                  }
               },
               {
                  id: "HEADER_TITLE_BAR",
                  name: "alfresco/layout/LeftAndRight",
                  className: "share-header-title",
                  config:
                  {
                     semanticWrapper: "header",
                     widgets:
                     [
                        {
                           id: "HEADER_LOGO",
                           name: "alfresco/logo/Logo",
                           align: "left",
                           config:
                           {
                              logoClasses: "alfresco-logo-only"
                           }
                        },
                        {
                           id: "HEADER_TITLE",
                           name: "alfresco/header/Title",
                           align: "left",
                           config: {
                              label: "Bem vindo ao Processo Verde!",
                              setBrowserTitle: "Home"
                           }
                        }
                     ]
                  }
               },               
               {
                   id: "HEADER_SEARCH",
                   name: "alfresco/header/SearchBox",
                   align: "right",
                   config: {
                      id: "HEADER_SEARCH_BOX",
                      site: page.url.templateArgs.site,
                      linkToFacetedSearch: true
                   }
                }                
            ]      
         }
      }
     
   ],


   //from here it does not work


   widgets: [
          {
              
             id: "FCTSRCH_SEARCH_RESULTS_AREA",
             name: "alfresco/search/AlfSearchResult",
             config: {
                widgets: [
                   {
                      name: "alfresco/documentlibrary/views/layouts/Row",
                      config: {
                         widgets: [
                            {
                               name: "alfresco/documentlibrary/views/layouts/Cell",
                               config: {
                                  additionalCssClasses: "mediumpad",
                                  widgets: [
                                     {
                                        name: "alfresco/renderers/SearchResultPropertyLink",
                                        config: {
                                           propertyToRender: "displayName"
                                        }
                                     }
                                  ]
                               }
                            },
                            {
                               name: "alfresco/documentlibrary/views/layouts/Cell",
                               config: {
                                  additionalCssClasses: "mediumpad",
                                  widgets: [
                                     {
                                        name: "alfresco/renderers/Property",
                                        config: {
                                           propertyToRender: "description"
                                        }
                                     }
                                  ]
                               }
                            }
                         ]
                      }
                   }
                ]
             }
          }
           ]
};

ddraper
World-Class Innovator
World-Class Innovator

‌ It's great that you're starting to use Aikau, but I don't think your suggestion is applicable to the question being asked. This is more of a back-end issue than a front end problem - some of the facets are handled by custom queries and use buckets that are defined in the Spring configuration on the repo (as the blog post that ‌ has linked to describes).

krutik_jayswal
Elite Collaborator
Elite Collaborator

Axel Faust How can in increase the length of tomcat connector url lenth in alfresco SDK 3.0?