public class IndexTestUtils extends Object
Constructor and Description |
---|
IndexTestUtils() |
Modifier and Type | Method and Description |
---|---|
static Collection |
makeCollection(String[] docnos,
String[] documents) |
static Document |
makeDocumentFromText(String contents,
Map<String,String> docProperties) |
static Document |
makeDocumentFromText(String contents,
Map<String,String> docProperties,
Tokeniser t) |
static Index |
makeIndex(String[] docnos,
String[] documents) |
static Index |
makeIndex(String[] docnos,
String[] documents,
Class<? extends Indexer> indexClz) |
static Index |
makeIndex(String[] docnos,
String[] documents,
Indexer indexer,
String path,
String prefix) |
static Index |
makeIndexBlocks(String[] docnos,
String[] documents) |
static Index |
makeIndexFields(String[] docnos,
String[] documents) |
static Index |
makeIndexFields(String[] docnos,
String[] documents,
Indexer indexer,
String path,
String prefix) |
static Index |
makeIndexFieldsBlocks(String[] docnos,
String[] documents) |
static Index |
makeIndexSinglePass(String[] docnos,
String[] documents) |
public static Index makeIndex(String[] docnos, String[] documents) throws Exception
Exception
public static Index makeIndexSinglePass(String[] docnos, String[] documents) throws Exception
Exception
public static Index makeIndexFields(String[] docnos, String[] documents) throws Exception
Exception
public static Index makeIndexFieldsBlocks(String[] docnos, String[] documents) throws Exception
Exception
public static Index makeIndexBlocks(String[] docnos, String[] documents) throws Exception
Exception
public static Index makeIndex(String[] docnos, String[] documents, Class<? extends Indexer> indexClz) throws Exception
Exception
public static Document makeDocumentFromText(String contents, Map<String,String> docProperties)
public static Document makeDocumentFromText(String contents, Map<String,String> docProperties, Tokeniser t)
public static Collection makeCollection(String[] docnos, String[] documents) throws Exception
Exception
public static Index makeIndex(String[] docnos, String[] documents, Indexer indexer, String path, String prefix) throws Exception
Exception
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow