I was curious if the search and replace tool only checks WYSIWYG content areas. Here is why:
I tried searching the entire system for <br> and replacing with <br />, now while it found a few instances, all of which were pages that were in WYSIWYG mode. And I know that there are many more pages that are in raw html that have <br> tags, but the search and replace did not find these.
Also, since I did a system wide search, it wanted to reindex the entire thing at the end. And, since it was taking forever, I ended I killing the hipo job. I am sure that is bad, but do the changes only take place after it indexes the whole system? Any why doesn't it just index those assets that were changed?
The Search and Replace Tool only searches what's in the search index, so the fact that it found any <br> tags at all is surprising – all HTML should be stripped before indexing. I also suspect that Raw HTML bodycopies are not indexed at all by the search engine.
The search manager indexes Raw HTML content, but not all bodycopies are indexed. For example, the content of asset listings (and the various bodycopies) are not indexed but the standard page bodycopy is.
Interesting. In our case it only found content in news items with WYSIWYG content areas.
So, what I was trying to do, the search and replace tool was not created to do, correct?
Correct
Nic, drop me an email and I'll send you a SQL query that will do what you want. :)