File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/search Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,6 @@ public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
89
89
90
90
if (notFilters != null ) {
91
91
for (int i = 0 ; i < notFilters .size (); i ++) {
92
- if (res == null ) {
93
- res = new FixedBitSet (reader .maxDoc ());
94
- res .set (0 , reader .maxDoc ()); // NOTE: may set bits on deleted docs
95
- }
96
92
final DocIdSet disi = getDISI (notFilters , i , reader );
97
93
if (disi != null ) {
98
94
DocSets .andNot (res , disi );
@@ -106,12 +102,7 @@ public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
106
102
if (disi == null ) {
107
103
return null ;
108
104
}
109
- if (res == null ) {
110
- res = new FixedBitSet (reader .maxDoc ());
111
- DocSets .or (res , disi );
112
- } else {
113
- DocSets .and (res , disi );
114
- }
105
+ DocSets .and (res , disi );
115
106
}
116
107
}
117
108
You can’t perform that action at this time.
0 commit comments