我无法弄清楚为什么我的搜索结果总是返回包装在数组中的值——我索引为普通的键值文档,但这些值似乎在数组中。
当我索引数据时我是否遗漏了一些东西或者与我的查询格式有关的东西?
{
"responseHeader":{
"status":0,
"QTime":1,
"params":{
"q":"ember",
"indent":"on",
"start":"0",
"rows":"20",
"wt":"json",
"_":"1460536046068"}},
"response":{"numFound":1,"start":0,"docs":[
{
"content":["A little while back, I wrote a blog post introducing ember-suave,\n an addon that we created at DockYard to help enforce a common code \nstyle across all of our projects. With the addon installed, any code \nthat doesn't align with the established styleguide will cause the build \nto fail. During development, as files are modified, the linter will \nreprocess the changed files, displaying errors in the console right \naway.https://dockyard.com/blog/2016/02/29/code-linting-inside-look"],
"createdAt":["2016-04-13T08:19:24.321Z"],
"updatedAt":["2016-04-13T08:19:24.823Z"],
"id":"7102mmzmya4e",
"type":["post"],
"_version_":1531482543265677312}]
}}
我想您已经提到了multiValued模式中定义的属性是否允许该字段具有多个值。
例如:如果您的 fieldType 为 multiValued=true,
True该字段是否可以在每个文档中包含多个值,即它是否可以在文档中出现多次
您必须将其添加为multiValued=true,因此它会认为该字段具有多个值...因此将其作为数组返回..
| 归档时间: |
|
| 查看次数: |
1145 次 |
| 最近记录: |