HTMLStripCharFilterFactory apparently not working, still retrieving xml tags

HTMLStripCharFilterFactory shows xml tags striped in query analyser but when i check in browser using search command its not stripping XML tags.

its working when I analyse the query in .../admin/analysis.jsp but when i try to see the search results it shows the XML back in.

<analyzer type="index">
                <charFilter class="solr.HTMLStripCharFilterFactory"/>

...

and query analyser is

 <analyzer type="query">
                              <charFilter class="solr.HTMLStripCharFilterFactory"/>

...

Answers


The Analysis page shows the index time analysis and hence you don't see the xml tags as they are stripped by the HTML Strip filter.

However, when you run the search command Solr will return the stored results only. It does not return the indexed data. Indexed data is only used for searching.


Need Your Help

How do I "copy unless later version exists" in Capistrano?

ruby-on-rails ruby security deployment capistrano

I want to protect my database.yml file by keeping it out of version control. Thus, I have two tasks in my Capistrano deploy recipe:

Is there a typesafe alternative to String.format(...)

java string

For composing error, logging or any other String messages the String.format(...) method can be used. Unfortunately this method isn't type safe, hence the follwoing source will throw an