You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -160,7 +168,7 @@ public LeafSearchLookup getLeafSearchLookup(LeafReaderContext context) {
160
168
returnnewLeafSearchLookup(
161
169
context,
162
170
docMap.getLeafDocLookup(context),
163
-
newSourceLookup(),
171
+
sourceLookupMap.computeIfAbsent(Thread.currentThread().threadId(), K -> newSourceLookup()),
164
172
fieldsLookup.getLeafFieldsLookup(context)
165
173
);
166
174
}
@@ -173,7 +181,7 @@ public DocLookup doc() {
173
181
* Returned SourceLookup will be unrelated to any created LeafSearchLookups. Instead, use {@link LeafSearchLookup#source()} to access the related {@link SearchLookup}.
174
182
*/
175
183
publicSourceLookupsource() {
176
-
returnsourceLookup;
184
+
returnsourceLookupMap.computeIfAbsent(Thread.currentThread().threadId(), K -> newSourceLookup());
0 commit comments