Skip to content
This repository has been archived by the owner on Jan 1, 2018. It is now read-only.

mickaeltr/Hippo-Solr-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hippo Solr indexer

For regularly indexing Hippo CMS content into Solr.

Build

Git and Maven (> 2.2) must be installed on your machine.

git clone [email protected]:mickaeltr/Hippo-Solr-indexer.git
cd Hippo-Solr-indexer
mvn install

Install

To be able to define the content to be indexed, you will add the addon-repository to the content module POM:

<dependency>
  <groupId>org.onehippo.forge.solr.indexer</groupId>
  <artifactId>solr-indexer-addon-repository</artifactId>
  <version>${hippo.solr-indexer.version}</version>
</dependency>

A Solr indexer webapp must then be deployed in the same container as CMS and site webapps...

Webapp example

If you want to play with the provided Webapp example, create a new Maven module, packaged as WAR, deployed on Cargo, with the following in the POM:

<dependencies>
  <dependency>
    <groupId>org.onehippo.forge.solr.indexer</groupId>
    <artifactId>solr-indexer-webapp-example</artifactId>
    <version>${hippo.solr-indexer.version}</version>
    <type>war</type>
  </dependency>
</dependencies>

<build>
  <finalName>solr</finalName>
</build>

After you run your project, the Solr application will be available at http://localhost:8080/solr/.

Customized webapp

When you get more serious and want to customize the webapp, you need to mimic the Webapp example in your project. You may then configure:

Configure

In order to setup which document types and fields will be indexed, a configuration node must be created via the CMS console, under /content/:

[solr:configuration]
- solr:node (string) multiple
- solr:property (string) multiple

Nodes

Set up which (inherited) primary types will be indexed. Example: hippo:document

Properties

Set up which (nested) properties will be indexed as dynamic fields. Example: ns:title, ns:html/hippostd:content

About

For regularly indexing Hippo CMS content into Solr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published