-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Solr Cookbook - Third Edition
By :

Imagine that we use Solr to store information about our environment's state, error, and events related to them—a simple solution that will work as a simple log centralization solution. For our simple use case, we will store the identifier of the message, the information, what type of event it is, and the severity of the event, showing us how important the event is. However, what we will want to be sure of is that the severity
field contains only values from a given list. To achieve all this, we will use the Solr enumeration type.
To achieve our requirements, we will have to perform the following steps:
We will start with the index structure. Our field list from the schema.xml
file will look as follows:
<field name="id" type="string" indexed="true" stored="true" required="true" /> <field name="problem" type="text_general" indexed="true" stored="true" /> <field name="severity" type="enum_type" indexed="true" stored="true" />
In addition...
Change the font size
Change margin width
Change background colour