Red Hat Bugzilla – Bug 877242
Some characters can't be searched for in "project-wide search and replace"
Last modified: 2013-02-25 22:46:20 EST
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121025 Firefox/10.0.10
Certain characters in "project-wide search and replace" are not found whereas they are found with a normal search (within a file).
Eg: On a document update, I was trying to replace normal spaces preceding colons by nonbreaking spaces, as some of the colons would end up on they next line when the document was built.
I first searched within a document and I was able to replace the spaces as I wanted.
When trying this on project-wide search and replace, it did not detect them, so I searched for colons only, but it didn't detect any as well.
Steps to Reproduce:
1. Search for a space followed by a colon (or just a colon) in project-wide search and replace.
2. Search for a space followed by a colon (or just a colon) in a file's search box.
In project-wide search and replace, there are no results found.
In a file's search box, there are some results.
Switching to the HQL implementation (rather than Hibernate Search) should fix this.
Changed to HQL use in 2.0.3-SNAPSHOT and 2.1-SNAPSHOT
verified in Zanata version 2.1-SNAPSHOT (20121127-1134) and Zanata version 2.0.3-SNAPSHOT (20121127-0017).