Examples of addIndexStructure()


Examples of org.terrier.structures.Index.addIndexStructure()

    }
     
    //6. update destimation index
   
    if (FieldScore.FIELDS_COUNT > 0)
      dest.addIndexStructure("lexicon-valuefactory", FieldLexiconEntry.Factory.class.getName(), "java.lang.String", "${index.inverted.fields.count}");
    dest.setIndexProperty("index."+invertedStructure+".data-files", ""+numberOfReducers);
    LexiconBuilder.optimise(dest, lexiconStructure);
    dest.flush();
   
    //7. close source and dest indices
View Full Code Here

Examples of org.terrier.structures.Index.addIndexStructure()

      DocumentIndexEntry die = new BasicDocumentIndexEntry(doclen, p);
      dib.addEntryToBuffer(die);
    }
    dios.close();
    dib.finishedCollections();
    index.addIndexStructure(
        "direct",
        "org.terrier.structures.DirectIndex",
        "org.terrier.structures.Index,java.lang.String,java.lang.Class",
        "index,structureName,"+ BasicIterablePostingDocidOnly.class.getName());
    index.addIndexStructureInputStream(
View Full Code Here

Examples of org.terrier.structures.Index.addIndexStructure()

        "org.terrier.structures.DirectIndexInputStream",
        "org.terrier.structures.Index,java.lang.String,java.lang.Class",
        "index,structureName,"+ BasicIterablePostingDocidOnly.class.getName());
    index.setIndexProperty("index.direct.fields.count", ""+FieldScore.FIELDS_COUNT );
    index.setIndexProperty("index.direct.fields.names", ArrayUtils.join(FieldScore.FIELD_NAMES, ","));
    index.addIndexStructure("document-factory", BasicDocumentIndexEntry.Factory.class.getName(), "", "");
    index.flush();
    DocumentIndex di = index.getDocumentIndex();
    assertNotNull(di);
    assertEquals(postings.length, di.getNumberOfDocuments());
    return index;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.