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:
Neil McErlean
2014-09-26 14:13:45 +00:00
parent f3fb147553
commit 9e9357088b
5 changed files with 5 additions and 32 deletions

View File

@@ -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);
}
/**

View File

@@ -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;