Created
March 28, 2012 19:27
-
-
Save nshaw/2229686 to your computer and use it in GitHub Desktop.
Sesame solr-spring.xml for dev 02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<beans | |
default-destroy-method="destroy" | |
default-init-method="afterPropertiesSet" | |
xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" | |
> | |
<bean class="com.liferay.portal.spring.context.PortletBeanFactoryPostProcessor" /> | |
<!-- Solr search engine --> | |
<bean id="solrServerLocalhostWriter" class="com.liferay.portal.search.solr.server.BasicAuthSolrServer"> | |
<constructor-arg type="java.lang.String" value="http://localhost:8080/solr" /> | |
</bean> | |
<bean id="solrServerGSALiferay02Writer" class="com.liferay.portal.search.solr.server.BasicAuthSolrServer"> | |
<constructor-arg type="java.lang.String" value="http://liferay02:8080/solr" /> | |
</bean> | |
<bean id="solrWriterFactory" class="com.liferay.portal.search.solr.server.SolrServerFactoryImpl"> | |
<constructor-arg> | |
<map> | |
<entry key="writer1" value-ref="solrServerLocalhostWriter"/> | |
<entry key="writer2" value-ref="solrServerGSALiferay02Writer"/> | |
</map> | |
</constructor-arg> | |
</bean> | |
<bean id="com.liferay.portal.search.solr.server.BroadcastWriterSolrServer" class="com.liferay.portal.search.solr.server.BroadcastWriterSolrServer"> | |
<constructor-arg ref="solrWriterFactory"/> | |
</bean> | |
<bean id="com.liferay.portal.search.solr.SolrIndexSearcherImpl" class="com.liferay.portal.search.solr.SolrIndexSearcherImpl"> | |
<property name="solrServer" ref="solrServerLocalhostWriter" /> | |
<property name="swallowException" value="true" /> | |
</bean> | |
<bean id="com.liferay.portal.search.solr.SolrIndexWriterImpl" class="com.liferay.portal.search.solr.SolrIndexWriterImpl"> | |
<property name="commit" value="true" /> | |
<property name="solrServer" ref="com.liferay.portal.search.solr.server.BroadcastWriterSolrServer" /> | |
</bean> | |
<bean id="com.liferay.portal.search.solr.SolrSearchEngineImpl" class="com.liferay.portal.kernel.search.BaseSearchEngine"> | |
<property name="clusteredWrite" value="false" /> | |
<property name="indexSearcher" ref="com.liferay.portal.search.solr.SolrIndexSearcherImpl" /> | |
<property name="indexWriter" ref="com.liferay.portal.search.solr.SolrIndexWriterImpl" /> | |
<property name="luceneBased" value="true" /> | |
<property name="name" value="SYSTEM_ENGINE" /> | |
<property name="vendor" value="SOLR" /> | |
</bean> | |
<!-- Configurator --> | |
<bean id="searchEngineConfigurator.solr" class="com.liferay.portal.kernel.search.PluginSearchEngineConfigurator"> | |
<property name="searchEngines"> | |
<list> | |
<ref bean="com.liferay.portal.search.solr.SolrSearchEngineImpl" /> | |
</list> | |
</property> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment