in reply to How to retrieve WebService::Solr facet value properly?

Based on the module synopsis, you should be able to do:
for my $doc ( $response->docs ) { print $doc->value_for( 'author_id' ); }

                "Imaginary friends are a sign of a mental disorder if they cause distress, including antisocial behavior. Religion frequently meets that description"

Replies are listed 'Best First'.
Re^2: How to retrieve WebService::Solr facet value properly?
by swiftlet (Acolyte) on Aug 07, 2020 at 03:10 UTC
    value_for('author_id') can only retrieve the value author_id of a doc, but not the facet value.

    for instance, value_for('author_id') = stephenking, the facet value of author_id maybe: "stephenking" = 123