On 5/19/22 01:13, Vincenzo D'Amore wrote:
As far as I understand, we should always set the property
uninvertible=false to avoid that Solr builds "up large in memory data
structure to serve in place of DocValues" and this is good for "stability",
not explaining exactly what it means.
Could anyone please describe this better, for example describing a worst
case scenario and a good one?
If the class used in the fieldType is one that supports docValues, then
you should probably set set that to false. And if you need any features
on that field (like facets) that require an uninverted view of the
index, be sure that docValues is true.
Some fieldType classes, TextField being the one that comes to mind,
cannot support docValues. In general I would recommend setting
uninvertable to false on that kind of field as well, but if you actually
did want to do something like facets on such a field, you would need
uninvertable to be set to true.
Thanks,
Shawn