Retrieving specific fields in a Solr query?

后端 未结 5 1099
旧巷少年郎
旧巷少年郎 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:43

    you can simply pass fl parameter with required fields name in your query.

    &fl=field1,field2,field3&query=:

    your response documents contains only mentioned fields.

提交回复
热议问题