I ended up using ValueSource, and FunctionValues (as used in statsComponent)

FieldType fieldType = schemaField.getType();
ValueSource valueSource = fieldType.getValueSource(schemaField, null);
FunctionValues values = valueSource.getValues(Collections.emptyMap(), ctx);

values.strVal(docId)

I hope that's analogous to your suggested method

Thanks!



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Iterating-sorted-result-docs-in-a-custom-search-component-tp4324497p4324947.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to