Reuse source indexes in occurrence extraction

This commit is contained in:
2026-11-26 01:37:56 +00:00
parent f789e41faf
commit 553276c0a0
11 changed files with 42 additions and 8 deletions

View File

@@ -31,6 +31,8 @@ func TestExtractMapsKindsOrdersOccurrencesAndPreservesIndependentFacts(t *testin
references := registryReferences(t, locations)
req := extractionRequest()
req.References = references
index := source.NewDocumentIndex(req.Source)
req.SourceIndex = &index
result, err := runExtraction(context.Background(), newExtractor(t, client, references), req)
if err != nil {
t.Fatal(err)