Solr return file name

前端 未结 1 1379
南旧
南旧 2021-01-29 01:12

I have indexed a couple of documents using solr, now when I perform a search using the admin interface, it returns search results in the XML format.

I am trying to figur

相关标签:
1条回答
  • 2021-01-29 01:25

    You will need to add the filename as a stored field. Look at your schema.xml and make sure you declare a field of type string and set the stored attribute to true. By setting stored=true you will ensure that Solr can return the field back in results.

    See this page for more information: http://wiki.apache.org/solr/SchemaXml

    0 讨论(0)
提交回复
热议问题