Follow us on Twitter

The Solr indexer

The Solr indexer reads a queue of Xml documents in order to index them in Solr. A Xml document contains both data to be indexed and directive on how index the data.

A small Xml configuration provides the following information to the indexer :

  • solr url
  • solr commit and optimize strategy
  • queue path
  • log file name

Here is an small document to be indexed example

    <doc>
        <field_name_1>value 1</field_name_1>
        <field_name_2>value 2</field_name_2>
    </doc>

The indexer detects date values in order to make them compatible with Solr date type.