How to get current count of number of fields?

We have a lot of fields, since we prepend the typeId to the Field in order to avoid the issue with field types overlapping...

How do I do a simple query to get the # of fields in the index?

I don't think there is any API that gives this as a simple number, but you may be able to use the field stats API to get it.

I cannot figure out how to do it with the field stats.

I can write Java code to do it, so if there is a way to do it with Java that would be awesome.

I am not sure whether it is possible of not, so you may need to retrieve the index mapping and analyse this. As we now do have a limit on the number of fields in an index it would be useful to be able to get this information easily.

Exactly someone should make an easier way to get this info!! Please.!!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.