Re: Plain filter and constant_score

2013-12-31 Thread Han JU
Thanks Matt. It seems that we've done terrible things ... effectively `post_filter` is a better name. 在 2013年12月31日星期二UTC+1上午12时16分43秒,Matt Weber写道: The outer filter is basically a post filter, ie. filtering happens after all the documents have been collected via the query. This should not

Plain filter and constant_score

2013-12-30 Thread Han JU
Hi, We are currently benchmarking our ES setup so I've got some new questions: 1. We found out that, for the same query (filter actually), when put like this: { filter: {...}, fields: [...] } is consistently slower than this form: { query: { constant_score: { filter:

Re: Plain filter and constant_score

2013-12-30 Thread Matt Weber
The outer filter is basically a post filter, ie. filtering happens after all the documents have been collected via the query. This should not really be used unless you are trying to do something like multi-select faceting where you don't want facet counts to be affected by the filter. You should