Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearchBackend.search with highlight converts results to lowercase #34

Open
notanumber opened this issue Dec 7, 2009 · 1 comment
Open

Comments

@notanumber
Copy link
Owner

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

@jorgecarleitao
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants