Retrieving specific fields in a Solr query?

后端 未结 5 1085
旧巷少年郎
旧巷少年郎 2020-12-13 17:20

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 S

5条回答
  •  北海茫月
    2020-12-13 17:48

    http://xx.xxx.xx.xx:8983/solr/corename/select?indent=on&q=*:*&wt=json&fl=ImageID,Imagepath,Category
    

    This link has fl parameter: fl is a field list, which will display the specified fields from the indexed list.

提交回复
热议问题