Solr 6 allows you to create facets based on categories

cancel
Showing results for 
Search instead for 
Did you mean: 
jmoest
Member II

Solr 6 allows you to create facets based on categories

Hello,

I have recently installed Alfresco Community Edition 201702 with Alfresco Search Services 1.0.0.

Alfresco works great with solr6 but how can I create facet based on categories?

In the interface Search Manager I add tag facet but I don't find categories.

I create solr-facets-config-custom.properties in tomcat/shared/classes/alfresco/extension/

#categories
custom.cm\:categories.filterID=filter_categories
custom.cm\:categories.displayName=Categories
custom.cm\:categories.displayControl=alfresco/search/FacetFilters
custom.cm\:categories.maxFilters=10
custom.cm\:categories.hitThreshold=1
custom.cm\:categories.minFilterValueLength=2
custom.cm\:categories.sortBy=INDEX
custom.cm\:categories.scope=ALL
custom.cm\:categories.scopedSites=
custom.cm\:categories.isEnabled=true

But it is incorrect it shows path.

How can I instantiate this?

Thank you.

Jonathan

5 Replies
afaust
Master

Re: Solr 6 allows you to create facets based on categories

There is no support for category-based facets in Alfresco Share. The support for category facets exists only on the API level at the moment. This has been mentioned in the release notes / list of new features.

svast
Active Member

Re: Solr 6 allows you to create facets based on categories

Hello Axel,

There is a bunch of open JIRA tickets around that issue , no solution so far.

Even on API level, it is not that perfect:  [MNT-17649] In Solr6, facet filter for cm:categories added by REST API call will filter by category ... 

How could we find a valid workaround ?

afaust
Master

Re: Solr 6 allows you to create facets based on categories

I think you should be able to use facetting on the PATH field (and its various variants like NPATH) to do name-based facetting for categories. The main problem is that you cannot differentiate the actual path elements from the category path elements...

svast
Active Member

Re: Solr 6 allows you to create facets based on categories

ooch, looks painful.

I don't have that skill level, will give up on using categories until they are supported for search. Solr6 is not enough.

many thanks for your point of view

4535992
Established Member II

Re: Solr 6 allows you to create facets based on categories

Have you find a solution for this?