msfroh commented on issue #13005:
URL: https://github.com/apache/lucene/issues/13005#issuecomment-1894635526

   I was looking into how to implement this and I think I've mostly got it -- 
essentially, I would write the `SynonymMap` to a file (which could be an 
offline operation, basically "precompile your SynonymMap" so you don't need to 
parse + compile it on startup).
   
   What's got me stuck is that `OffHeapFSTStore` takes an `IndexInput`, which 
AFAIK should only be returned from a `Directory`. We don't want to write the 
`SynonymMap` to the index where it's used, right?
   
   Huh... I guess we could use a separate, sidecar directory for the 
precompiled SynonymMap. That directory could optionally be passed to 
`SynonymGraphFilterFactory` to let it load a precompiled (off-heap) 
`SynonymMap`.


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to