SEARCH-56: Adding test files and error logging

This commit is contained in:
Gethin James
2016-06-09 12:45:41 +02:00
parent a6964bd908
commit 209b57242d
4 changed files with 1998 additions and 1 deletions
@@ -314,7 +314,12 @@ public class SolrInformationServer implements InformationServer
hostName = ConfigUtil.locateProperty("solr.host", props.getProperty("solr.host"));
String portNumber = ConfigUtil.locateProperty("solr.port", props.getProperty("solr.port"));
port = Integer.parseInt(portNumber);
try {
port = Integer.parseInt(portNumber);
} catch (NumberFormatException e) {
log.error("Failed to find a valid solr.port number, the default value is in shared.properties");
throw e;
}
baseUrl = ConfigUtil.locateProperty("solr.baseurl", props.getProperty("solr.baseurl"));
baseUrl = (baseUrl.startsWith("/") ? "" : "/") + baseUrl + "/" + core.getName() + "/";
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="cmisTypeExclusions" class="org.alfresco.opencmis.dictionary.QNameFilterImpl" init-method="initFilter">
<property name="excludedTypes">
<list>
<value>{http://www.jcp.org/jcr/1.0}*</value>
<value>{http://www.jcp.org/jcr/nt/1.0}*</value>
<value>{http://www.jcp.org/jcr/mix/1.0}*</value>
<value>{http://www.jcp.org/jcr/sv/1.0}*</value>
<value>{http://www.alfresco.org/model/wcmappmodel/1.0}*</value>
<value>{http://www.alfresco.org/model/wcmmodel/1.0}*</value>
</list>
</property>
</bean>
</beans>
@@ -0,0 +1,36 @@
# Shared Properties file
#Host details an external client would use to connect to Solr
solr.host=localhost
solr.port=8983
solr.baseurl=/solr
# Properties treated as identifiers when indexed
alfresco.identifier.property.0={http://www.alfresco.org/model/content/1.0}creator
alfresco.identifier.property.1={http://www.alfresco.org/model/content/1.0}modifier
alfresco.identifier.property.2={http://www.alfresco.org/model/content/1.0}userName
alfresco.identifier.property.3={http://www.alfresco.org/model/content/1.0}authorityName
# Suggestable Propeties
#alfresco.suggestable.property.0={http://www.alfresco.org/model/content/1.0}name
#alfresco.suggestable.property.1={http://www.alfresco.org/model/content/1.0}title
#alfresco.suggestable.property.2={http://www.alfresco.org/model/content/1.0}description
#alfresco.suggestable.property.3={http://www.alfresco.org/model/content/1.0}content
# Data types that support cross locale/word splitting/token patterns if tokenised
alfresco.cross.locale.property.0={http://www.alfresco.org/model/content/1.0}name
# Data types that support cross locale/word splitting/token patterns if tokenised
# alfresco.cross.locale.datatype.0={http://www.alfresco.org/model/dictionary/1.0}text
# alfresco.cross.locale.datatype.1={http://www.alfresco.org/model/dictionary/1.0}content
# alfresco.cross.locale.datatype.2={http://www.alfresco.org/model/dictionary/1.0}mltext