tags:

views:

51

answers:

1

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

I want to use dynamic fields like

category_0_s
category_1_s
...

but i do not know how many may exist. So I want to retrieve all fields (preferably with the prefix "category_").

Any Ideas? Thanks

A: 

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.

Pascal Dimassimo
YES! That's it. Thank you.
floplus