mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Refactoring 'special facet id' handling as the injection of special values has broken the build. ACE-2639.
Sadly I'm going back to hard-coded special values. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@85798 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -101,11 +101,7 @@ public class Search extends BaseScopableProcessorExtension implements Initializi
|
||||
public void afterPropertiesSet() throws Exception
|
||||
{
|
||||
PropertyCheck.mandatory(this, "services", services);
|
||||
}
|
||||
|
||||
public void setSolrFacetHelper(SolrFacetHelper solrFacetHelper)
|
||||
{
|
||||
this.solrFacetHelper = solrFacetHelper;
|
||||
this.solrFacetHelper = new SolrFacetHelper(services);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -19,6 +19,7 @@
|
||||
package org.alfresco.repo.search.impl.solr.facet;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
@@ -107,14 +108,9 @@ public class SolrFacetHelper
|
||||
}
|
||||
|
||||
/** These facet IDs are recognised by SOLR and can be used directly within facetted searches. */
|
||||
private Set<String> specialFacetIds = Collections.emptySet();
|
||||
{
|
||||
}
|
||||
|
||||
public void setSpecialFacetIds(Set<String> ids)
|
||||
{
|
||||
this.specialFacetIds = ids;
|
||||
}
|
||||
private final List<String> specialFacetIds = Arrays.asList(new String[] {
|
||||
"SITE", "TAG", "ANCESTOR",
|
||||
"PARENT", "ASPECT", "TYPE", "OWNER" });
|
||||
|
||||
/** Facet value and facet query display label handlers */
|
||||
private Map<String, FacetLabelDisplayHandler> displayHandlers;
|
||||
|
Reference in New Issue
Block a user