SolR语言 成功查询,发现数字> 0,但返回的文档为空?



我对Solr很陌生,但有些事情没有按预期工作。。。

我正在搜索name = 'the*'所在的文档。由于我得到了一个numFound > 0,所以这个查询正在工作。但是响应中的文档是空的,尽管我已经设置了&fl=*

我想在响应中显示可用于文档的所有字段。(我也试过&fl=name,但它没有改变任何东西。

我的查询:

http://localhost:8983/solr/collection1/select q=name%3Athe*&rows=5&fl=*&wt=json&indent=true

响应:

{
  "responseHeader": {
    "status": 0,
    "QTime": 0,
    "params": {
      "q": "name:the*",
      "indent": "true",
      "fl": "*",
      "rows": "5",
      "wt": "json",
      "_": "1409803190693"
    }
  },
  "response": {
    "numFound": 257052,
    "start": 0,
    "docs": [
      {},
      {},
      {},
      {},
      {}
    ]
  }
}

我的问题是,创建索引时,schema.xml文件中的字段不是stored,因此之后我无法访问它们(即使stored属性设置为true)。

最新更新