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

Unicode problem #13

Open
masterzeb opened this issue Oct 7, 2013 · 0 comments
Open

Unicode problem #13

masterzeb opened this issue Oct 7, 2013 · 0 comments

Comments

@masterzeb
Copy link

When i try to fulltext searching with unicode keyword

from sphinxit.core.processor import Search
search_query = Search(**myconfig)
search_query = search.match(u'молоко')
search_query.ask() # returns empty result items, but in fact there are exists

Solution is:

lex = search_query.lex().encode('utf8')
It can be used in Search->ask() for example

Also Search class could be inherited like this

class UnicodeSearch(Search):
def lex(self):
return super(UnicodeSearch, self).lex().encode('utf8')

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

No branches or pull requests

1 participant