Laravel ElasticSearch aggregate groupby -


i'm using https://github.com/sleimanx2/plastic communicate elasticsearch server. hit problem trying groupby field. i'm doing @ moment

            dish::search()             ->sortby('food_image', 'desc')             ->aggregate(function ($builder) {                 $builder->terms('unique_dishes', 'title');             })->get(); 

and result looks

array:1 [▼   "unique_dishes" => array:3 [▼     "doc_count_error_upper_bound" => 31445     "sum_other_doc_count" => 7376915     "buckets" => array:10 [▶]   ] ]  

how continue here? there way group without using aggregates? guidance appreciated. in advance


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -