Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »


We use different ways to interact with Solr depending the feature used into the admin UI. It can be by pushing the configuration files to Zookeeper and then reload the Solr collection. It can also be by one of the Solr APIs.

In this page we detail for each feature of Datafari how we integrate it with Solr and we give some technical explanations about these options.


Datafari use cases


FeatureSolr API / FilesNeedsFile
located in $DATAFARI_HOME/solr/solrcloud/$MAIN_COLLECTION_conf/
Highlight sizeRequest Parameters APIAutomatically taken into accountparams.json
Autocomplete thresholdConfig APIAutomatically taken into accountconfigoverlay.json
Document boostFile modified locally in Datafari serverAutomatically taken into account. elevate.xml file uploaded to ZK and the collection is reloadedelevate.xml
SynonymsFile modified locally in Datafari serverAutomatically taken into account. synonyms_xx.txt file uploaded to ZK and the collection is reloadedsynonyms_xx.txt
StopwordsFile modified locally in Datafari serverAutomatically taken into account. synonyms_xx.xml file uploaded to ZK and the collection is reloadedstopwords_xx.txt
ProtwordsFile modified locally in Datafari serverAutomatically taken into account. protwords.xml file uploaded to ZK and the collection is reloadedprotwords.txt
Field weightRequest Parameters APIAutomatically taken into accountparams.json

List of Solr API :

API nameTypeDescriptionUse in DatafariURL
Schema APISchema

Schema editing.

Use managed-schema file

Yeshttps://lucene.apache.org/solr/guide/7_5/schema-api.html
Config APIConfiguration APIThe Config API enables manipulating various aspects of your solrconfig.xml using REST-like API calls.Yeshttps://lucene.apache.org/solr/guide/7_5/config-api.html
Request Parameters APIConfiguration APIThe Request Parameters API allows creating parameter sets, a.k.a. paramsets, that can override or take the place of parameters defined in solrconfig.xml.Yeshttps://lucene.apache.org/solr/guide/7_5/request-parameters-api.html
Blob Store APIConfiguration APIThe Blob Store REST API provides REST methods to store, retrieve or list files in a Lucene index.Nohttps://lucene.apache.org/solr/guide/7_5/blob-store-api.html
Managed ResourcesConfiguration API

Managed resources expose a REST API endpoint for performing Create-Read-Update-Delete (CRUD) operations on a Solr object.

Only supports StopWords and Synonyms (since 2014...)

Nohttps://lucene.apache.org/solr/guide/7_5/managed-resources.html
Collections APISolrCloudThe Collections API is used to create, remove, or reload collections.Yeshttps://lucene.apache.org/solr/guide/7_5/collections-api.html
Configsets APISolrCloud

The Configsets API enables you to upload new configsets to ZooKeeper, create, and delete configsets when Solr is running SolrCloud mode.

Yeshttps://lucene.apache.org/solr/guide/7_5/configsets-api.html

Use of Zookeeper to manage configuration files

As we explained above, for some configuration files of Datafari we store them locally then we push them to Zookeeper. Then we reload the collection to take them into account.

For example for the synonyms :
1)  the user adds synonyms for English language into the Synonyms admin UI

2) the user clicks on the confirm button

3) the modifications are stored into the file $DATAFARI_HOME/solr/solrcloud/$MAIN_COLLECTION/conf/synonyms_fr.txt

4) the file synonyms_fr.txt is pushed back to Zookeeper

5) the Solr collection is reloaded

https://lucene.apache.org/solr/guide/7_5/using-zookeeper-to-manage-configuration-files.html

  • No labels