File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,16 @@ public class FilteredQueryParser extends AbstractIndexComponent implements XCont
86
86
filter = parseContext .cacheFilter (filter );
87
87
}
88
88
89
- // we don't cache the filter, we assume it is already cached in the filter parsers...
89
+ // TODO
90
+ // With the way filtered queries work today, both query and filter advance (one at a time)
91
+ // to get hits. Since all filters support random access, it might make sense to use that.
92
+ // But, it make more sense to apply it down at the postings level then letting the query
93
+ // construct doc ids and extract it.
94
+ // This might be possible in lucene 4.0.
95
+ // More info:
96
+ // - https://issues.apache.org/jira/browse/LUCENE-1536
97
+ // - http://chbits.blogspot.com/2010/09/fast-search-filters-using-flex.html
98
+
90
99
FilteredQuery filteredQuery = new FilteredQuery (query , filter );
91
100
filteredQuery .setBoost (boost );
92
101
return filteredQuery ;
You can’t perform that action at this time.
0 commit comments