lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rahul challapalli <challapallira...@gmail.com>
Subject Creating a single segment reader
Date Thu, 06 Aug 2015 06:46:56 GMT
Hi,

Currently I am using the below code to create segment readers. On a
different node, I want to create a single SegmentReader. So what is the
minimum information that I need to pass to that node so that it can create
a specific SegmentReader? I am trying to avoid serializing a lot of
low-level state information.

segmentInfos = SegmentInfos.readLatestCommit(FSDirectory.open(Paths.get(selectionRoot)));
segmentsFilename = segmentInfos.getSegmentsFileName();
segmentReaders = new ArrayList<SegmentReader>();
for (SegmentCommitInfo sci : segmentInfos.asList()) {
  segmentReaders.add(new SegmentReader(sci, IOContext.READ));
}

Any help is greatly appreciated

- Rahul

Mime
View raw message