Skip to content

Instantly share code, notes, and snippets.

@mente
Created November 1, 2011 09:09
Show Gist options
  • Save mente/1330194 to your computer and use it in GitHub Desktop.
Save mente/1330194 to your computer and use it in GitHub Desktop.
<bean id="searchNode" class="org.example.factory.ElasticSearchNodeFactoryBean"
p:configLocation="${elasticsearch.configLocation}">
<property name="settings">
<util:map>
<entry key="node.client" value="true" />
</util:map>
</property>
</bean>
<bean id="searchClient" factory-bean="searchNode" factory-method="client" />
<bean id="adminClient" factory-bean="searchClient" factory-method="admin" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment