Datafari gives you the opportunity to link an ontology to it, in order to enrich your documents with the ontology data and then use these additional infos in the search phase.

To do so, the first step is to add the OntologyUpdateProcessor in your updateRequestProcessorChain.

The OntologyUpdateProcessor will index, for each document inserted in Solr, the labels of the corresponding node into the specified ontology but also its parents and children labels and URIs.
It has several parameters that can be set:

 

 

To implement the OntologyUpdateProcessor, follow these steps:

 

Then, you can configure Datafari to use the new Ontology infos on the search requests :

 

Your Datafari is now ready to use the ontology additional fields during search queries thanks to the OntologySuggestion.widget