Yes, that is correct.
Martijn
On 21 May 2014 02:34, Mark Dodwell mark@mkdynamic.co.uk wrote:
Many thanks, that is a super clear answer.
So, until that issue is addressed, am I correct in thinking I should do
this when percolating an existing document:curl http://0.0.0.0:9200/idx-1/docs/123/_percolate -d '{ "filter": { "term": { "account_id": 1 } } }'
Thanks again.
On Tuesday, May 20, 2014 2:18:02 AM UTC-7, Martijn v Groningen wrote:
- Yes, the routing will be taken into during adding the percolator query.
- At the moment only the routing will be taken into account, the filter
will not be taken into account.I opened issue percolator against an alias with a filter:
Percolator should also take the filter of an alias into account. · Issue #6241 · elastic/elasticsearch · GitHubOn 17 May 2014 03:54, Mark Dodwell ma...@mkdynamic.co.uk wrote:
Consider an index
idx
, with a mapping for a single typedocs
.
Consider aliases of the formatidx-{ACCOUNT-ID}
, with a term filter and a
routing value set to the account id, like so:$ curl http://0.0.0.0:9200/idx/_aliases?pretty=1 { "idx" : { "aliases" : { "idx-1" : { "filter" : { "term" : { "account_id" : 1 } }, "index_routing" : 1, "search_routing" : 1 }, ... } } }
Questions
- When indexing a percolator query, if you do that via an alias, will
it respect the routing?# will the alias routing from idx-1 apply to this operation? curl -XPUT http://0.0.0.0:9200/idx-1/.percolator/1 -d '{query:..., account_id:1}'
- When percolating an existing document from one of those aliases, will
the routing and term filter from the alias be used when retrieving/checking
the matching percolator documents?# will the alias routing and term filter from idx-1 apply to the percolators? curl http://0.0.0.0:9200/idx-1/docs/123/_percolate
Any insight much appreciated.
--
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 elasticsearc...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/d2eb11ca-4ef2-467c-90c3-1d98e56c2ae0%
40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/d2eb11ca-4ef2-467c-90c3-1d98e56c2ae0%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.--
Met vriendelijke groet,Martijn van Groningen
--
Met vriendelijke groet,
Martijn van Groningen
--
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/CA%2BA76TyxhcP46tDQ-z1fDePj7837Hk67xhOCo%3D-U9YXg4D-xuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.