We have a lot of fields that are defined as multiValued="true", but where I 
suspect that we only actually use it as a single value field. And I would like 
to tidy up the schema a bit, and only use multiValued="true" for fields where 
it's actually needed. So, I would like to get an overview of all fields that 
could potentially be converted to single value fields, as well as all fields 
that actually need to stay multi valued.

As far as I understand it, there is no built in way to get this information out 
of the box (ie without changing the configuration, and without going through 
each document and each field). I have read about the 
CountFieldValuesUpdateProcessorFactory, but I'm unsure how to use it for many 
fields, most of which are dynamic fields. Does someone have an example on this? 
Preferably a way to make solr index the count for every multivalue field in the 
index.

Or is there some different approach I can take?

Regards

Svenskt Näringsliv är företagsamhetens röst i Sverige. Vi samverkar med 48 
arbetsgivar- och branschorganisationer och är den gemensamma rösten för 60 000 
företag med nästan 2 miljoner medarbetare. Vår uppgift är att tala för alla 
företag och branscher, även de som ännu inte finns men som kan uppstå om 
förutsättningarna är de rätta. Ett bättre företagsklimat för ett bättre 
Sverige. Det är vårt uppdrag.

Svenskt Näringsliv behandlar dina personuppgifter i enlighet med GDPR. Här kan 
du läsa mer om vår behandling och dina rättigheter, 
Integritetspolicy<https://www.svensktnaringsliv.se/dataskydd/integritet-och-behandling-av-personuppgifter_1003351.html?utm_source=sn-email&utm_medium=email>

Reply via email to