当我的查询中有匹配时,是否可以使用Solr获取文件的所有内容?
curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&q=word"
我有这个JSON作为回报,我想在这里我也可以收到文件的内容。
{
"responseHeader":{
"status":0,
"QTime":17,
"params":{
"q":"word",
"indent":"true",
"wt":"json"}
},
"response":{"numFound":1,"start":0,"maxScore":0.17318419,"docs":[
{
"id":"/file.txt",
"stream_size":[780],
"x_parsed_by":["org.apache.tika.parser.DefaultParser",
"org.apache.tika.parser.txt.TXTParser"],
"stream_content_type":["text/plain"],
"content_encoding":["UTF-8"],
"resourcename":["/file.txt"],
"content_type":["text/plain; charset=UTF-8"],
"_version_":1525636445177380864},
}
]
}