Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine 应用程序引擎全文搜索文档索引在Unicode和#xBD上失败;_Google App Engine_Full Text Search - Fatal编程技术网

Google app engine 应用程序引擎全文搜索文档索引在Unicode和#xBD上失败;

Google app engine 应用程序引擎全文搜索文档索引在Unicode和#xBD上失败;,google-app-engine,full-text-search,Google App Engine,Full Text Search,无法将字段(TextField)包含unicode字符U+00BD(粗体分数一半)的文档添加到全文搜索索引中 我可以创建文档,但尝试使用搜索添加到索引。index(name=“test”)。put(d)引发搜索。错误异常消息“错误:一个或多个put文档操作失败:索引失败” 还有其他人在索引unicode字符串时遇到问题吗?有什么建议吗 下面的例子不适合我。将c更改为不同的字符串(即使是非ascii unicode字符串也可以使用。) 问候 理查德这听起来像个虫子。我建议在跟踪器中提交一个问题:这

无法将字段(TextField)包含unicode字符U+00BD(粗体分数一半)的文档添加到全文搜索索引中

我可以创建文档,但尝试使用
搜索添加到索引。index(name=“test”)。put(d)
引发搜索。错误异常消息
“错误:一个或多个put文档操作失败:索引失败”

还有其他人在索引unicode字符串时遇到问题吗?有什么建议吗

下面的例子不适合我。将
c
更改为不同的字符串(即使是非ascii unicode字符串也可以使用。)

问候
理查德

这听起来像个虫子。我建议在跟踪器中提交一个问题:这确实是一个bug,应该立即修复。谢谢你的报道。
from google.appengine.api import search

c = u'½'  # This fails but c=u'©' works

doc = search.Document(
    doc_id   = "1",
    fields   =  [search.TextField(name = "field1", value = c)],
    language = 'en'
  )

search.Index(name = "test").put(doc)