public class ArticleIndexFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
ArticleIndexFactory() |
| Modifier and Type | Method and Description |
|---|---|
static LuceneArticleIndex |
loadWikiDataIndex(Resource file)
Loads a Wikidata Index from file into In-Memory Lucene instance
|
static LuceneArticleIndex |
loadWikiDataIndex(Resource file,
Resource cacheDir)
Loads a Wikidata Index from file into Lucene instance cached on disk
|
static VectorArticleIndex |
loadWikiDataIndex(Resource file,
Resource parvec,
Resource cacheDir)
Loads a Wikidata Index from file into Lucene instance cached on disk with ParVec embeddings
|
protected static <T extends ArticleIndex> |
loadWikiDataIndex(Resource file,
Resource parvec,
Resource cacheDir,
Class<T> type)
Loads a Wikidata Index from file into In-Memory Lucene instance, uses cached instance if exists
|
public static LuceneArticleIndex loadWikiDataIndex(Resource file) throws IOException
IOExceptionpublic static LuceneArticleIndex loadWikiDataIndex(Resource file, Resource cacheDir) throws IOException
IOExceptionpublic static VectorArticleIndex loadWikiDataIndex(Resource file, Resource parvec, Resource cacheDir) throws IOException
IOExceptionprotected static <T extends ArticleIndex> T loadWikiDataIndex(Resource file, Resource parvec, Resource cacheDir, Class<T> type) throws IOException
IOExceptionCopyright © 2020. All rights reserved.