This has nothing to do with SOLR. When you make a SOLR request over http, then SOLR searches and returns the results to you in the desired format. XML is used by default, but many people specify wt = json to get the results in json format. If you want to get this result in a text file, make your search client there.
In the browser, File โ Save As.
But most people who want this to use curl as a client and use the -o option as follows:
curl -o result1.xml 'http://solr.local:8080/solr/stuff/select?indent=on&version=2.2&q=fish&fq=&start=0&rows=10&fl=*%2Cscore&qt=&wt=&explainOther=&hl.fl='
Note the single quotation marks around the URL due to usage and characters.
source share