Hi folks, I'm playing with a custom SOLR plugin and I'm trying to retrieve the value for a multivalued field, using the code below.
========== schema.xml: <field name="my_field_name" type="string" indexed="true" stored="false" multiValued="true"/> ========== input data: <add> <doc> <field name="id">83127</field> <field name="my_field_name">somevalue</field> <field name="my_field_name">some other value</field> <field name="my_field_name">some other value 3</field> <field name="my_field_name">some other value 4</field> </doc> </add> ========== plugin: SortedDocValues termsIndex = FieldCache.DEFAULT.getTermsIndex(atomicReader, "my_field_name"); ... int document = 12; BytesRef spare = termsIndex.get(document); String value = new String(spare.bytes, spare.offset, spare.length); ---------- *This only returns the value "some other value 3"*. Is there any way to obtain the other values as well (eg. "somevalue", "some other value")? Any help is gladly appreciated. Thanks, Costi
