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
Exceptionpublic static Index makeIndexSinglePass(String[] docnos, String[] documents) throws Exception
Exceptionpublic static Index makeIndexFields(String[] docnos, String[] documents) throws Exception
Exceptionpublic static Index makeIndexFieldsBlocks(String[] docnos, String[] documents) throws Exception
Exceptionpublic static Index makeIndexBlocks(String[] docnos, String[] documents) throws Exception
Exceptionpublic static Index makeIndex(String[] docnos, String[] documents, Class<? extends Indexer> indexClz) throws Exception
Exceptionpublic 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
Exceptionpublic static Index makeIndex(String[] docnos, String[] documents, Indexer indexer, String path, String prefix) throws Exception
ExceptionTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow