You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ni...@apache.org on 2021/05/10 13:19:18 UTC
[ranger] branch ranger-2.2 updated: RANGER-3275 : Need to update
solr-config.xml in the ranger-audits collection config-set
This is an automated email from the ASF dual-hosted git repository.
ni3galave pushed a commit to branch ranger-2.2
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/ranger-2.2 by this push:
new 51c7bff RANGER-3275 : Need to update solr-config.xml in the ranger-audits collection config-set
51c7bff is described below
commit 51c7bff02399b0d4a6c80314705403ad97d412c8
Author: Vishal Suvagia <vi...@apache.org>
AuthorDate: Thu May 6 17:35:40 2021 +0530
RANGER-3275 : Need to update solr-config.xml in the ranger-audits collection config-set
Issue:
The ttl in solrconfig.xml was not configured properly, need to update the same to be updated in documents.
Changes:
Updated order of processors for Solr ttl to be effective in documents.
Testing:
Validated changes manually locally.
Signed-off-by: Nitin Galave <ni...@apache.org>
---
security-admin/contrib/solr_for_audit_setup/conf/solrconfig.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/security-admin/contrib/solr_for_audit_setup/conf/solrconfig.xml b/security-admin/contrib/solr_for_audit_setup/conf/solrconfig.xml
index 2216f66..7e79925 100644
--- a/security-admin/contrib/solr_for_audit_setup/conf/solrconfig.xml
+++ b/security-admin/contrib/solr_for_audit_setup/conf/solrconfig.xml
@@ -1039,9 +1039,6 @@
<!-- The update.autoCreateFields property can be turned to false to disable schemaless mode -->
<updateRequestProcessorChain name="add-unknown-fields-to-the-schema" default="${update.autoCreateFields:true}"
processor="uuid,remove-blank,field-name-mutating,parse-boolean,parse-long,parse-double,parse-date,add-schema-fields">
- <processor class="solr.LogUpdateProcessorFactory"/>
- <processor class="solr.DistributedUpdateProcessorFactory"/>
- <processor class="solr.RunUpdateProcessorFactory"/>
<processor class="solr.DefaultValueUpdateProcessorFactory">
<str name="fieldName">_ttl_</str>
<str name="value">+90DAYS</str>
@@ -1054,6 +1051,9 @@
<processor class="solr.FirstFieldValueUpdateProcessorFactory">
<str name="fieldName">_expire_at_</str>
</processor>
+ <processor class="solr.LogUpdateProcessorFactory"/>
+ <processor class="solr.DistributedUpdateProcessorFactory"/>
+ <processor class="solr.RunUpdateProcessorFactory"/>
</updateRequestProcessorChain>
<!-- Deduplication