I found some bug which not allow me to use tags with unicode names like:
http://stackoverflow.com/questions/23349600/how-to-query-atom-field-with-unicode-value-in-google-app-engine-production-searc
https://code.google.com/p/googleappengine/issues/detail?id=10861

This code not allows me to find results on production because of this bug.

*I want do some workaround but not sure how to do it - if you have some 
experience please suggest something. I will try to convert 'zamówienie' 
into ó = oq  'zamoqwienie' but may I can use some symbols 'zamo`wienie' or 
'zam_owienie' or 'zamo1wienie'. Can you sahre some hints please?*

    index = search.Index(name = 'DeleteMe')
    language = None
    fields = [
      search.AtomField(name = 'tag', value = 'zamówienia', language = language),
      search.AtomField(name = 'tag', value = 'pizza', language = language),
      search.AtomField(name = 'tag2', value = 'zamówienia', language = 
language),
    ]
    document = search.Document(doc_id = 'deleteMe', fields = fields, language = 
language)
    index.put(document)
    
    queryString = 'tag:zamówienia'
    searchQuery = search.Query(queryString)
    results = index.search(searchQuery)
    messages.append('query = %s, hits = %s'
                    % (queryString.decode('utf8'), results.number_found))

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to