Hi Severin,
First thank you for using Datafari, we are glad you appreciate it !
Concerning the HierarchicalFacet, I think what you did to activate it is ok and if the UI of Datafari is still up after what you did, it means that the widget is correctly loaded and initialized.
Now be careful because this widget needs some prerequisites to be operationnal, like indicated in the documentation : https://datafari.atlassian.net/wiki/display/DATAFARI/Widgets+and+Modules
Indeed, you need to configure it so use a multi-valued field in the Solr index that represents a path tokenization where each value is prefixed by its depth level.
For example, the path '/home/france/labs' will be tokenized as this : 0/home, 1/home/france, 2/home/france/labs
Such field is not natively created during the indexation phase because it strongly dépends on the crawled source.
When you de-comment the widget initialization in the search.js script, the default field that is used by the widget is ‘urlHierarchy’. This field exists in the Solr index but it is not filled. So what you need to do is to fill it like in the example during the indexation phase by modifying the DatafariUpdateProcessor. You will find in the class a commented section of the code that is an example to fill this field, you can use it and adapt it (maybe you won’t need to adapt it).
But you make a good point, there is a lack of documentation concerning this part and we will soon update it.
Regards,
Julien Massiera
De : severin.t...@gmail.com
Envoyé le :mercredi 28 juin 2017 10:08
À : Datafari
Objet :Configuration du widget HierarchicalFacet
--
You received this message because you are subscribed to the Google Groups "Datafari" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datafari+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
![]() |
Garanti sans virus. www.avast.com |
Hi,
Once you have checkouted the Datafari github repository, it is located in [DATAFARI_REPO]/datafari-updateprocessor/src/main/java/com/francelabs/datafari/updateprocessor/DatafariUpdateProcessor.java
The commented lines start at the line 72.
Once you have done your modifications you need to generate the update processor jar with maven with the command ‘mvn install’ ( to run in the ‘[DATAFARI_REPO]/datafari-updateprocessor/’ folder)
Then you need to shutdown Datafari, replace the current update processor by the new one with the command ‘sudo cp [DATAFARI_REPO]/datafari-updateprocessor/target/datafari-updateprocessor-3.2.0-SNAPSHOT.jar /opt/datafari/solr/solrcloud/FileShare/lib/custom/’
Finally restart Datafari and re-crawl your share (copy the existing MCF job and delete the original one then re-crawl)
Regards,
Julien
De : severin.t...@gmail.com
Envoyé le :vendredi 30 juin 2017 09:46
À : Datafari
Objet :Re: Configuration du widget HierarchicalFacet
What is the file to modify/decomment where I can found the DatafariUpdateProcessor class ?
--
You received this message because you are subscribed to the Google Groups "Datafari" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datafari+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.