【问题标题】:Error while using Paginated Lucene Search in cloudant在 cloudant 中使用分页 Lucene 搜索时出错
【发布时间】:2013-10-25 06:17:57
【问题描述】:

我目前在使用分页的 lucene cloudant 实现中遇到问题。

{"error":"scala.Symbol cannot be cast to org.apache.lucene.util.BytesRef","reason":null}

我尝试访问的 URL:

/_design/contact/search/name?q=name%3Asa%2A+OR+default%3Asa%2A&limit=10&bookmark=g1AAAAEPeJzLYWBgYMlgTmGQTUlKzi9KdUhJMtMrzsnMS9dLzskvTUnMK9HLSy3JASpjSmRIsv__38WmJPCwJJXmpOTGJeFqtscl-4kByCZVI9hQDyaAaa4DMhjAZIMDUAKaMZ-VEMyiXUFxJADEEPQXOKTlQUASZpV2Q&stale=ok&sort="name"

我发现了什么:

  1. 如果我删除书签(表示第一页),它可以正常工作。
  2. 或者,如果我删除排序,它可以正常工作。

下面是我为此视图创建的索引:

"indexes": {
    "name": {
        "index": "function (doc)
        {
            if (doc.Type == 'contact')
            {
                index("default", doc._id);
                index("name",doc.Name,{"store": "yes"});

                if(doc.Profile) {index("profile", doc.Profile, {"store": "no"});}

                if (doc.Aliases)
                {
                    if (Array.isArray(doc.Aliases))
                    {
                        doc.Aliases.forEach(function (alias){
                            index("alias", alias, {"store":"yes"})
                        })
                    }
                    else
                    {
                        index("alias", doc.Alias_Name, {"store":"yes"})
                    }
                }
            }
        }"
    }
}

【问题讨论】:

  • 嘿鲁迪!您的 Cloudant 用户名是什么?我们想做更深入的分析,看看问题出在哪里/在哪里。

标签: lucene cloudant


【解决方案1】:

我们已针对此问题部署了修复程序,您应该不会再遇到此问题。请确认是这样。谢谢!

【讨论】:

  • 是的,它正在工作。感谢您对 Srdjan 的快速回复! :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-02-17
  • 1970-01-01
  • 2018-03-17
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多