You can copy the field to another field, then use the FirstFieldValueUpdateProcessorFactory to limit that field to the first value. At least, that seems to be what that URP does. I have not used it.
https://solr.apache.org/guide/8_8/update-request-processors.html wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Mar 4, 2021, at 11:42 AM, ufuk yılmaz <uyil...@vivaldi.net.INVALID> wrote: > > Hi, > > Is it possible in any way to get the first value in a multivalued field? > Using function queries, streaming expressions or any other way without > reindexing? (Stream decorators have array(), but no way to get a value at a > specific index?) > > Another one, is it possible to match a regex to a text field and extract only > the matching part? > > I tried very hard for this too but couldn’t find a way. > > --ufuk > > Sent from Mail for Windows 10 >