Hello, You can use TrimFieldUpdateProcessorFactory [1] in your URP chain to remove leading or trailing whitespace when indexing.
Regards, Markus [1] https://lucene.apache.org/solr/8_6_0//solr-core/org/apache/solr/update/processor/TrimFieldUpdateProcessorFactory.html -----Original message----- > From:Fiz N <fiznewy...@gmail.com> > Sent: Tuesday 18th August 2020 19:57 > To: solr-user@lucene.apache.org > Subject: Trailing space issue with indexed data. > > Hell SOLR Experts, > > I am using SOLR 8.6 and indexing data from MSSQL DB. > > after indexing is done I am seeing > > “Page_number”:”1 “, > “Doc_name”:” office 770 toll free “ > “Doc_text”:” From: Hyan, gan \nTo: Delacruz > Decruz \n “ > > I was remove these empty spaces. > > How to achieve it ? > > Thanks > Fiz Nadian. >