Query design question

I am wondering what's the right way of querying the following scenarios:

  1. Userid with docs representing unique type of events A,B ..etc Each event
    is a separate document.
    query: How to query all documents that have events A but not event B join
    by userid? If possible group them by userid

  2. Userid with docs representing events A,B and each event has a timestamp
    with it. Each event is a separate document
    query: How to query that gives unique sequence of events? For eg: A->B->C
    or A->C->B accross all users for a given timeperiod.

This is easy to do in RDBMS, I am wondering if we can do this in
elasticsearch as well.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.