You could do a terms filter on the location along with a range filter query for the period you are after. That's probably the closest thing.
On 18 March 2015 at 06:34, Phil <[email protected]> wrote: > I'm trying to wrap my head around this but it may not be possible due to > the nature of ES. > > I have an index of appointments with start time, end time, location and > participants. I'd like to search for *any *appointments that have > overlapping start and end times at the same location. > > I understand that this is in essence a relationship between an index and > itself and that it is asking ES to query each document against every other > document. > > Is anything like this even possible? Hopefully someone can point me in the > right direction. > > > Thanks. > > -- > 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/a2cd366e-554c-41d5-9134-27a578c778c9%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/a2cd366e-554c-41d5-9134-27a578c778c9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAEYi1X9C-otNrS_VkW2g7M7FVEvtZv3dpv4rM2u5EC4UaJykAw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
