xapian-haystack icon indicating copy to clipboard operation
xapian-haystack copied to clipboard

SearchBackend.search with highlight converts results to lowercase

Open notanumber opened this issue 15 years ago • 1 comments

SearchBackend.search with highlight converts results to lowercase in the output string as a result of the way it does the search and replace.

notanumber avatar Dec 07 '09 14:12 notanumber

This is because we are doing it on the Python side. It is quite difficult to implement highlight on Xapian since, like Sphinx search, it only returns documents ids and not the words that the query matched (since it doesn't even index the document with literal data).

I'm inclined to deprecate highlight functionality for this reason. The current test is already wrong and there is not much we can do about this.

jorgecarleitao avatar May 22 '14 17:05 jorgecarleitao