You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that adding extra fields to the SOLR index can be done by just modifying the “/data/biocache/config/biocache-config.properties” and “/data/solr/biocache/conf/schema.xml” files on the hub server, we need to be able to add these changes to the ansible scripts so that a manual change to these files is not required every time the hub is updated via ansible.
This could possibly be done for the biocache config file by adding (or modifying) the line:
extra.misc.fields={{facets_include|default('')}}
in the ala-install/ansible/roles/biocache-service/templates/config/biocache-config.properties file, as the facets_include variable is already defined (as a comma separated list of fields) in the appd-prod ansible inventory file to include the extra indexed fields in the facets (or you could have another variable in case people want fields indexed but not in the facet list).
The fields also need to be added to the ala-install/ansible/roles/solr/files/solr/biocache/conf/schema.xml file, but I'm not sure how to do this as each extra field needs a separate line entry in the following format:
Is there some way to parse the facets_include variable to extract each extra field name and create a line for each?
The text was updated successfully, but these errors were encountered:
Now that adding extra fields to the SOLR index can be done by just modifying the “/data/biocache/config/biocache-config.properties” and “/data/solr/biocache/conf/schema.xml” files on the hub server, we need to be able to add these changes to the ansible scripts so that a manual change to these files is not required every time the hub is updated via ansible.
This could possibly be done for the biocache config file by adding (or modifying) the line:
extra.misc.fields={{facets_include|default('')}}
in the ala-install/ansible/roles/biocache-service/templates/config/biocache-config.properties file, as the facets_include variable is already defined (as a comma separated list of fields) in the appd-prod ansible inventory file to include the extra indexed fields in the facets (or you could have another variable in case people want fields indexed but not in the facet list).
The fields also need to be added to the ala-install/ansible/roles/solr/files/solr/biocache/conf/schema.xml file, but I'm not sure how to do this as each extra field needs a separate line entry in the following format:
Is there some way to parse the facets_include variable to extract each extra field name and create a line for each?
The text was updated successfully, but these errors were encountered: