dungba88 commented on issue #12902:
URL: https://github.com/apache/lucene/issues/12902#issuecomment-1857304704
   I just briefly looked at the code, but it seems `FSTTermsWriter` will write 
the field metadata (number of terms, term freq, doc freq, etc), FST metadata, 
and FST main body for each of the field into a single IndexOutput.
   
   As we can't write the FST main body into the same IndexOutput as the FST 
metadata, there are 2 possibilities:
   - To make the behavior same as before, we need to write the FST into a 
temporary IndexOutput (`createTempOutput()`?), then write it again to `out`. 
This means the behavior is exactly the same as before and no other code change 
required, but it would be slower (>x2 slower?), since we need to write the FST 
twice.
   - Or we could write the FST main body into a separate IndexOutput, and 
metadata on another IndexOutput. This would require propagation changes.


-- 
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