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:
@@ -29,7 +29,6 @@
|
||||
<import resource="classpath:alfresco/ownable-services-context.xml" />
|
||||
<import resource="classpath:alfresco/template-services-context.xml" />
|
||||
<import resource="classpath:alfresco/script-services-context.xml" />
|
||||
<import resource="classpath:alfresco/solr-facets-context.xml" />
|
||||
<import resource="classpath:alfresco/authority-services-context.xml" />
|
||||
<import resource="classpath:alfresco/authentication-services-context.xml" />
|
||||
<import resource="classpath:alfresco/usage-services-context.xml" />
|
||||
|
@@ -113,9 +113,6 @@
|
||||
<property name="repositoryHelper">
|
||||
<ref bean="repositoryHelper"/>
|
||||
</property>
|
||||
<property name="solrFacetHelper">
|
||||
<ref bean="solrFacetHelper"/>
|
||||
</property>
|
||||
<property name="storeUrl">
|
||||
<value>${spaces.store}</value>
|
||||
</property>
|
||||
|
@@ -43,19 +43,4 @@
|
||||
<value>${solr_facets.root}</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="solrFacetHelper" class="org.alfresco.repo.search.impl.solr.facet.SolrFacetHelper">
|
||||
<constructor-arg index="0" ref="ServiceRegistry" />
|
||||
<property name="specialFacetIds">
|
||||
<set>
|
||||
<value>SITE</value>
|
||||
<value>TAG</value>
|
||||
<value>ANCESTOR</value>
|
||||
<value>PARENT</value>
|
||||
<value>ASPECT</value>
|
||||
<value>TYPE</value>
|
||||
<value>OWNER</value>
|
||||
</set>
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
@@ -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