cancel
Showing results for 
Search instead for 
Did you mean: 

Solr 6 allows you to create facets based on categories

jmoest
Champ in-the-making
Champ in-the-making

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

6 REPLIES 6

afaust
Legendary Innovator
Legendary Innovator

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
Champ on-the-rise
Champ on-the-rise

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
Legendary Innovator
Legendary Innovator

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
Champ on-the-rise
Champ on-the-rise

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
Star Collaborator
Star Collaborator

Have you find a solution for this?

Upladder
Confirmed Champ
Confirmed Champ

Have you find a solution for this?