| Modifier and Type | Field and Description |
|---|---|
static org.apache.lucene.document.FieldType |
ftIRI |
static org.apache.lucene.document.FieldType |
ftString |
static org.apache.lucene.document.FieldType |
ftText |
static org.apache.lucene.util.Version |
VER |
| Constructor and Description |
|---|
TextIndexLucene(org.apache.lucene.store.Directory directory,
EntityDefinition def) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortIndexing() |
void |
addEntity(Entity entity) |
void |
close() |
void |
finishIndexing() |
Map<String,com.hp.hpl.jena.graph.Node> |
get(String uri)
Get all entries for uri
|
org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
org.apache.lucene.store.Directory |
getDirectory() |
EntityDefinition |
getDocDef() |
List<com.hp.hpl.jena.graph.Node> |
query(String qs) |
List<com.hp.hpl.jena.graph.Node> |
query(String qs,
int limit)
Access the index - limit if -1 for as many as possible
|
void |
startIndexing() |
public static final org.apache.lucene.util.Version VER
public static final org.apache.lucene.document.FieldType ftIRI
public static final org.apache.lucene.document.FieldType ftString
public static final org.apache.lucene.document.FieldType ftText
public TextIndexLucene(org.apache.lucene.store.Directory directory,
EntityDefinition def)
public org.apache.lucene.store.Directory getDirectory()
public org.apache.lucene.analysis.Analyzer getAnalyzer()
public void startIndexing()
startIndexing in interface TextIndexpublic void finishIndexing()
finishIndexing in interface TextIndexpublic void abortIndexing()
abortIndexing in interface TextIndexpublic void close()
close in interface org.apache.jena.atlas.lib.Closeablepublic Map<String,com.hp.hpl.jena.graph.Node> get(String uri)
TextIndexpublic List<com.hp.hpl.jena.graph.Node> query(String qs, int limit)
TextIndexpublic EntityDefinition getDocDef()
Licenced under the Apache License, Version 2.0