To partition an index in contiguous parts, you must provide an array of cutpoints, which define each part. More precisely, given cutpoints c0,c2,…,ck, the global index will be partitioned into k local indices containing the documents from c0 (included) to c1 (excluded), from c1 (included) to c2 and so on. Note that necessarily c0=0 and ck=N, where N is the number of globally indexed documents.
The {@link #properties()} method provides two properties, pointerfrom and pointerto,that contain the first (included) and last (excluded) pointer in the local index. @author Alessandro Arrabito @author Sebastiano Vigna
|
|
|
|