public class TextIndexSolr extends Object implements TextIndex
| Constructor and Description |
|---|
TextIndexSolr(org.apache.solr.client.solrj.SolrServer server,
EntityDefinition def) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntity(Entity entity) |
void |
close() |
void |
commit() |
void |
deleteEntity(Entity entity) |
Map<String,Node> |
get(String uri)
Get all entries for uri
|
EntityDefinition |
getDocDef() |
org.apache.solr.client.solrj.SolrServer |
getServer() |
void |
prepareCommit() |
List<TextHit> |
query(Node property,
String qs) |
List<TextHit> |
query(Node property,
String qs,
int limit)
Access the index - limit if -1 for as many as possible
Throw QueryParseException for syntax errors in the query string.
|
void |
rollback() |
void |
updateEntity(Entity entity) |
public TextIndexSolr(org.apache.solr.client.solrj.SolrServer server,
EntityDefinition def)
public void updateEntity(Entity entity)
updateEntity in interface TextIndexpublic void prepareCommit()
prepareCommit in interface TextIndexpublic void close()
close in interface org.apache.jena.atlas.lib.Closeablepublic void deleteEntity(Entity entity)
deleteEntity in interface TextIndexpublic Map<String,Node> get(String uri)
TextIndexpublic List<TextHit> query(Node property, String qs, int limit)
TextIndexpublic EntityDefinition getDocDef()
public org.apache.solr.client.solrj.SolrServer getServer()
Licenced under the Apache License, Version 2.0