oleewere closed pull request #52: Limit max length of tokens (Solr string)
URL: https://github.com/apache/ambari-logsearch/pull/52
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/ambari-logsearch-server/src/main/configsets/hadoop_logs/conf/managed-schema 
b/ambari-logsearch-server/src/main/configsets/hadoop_logs/conf/managed-schema
index 168427eb75..bcc11ea86a 100644
--- 
a/ambari-logsearch-server/src/main/configsets/hadoop_logs/conf/managed-schema
+++ 
b/ambari-logsearch-server/src/main/configsets/hadoop_logs/conf/managed-schema
@@ -61,6 +61,7 @@
   <fieldType name="lowercase" class="solr.TextField" sortMissingLast="true" 
omitNorms="true">
       <analyzer>
         <tokenizer class="solr.KeywordTokenizerFactory"/>
+        <filter class="solr.LengthFilterFactory" min="0" max="20000"/>
         <filter class="solr.LowerCaseFilterFactory" />
       </analyzer>
   </fieldType>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to