lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] rclabo commented on issue #403: How to use HIGH_COMPRESSION in Lucene.Net 4.8
Date Fri, 22 Jan 2021 15:10:00 GMT

rclabo commented on issue #403:
URL: https://github.com/apache/lucenenet/issues/403#issuecomment-765470602


   @NightOwl888 I totally understood that the codec doesn't have to be specified via the `indexConfig.Codec`
when opening a writer if using the default codec.  For sure. 
   
   I appreciate you pointing out that 
   
   > in IndexWriter the codec that is set/defaulted is for writing new segments to the
index. Each segment can technically have a different codec which is specified through the
SegmentInfo.Codec property,
   
   This is very cool and means that simply by forcing a merge one can change the codec used
for storing data given that a new segment will be created on merge and that segment will use
the codec specified by `indexConfig.Codec` .  Very cool.  
   
   Also thanks for pointing out how to obtain the codec name from a segment.  I understand
that typically accessing this isn't needed but it's great for a tool that provides info about
segments.  If different segments were using different codecs it's nice that there is a way
to see which codec each segment is using.  


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

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



Mime
View raw message