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 +159,7 @@ public LeafSearchLookup getLeafSearchLookup(LeafReaderContext context) {
160
159
returnnewLeafSearchLookup(
161
160
context,
162
161
docMap.getLeafDocLookup(context),
163
-
newSourceLookup(),
162
+
sourceLookupMap.computeIfAbsent(Thread.currentThread().threadId(), K -> newSourceLookup()),
164
163
fieldsLookup.getLeafFieldsLookup(context)
165
164
);
166
165
}
@@ -173,7 +172,7 @@ public DocLookup doc() {
173
172
* Returned SourceLookup will be unrelated to any created LeafSearchLookups. Instead, use {@link LeafSearchLookup#source()} to access the related {@link SearchLookup}.
174
173
*/
175
174
publicSourceLookupsource() {
176
-
returnsourceLookup;
175
+
returnsourceLookupMap.computeIfAbsent(Thread.currentThread().threadId(), K -> newSourceLookup());
0 commit comments