Query where field1 = field2

Say I have documents with

{
primary: sport
secondary: swimming
}

{
primary: walking
secondary: reading
}

Is there a way in ElasticSearch that I can query
where primary = secondary ?
(without specifying any literal value for primary or secondary fields ?)

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8395c96c-dee2-445a-aa36-0b438c9085a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hey...

No responses.. does that mean it's not possible ?

On Monday, May 19, 2014 2:15:06 PM UTC+1, eune...@gmail.com wrote:

Say I have documents with

{
primary: sport
secondary: swimming
}

{
primary: walking
secondary: reading
}

Is there a way in Elasticsearch that I can query
where primary = secondary ?
(without specifying any literal value for primary or secondary fields ?)

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f806ab75-c055-450d-b188-effc3c0ff6ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.