Retrieving specific fields in a Solr query?

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

    The best way is to run the query from Admin concole. When we run it, it also provides the actuall SQL query executed. Just copy the query and use it.

    About the question: select specific fields from the table. In the admin console look for 'FL' text box. write the field names you want to retrieve, comma sapereted. Hit the 'Execute Query' button. Top right side the SQL will be available.

    Generated Query: ......select?fl=FIELDNAME&indent=on&q=:&wt=json

提交回复
热议问题