public class TextDatasetFactory extends Object
| Constructor and Description |
|---|
TextDatasetFactory() |
| Modifier and Type | Method and Description |
|---|---|
static DatasetGraph |
create(DatasetGraph dsg,
TextIndex textIndex)
Create a text-indexed DatasetGraph
|
static DatasetGraph |
create(DatasetGraph dsg,
TextIndex textIndex,
boolean closeIndexOnDSGClose)
Create a text-indexed DatasetGraph, optionally allowing the text index to be closed if the DatasetGraph is
|
static DatasetGraph |
create(DatasetGraph dsg,
TextIndex textIndex,
boolean closeIndexOnDSGClose,
TextDocProducer producer)
Create a text-indexed DatasetGraph, optionally allowing the text index to be closed if the DatasetGraph is
|
static Dataset |
create(Dataset base,
TextIndex textIndex)
Create a text-indexed dataset
|
static Dataset |
create(Dataset base,
TextIndex textIndex,
boolean closeIndexOnDSGClose)
Create a text-indexed dataset, optionally allowing the text index to be closed if the Dataset is
|
static Dataset |
create(Dataset base,
TextIndex textIndex,
boolean closeIndexOnDSGClose,
TextDocProducer producer)
Create a text-indexed dataset, optionally allowing the text index to be closed if the Dataset is
|
static Dataset |
create(String assemblerFile)
Use an assembler file to build a dataset with text search capabilities
|
static Dataset |
createLucene(Dataset base,
org.apache.lucene.store.Directory directory,
EntityDefinition def,
org.apache.lucene.analysis.Analyzer queryAnalyzer)
Create a text-indexed dataset, using Lucene
|
static Dataset |
createLucene(Dataset base,
org.apache.lucene.store.Directory directory,
TextIndexConfig config)
Create a text-indexed dataset, using Lucene
|
static DatasetGraph |
createLucene(DatasetGraph base,
org.apache.lucene.store.Directory directory,
EntityDefinition def,
org.apache.lucene.analysis.Analyzer queryAnalyzer)
Create a text-indexed dataset, using Lucene
|
static DatasetGraph |
createLucene(DatasetGraph base,
org.apache.lucene.store.Directory directory,
TextIndexConfig config)
Create a text-indexed dataset, using Lucene
|
static TextIndex |
createLuceneIndex(org.apache.lucene.store.Directory directory,
EntityDefinition def,
org.apache.lucene.analysis.Analyzer queryAnalyzer)
Create a Lucene TextIndex
|
static TextIndex |
createLuceneIndex(org.apache.lucene.store.Directory directory,
TextIndexConfig config)
Create a Lucene TextIndex
|
public static Dataset create(String assemblerFile)
public static Dataset create(Dataset base, TextIndex textIndex)
public static Dataset create(Dataset base, TextIndex textIndex, boolean closeIndexOnDSGClose)
public static Dataset create(Dataset base, TextIndex textIndex, boolean closeIndexOnDSGClose, TextDocProducer producer)
public static DatasetGraph create(DatasetGraph dsg, TextIndex textIndex)
public static DatasetGraph create(DatasetGraph dsg, TextIndex textIndex, boolean closeIndexOnDSGClose)
public static DatasetGraph create(DatasetGraph dsg, TextIndex textIndex, boolean closeIndexOnDSGClose, TextDocProducer producer)
public static TextIndex createLuceneIndex(org.apache.lucene.store.Directory directory, EntityDefinition def, org.apache.lucene.analysis.Analyzer queryAnalyzer)
directory - The Lucene Directory for the indexdef - The EntityDefinition that defines how entities are stored in the indexqueryAnalyzer - The analyzer to be used to find terms in the query text. If null, then the analyzer defined by the EntityDefinition will be used.public static TextIndex createLuceneIndex(org.apache.lucene.store.Directory directory, TextIndexConfig config)
directory - The Lucene Directory for the indexconfig - The config definition for the index instantiation.public static Dataset createLucene(Dataset base, org.apache.lucene.store.Directory directory, EntityDefinition def, org.apache.lucene.analysis.Analyzer queryAnalyzer)
base - the base Datasetdirectory - The Lucene Directory for the indexdef - The EntityDefinition that defines how entities are stored in the indexqueryAnalyzer - The analyzer to be used to find terms in the query text. If null, then the analyzer defined by the EntityDefinition will be used.public static Dataset createLucene(Dataset base, org.apache.lucene.store.Directory directory, TextIndexConfig config)
base - the base Datasetdirectory - The Lucene Directory for the indexconfig - The config definition for the index instantiation.public static DatasetGraph createLucene(DatasetGraph base, org.apache.lucene.store.Directory directory, EntityDefinition def, org.apache.lucene.analysis.Analyzer queryAnalyzer)
base - the base DatasetGraphdirectory - The Lucene Directory for the indexdef - The EntityDefinition that defines how entities are stored in the indexqueryAnalyzer - The analyzer to be used to find terms in the query text. If null, then the analyzer defined by the EntityDefinition will be used.public static DatasetGraph createLucene(DatasetGraph base, org.apache.lucene.store.Directory directory, TextIndexConfig config)
base - the base DatasetGraphdirectory - The Lucene Directory for the indexconfig - The config definition for the index instantiation.Licenced under the Apache License, Version 2.0