swiftlet has asked for the wisdom of the Perl Monks concerning the following question:
my %options = ( rows=> 100, "facet"=> "on", "facet.field"=> "author_id", ); use Data::Dumper; my $response = $solr->search("\*:\*", \%options); my $data = Dumper(\$response); my %facet; if($data =~ m#"facet_fields":{\s*"author_id":\[\s*([^\]]+)\]},#i){ my $authors = $1; while($authors =~ m#"([^"]+)",(\d+),#gi){ $facet{$1} = $2; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to retrieve WebService::Solr facet value properly?
by hippo (Archbishop) on Aug 07, 2020 at 05:48 UTC | |
by swiftlet (Acolyte) on Aug 07, 2020 at 07:06 UTC | |
by hippo (Archbishop) on Aug 07, 2020 at 07:35 UTC | |
|
Re: How to retrieve WebService::Solr facet value properly?
by NetWallah (Canon) on Aug 07, 2020 at 02:08 UTC | |
by swiftlet (Acolyte) on Aug 07, 2020 at 03:10 UTC |