Retrieving specific fields in a Solr query?

Mohit Ranka picture Mohit Ranka · Nov 5, 2008 · Viewed 39.7k times · Source

I am running a Solr instance on Jetty and when I search using the Solr admin panel, it returns the entire document. What should I do to get only specified fields from each Solr document returned by the search?

Answer

Andrew Ingram picture Andrew Ingram · Nov 14, 2008
/?q=query&fl=field1,field2,field3