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