Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom index field values for standalone hubs #55

Open
m-hope opened this issue May 1, 2015 · 1 comment
Open

Add custom index field values for standalone hubs #55

m-hope opened this issue May 1, 2015 · 1 comment
Assignees

Comments

@m-hope
Copy link

m-hope commented May 1, 2015

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?

@m-r-c
Copy link
Contributor

m-r-c commented Apr 1, 2016

Does this still need to be done?

keithraven-nbn pushed a commit to nbnuk/ala-install that referenced this issue Oct 5, 2022
Added 'View your downloaded records' entry.
keithraven-nbn pushed a commit to nbnuk/ala-install that referenced this issue Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants