On 1/19/2018 11:56 AM, Fiz Ahmed wrote:
But When I Query in Solr Admin.. I am still getting the Search results with
Html Tags in it.
Search results will always contain the actual content that was indexed.
Analysis only happens to indexed data and/or queries, not stored data.
This is how Solr and Lucene have *always* worked. It's not new behavior.
To achieve what you want, you will either need to use an update
processor, or you'll need to adjust your indexing program to make the
changes before it sends the data to Solr.
If you choose the update processor route, there is a built-in processor
that has the same behavior as the HTML filter you are using. Note that
if you use that update processor, you won't need the html filter in the
analyzer for the affected fields, because the HTML will be gone before
the analysis runs.
https://lucene.apache.org/solr/6_6_0//solr-core/org/apache/solr/update/processor/HTMLStripFieldUpdateProcessorFactory.html
You can always write a custom processor if you wish. A custom processor
might be required if you want your stored data to undergo some very
extensive transformation.
Here's the documentation on update processors:
https://lucene.apache.org/solr/guide/6_6/update-request-processors.html
Thanks,
Shawn