json - How to get the content of file with Solr? -
is possible content of file solr when have match in query?
curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&q=word" i have json return, i'm thinking if here can receive content of file, too.
{ "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}, } ] }

Comments
Post a Comment