/** let it know which index to use */ public void setIndex(Index i) { DocumentBlockCountDelta = i.getIntIndexProperty("blocks.invertedindex.countdelta", 1); }
/** let it know which index to use */ public void setIndex(Index i) { DocumentBlockCountDelta = i.getIntIndexProperty("blocks.invertedindex.countdelta", 1); }
throws Exception assertEquals(2, index.getIntIndexProperty("index.inverted.fields.count", -1)); assertEquals(2, index.getIntIndexProperty("index.direct.fields.count", -1)); assertTrue("Constructor for lexicon-value type is incorrect", index.getIndexProperty("index.lexicon-valuefactory.parameter_values", "").length() >0); assertEquals("TITLE,SPEAKER", index.getIndexProperty("index.inverted.fields.names", null)); assertEquals("TITLE,SPEAKER", index.getIndexProperty("index.direct.fields.names", null)); System.err.println("Field tokens=" + index.getIntIndexProperty("num.field.0.Tokens", -1) + "," + index.getIntIndexProperty("num.field.1.Tokens", -1)); assertEquals(123, index.getIntIndexProperty("num.field.0.Tokens", -1)); assertEquals(611, index.getIntIndexProperty("num.field.1.Tokens", -1)); assertEquals(2, index.getCollectionStatistics().getNumberOfFields()); assertEquals(123, index.getCollectionStatistics().getFieldTokens()[0]);