sito per le richieste......
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

62 righe
3.9 KiB

<?xml version="1.0"?>
<beans
default-destroy-method="destroy"
default-init-method="afterPropertiesSet"
xmlns="http://www.springframework.org/schema/beans"
xmlns:util="http://www.springframework.org/schema/util"
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 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"
>
<!-- <bean class="com.liferay.portal.spring.context.PortletBeanFactoryPostProcessor" />-->
<bean id="com.rknowsys.portal.search.elastic.client.ClientFactory" class="com.rknowsys.portal.search.elastic.client.ClientFactoryImpl" destroy-method="destroy"/>
<bean id="com.rknowsys.portal.search.elastic.ElasticsearchEngineImpl" class="com.liferay.portal.kernel.search.BaseSearchEngine">
<property name="clusteredWrite" value="false" />
<property name="indexSearcher" ref="com.rknowsys.portal.search.elastic.ElasticsearchIndexSearcher" />
<property name="indexWriter" ref="com.rknowsys.portal.search.elastic.ElasticsearchIndexWriter" />
<property name="luceneBased" value="true" />
<property name="vendor" value="Elasticsearch" />
<!--<property name="booleanClauseFactory" ref="com.rknowsys.portal.search.elastic.liferay.BooleanClauseFactoryImpl" />
<property name="booleanQueryFactory" ref="com.rknowsys.portal.search.elastic.liferay.BooleanQueryFactoryImpl" />
<property name="termQueryFactory" ref="com.rknowsys.portal.search.elastic.liferay.TermQueryFactoryImpl"/>
<property name="termRangeQueryFactory" ref="com.rknowsys.portal.search.elastic.liferay.TermRangeQueryFactoryImpl" />-->
</bean>
<bean id="com.rknowsys.portal.search.elastic.liferay.BooleanClauseFactoryImpl" class="com.rknowsys.portal.search.elastic.liferay.BooleanClauseFactoryImpl"/>
<bean id="com.rknowsys.portal.search.elastic.liferay.BooleanQueryFactoryImpl" class="com.rknowsys.portal.search.elastic.liferay.BooleanQueryFactoryImpl">
<property name="wildcardSearchFields" ref="com.rknowsys.portal.search.elastic.liferay.WildcardSearchFields" />
</bean>
<bean id="com.rknowsys.portal.search.elastic.liferay.TermQueryFactoryImpl" class="com.rknowsys.portal.search.elastic.liferay.TermQueryFactoryImpl" />
<bean id="com.rknowsys.portal.search.elastic.liferay.TermRangeQueryFactoryImpl" class="com.rknowsys.portal.search.elastic.liferay.TermRangeQueryFactoryImpl" />
<bean id="com.rknowsys.portal.search.elastic.ElasticsearchIndexSearcher" class="com.rknowsys.portal.search.elastic.ElasticsearchIndexSearcher">
<property name="clientFactory" ref="com.rknowsys.portal.search.elastic.client.ClientFactory" />
</bean>
<bean id="com.rknowsys.portal.search.elastic.ElasticsearchIndexWriter" class="com.rknowsys.portal.search.elastic.ElasticsearchIndexWriter" >
<property name="clientFactory" ref="com.rknowsys.portal.search.elastic.client.ClientFactory"/>
</bean>
<bean id="com.rknowsys.portal.search.elastic.liferay.WildcardSearchFields" class="com.rknowsys.portal.search.elastic.liferay.WildcardSearchFields">
<constructor-arg>
<array>
<value>assetCategoryTitles(_.+)?</value>
<value>assetTagNames</value>
<value>emailAddress</value>
<value>license</value>
<value>path</value>
<value>tag</value>
<value>treePath</value>
<value>userName</value>
</array>
</constructor-arg>
</bean>
<bean id="searchEngineConfigurator.elastic" class="com.liferay.portal.kernel.search.PluginSearchEngineConfigurator">
<property name="searchEngines">
<util:map>
<entry key="SYSTEM_ENGINE" value-ref="com.rknowsys.portal.search.elastic.ElasticsearchEngineImpl" />
</util:map>
</property>
</bean>
</beans>