java.lang.Object
org.apache.jena.query.text.TextIndexLucene
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable
,TextIndex
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextIndexLucene
(org.apache.lucene.store.Directory directory, TextIndexConfig config) Constructs a new TextIndexLucene. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
void
commit()
void
deleteEntity
(Entity entity) Get all entries for uriorg.apache.lucene.analysis.Analyzer
org.apache.lucene.store.Directory
org.apache.lucene.index.IndexWriter
org.apache.lucene.analysis.Analyzer
void
query
(String subjectUri, List<Resource> props, String qs, String graphURI, String lang, int limit, String highlight) query
(String subjectUri, Node propNode, String qs, String graphURI, String lang, int limit, String highlight) Access the index - limit if -1 for as many as possible Throw QueryParseException for syntax errors in the query string.query
(Node subj, List<Resource> props, String qs, String graphURI, String lang, int limit, String highlight) void
rollback()
void
updateEntity
(Entity entity)
-
Field Details
-
ftIRI
public static final org.apache.lucene.document.FieldType ftIRI -
ftString
public static final org.apache.lucene.document.FieldType ftString
-
-
Constructor Details
-
TextIndexLucene
Constructs a new TextIndexLucene.- Parameters:
directory
- The Lucene Directory for the indexconfig
- The config definition for the index instantiation.
-
-
Method Details
-
getDirectory
public org.apache.lucene.store.Directory getDirectory() -
getAnalyzer
public org.apache.lucene.analysis.Analyzer getAnalyzer() -
getQueryAnalyzer
public org.apache.lucene.analysis.Analyzer getQueryAnalyzer() -
getIndexWriter
public org.apache.lucene.index.IndexWriter getIndexWriter() -
prepareCommit
public void prepareCommit()- Specified by:
prepareCommit
in interfaceTextIndex
-
commit
public void commit() -
rollback
public void rollback() -
close
public void close()- Specified by:
close
in interfaceorg.apache.jena.atlas.lib.Closeable
-
updateEntity
- Specified by:
updateEntity
in interfaceTextIndex
-
addEntity
-
deleteEntity
- Specified by:
deleteEntity
in interfaceTextIndex
-
get
Description copied from interface:TextIndex
Get all entries for uri -
query
-
query
Description copied from interface:TextIndex
Access the index - limit if -1 for as many as possible Throw QueryParseException for syntax errors in the query string. -
query
-
query
-
query
-
query
-
query
-
getDocDef
-