Permalink
Browse files

enable to handle multibyte character

  • Loading branch information...
1 parent ee826e4 commit 5e93e43262d09a5bd371082055235878eb9238ed @hokuma committed Sep 25, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 nozama-cloudsearch-data/nozama/cloudsearch/data/document.py
@@ -133,7 +133,7 @@ def search(query={}):
query = {
"query": {
"query_string": {
- "query": "{0}*".format(qstring)
+ "query": u"{0}*".format(qstring)
}
}
}
@@ -164,7 +164,7 @@ def search(query={}):
rc = {
"rank": "-text_relevance",
- "match-expr": "(label '{0}')".format(qstring),
+ "match-expr": u"(label '{0}')".format(qstring),
"hits": {
"found": results['hits']['total'],
"start": 0,

0 comments on commit 5e93e43

Please sign in to comment.