If you are able to put everything into one document you might try the span 
near query with ordering.

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-span-near-query.html

Stein Kåre
- http://isitdown.no

On Friday, January 10, 2014 7:47:17 PM UTC+1, Andr'e wrote:
>
> Thanks,
>
> However, other than 1.0 is not out yet with aggregations, I'm not sure it 
> will give me what I need even if it was. Here is a different scenario that 
> might help.
>
> GA has a similar concept here is a screenshot of what it looks like.
>
>
> <https://lh4.googleusercontent.com/-nUpgymxd3hk/UtA-o42IU0I/AAAAAAAAACw/6nRFYwXcbbo/s1600/Untitled.png>
>
> so if we change the example and use visitors and pages viewed on a website.
>
> Visitor1 - viewed (Page1.html,Page2.html,Page3.html,Page4.html,Page5.html)
> Visitor2 - viewed 
> (Page15.html,Page12.html,Page1.html,Page4.html,Page15.html)
> Visitor3 - viewed (Page9.html,Page2.html,Page3.html,Page6.html,Page4.html)
>
> if I run a query say give me all visitors who viewed the following 
> (Page2.html,Page3.html,Page4.htmll)
>
> the results will be *Visitor1 *and *Visitor2.*
>
> Thanks for all your help so far.
> Andr'e
>
> On Friday, January 10, 2014 10:46:12 AM UTC-5, Jörg Prante wrote:
>>
>> For what you want to achieve, the aggregations feature looks perfect.
>>
>> https://www.youtube.com/watch?v=yZu4jQtBUPg#t=885
>>
>> Jörg
>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/0dbee863-ba3e-473f-8734-2bd9e8a60c81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to