Solr: Retrieve field names from a solr index?

前端 未结 3 1529
借酒劲吻你
借酒劲吻你 2020-12-29 22:17

How can I query a Solr instance for all (or prefixed) field names?

I want to use dynamic fields where I do not know how many may exist e.g: category_0_s,

3条回答
  •  太阳男子
    2020-12-29 22:58

    Use the luke handler:

    http://solr:8983/solr/admin/luke?numTerms=0
    

    Use a xpath to get all the field which has the tag dynamicBase matching the dynamic fields definition you are looking for.

提交回复
热议问题