How can I return the total number of search items found in the result with 
limit for pagination.
My query is given below. I am also grouping the food item result by 
restaurant_id.
OR r IN restaurant_food_search
    SEARCH ANALYZER(r.name IN TOKENS('burger', 'text_en'), 'text_en')
    //SORT r.price.current.price LIMIT 0, 15
    COLLECT restaurant = r.restaurant_id into items
    return {restaurant, items: items[*].r, item_count : LENGTH(items[*].r)}


-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/arangodb/0fd7d350-3dab-4dca-a91d-eccb78964ab3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to