Facets are sort of built in custom map reduce operations. With the ability
to specify scripts when you execute them, it gives you quite a flexibility.
A complete generic map reduce is possible, though the benefit of facets is
that they are highly optimized and fast. Currently, I prefer to add more
facets options than to create a more complex (usability wise) generic map
reduce.
On Wed, Aug 10, 2011 at 2:44 PM, ajsie johnny.weng.luu@gmail.com wrote:
I'm coming from CouchDB and wanna get how I would do the same thing with
ES.It seems that ES's full text search could be compared to CouchDB's map
function since their purpose is to retrieve documents.However, is there an equivalence to the reduce function in ES?
With CouchDB if I wanna make a calculation based on some record values,
the reduce function allows me to get the value from the database directly.
The database is doing the calculations.How does document values calculations work in ES? Do I have to retrieve all
records to my server and do the calculation there?