msfroh commented on PR #13054: URL: https://github.com/apache/lucene/pull/13054#issuecomment-1963078077
> @msfroh > > As you only need to write the FST metadata, there is no need to create the FST. You can just call > > ``` > directory.writeMetadata(words.size(), maxHorizontalContext, fstMetadata); > ``` > > where as `fstMetadata` is returned by `fstCompiler.compile()` Hmm... I'm not sure that will work, because the logic to save the metadata is associated with the `FST` instance (i.e. in the `FST::saveMetadata` method). I tried extracting that method out into a static, but the line `outputs.writeFinalOutput(...)` breaks things. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
