Let each trie node carry a Data field where T can be any class or struct. Return this via a Word to the Collector and include it in the scorable DocumentPosting. Data.TermCount is where the data goes that support the tf-idf scoring model. Data.Value is where your custom data is. Only EndOfWord nodes carry data.
Let each trie node carry a Data field where T can be any class or struct. Return this via a Word to the Collector and include it in the scorable DocumentPosting. Data.TermCount is where the data goes that support the tf-idf scoring model. Data.Value is where your custom data is. Only EndOfWord nodes carry data.