Package org.eclipse.rdf4j.sail.solr
Class SolrSearchDocument
java.lang.Object
org.eclipse.rdf4j.sail.solr.SolrSearchDocument
- All Implemented Interfaces:
SearchDocument
-
Constructor Summary
ConstructorsConstructorDescriptionSolrSearchDocument(String id, String resourceId, String context) SolrSearchDocument(org.apache.solr.common.SolrDocument doc) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGeoProperty(String name, String text) voidaddProperty(String name) Adds/creates a new property with the given name.voidaddProperty(String name, String text) Adds a value to the property with the given name.org.apache.solr.common.SolrDocumentgetId()getProperty(String name) Returns a set of the property names.booleanhasProperty(String name, String value) Checks whether a field occurs with a specified value in a Document.
-
Constructor Details
-
SolrSearchDocument
public SolrSearchDocument() -
SolrSearchDocument
public SolrSearchDocument(org.apache.solr.common.SolrDocument doc) -
SolrSearchDocument
-
-
Method Details
-
getDocument
public org.apache.solr.common.SolrDocument getDocument() -
getId
- Specified by:
getIdin interfaceSearchDocument
-
getResource
- Specified by:
getResourcein interfaceSearchDocument
-
getContext
- Specified by:
getContextin interfaceSearchDocument
-
getPropertyNames
Description copied from interface:SearchDocumentReturns a set of the property names.- Specified by:
getPropertyNamesin interfaceSearchDocument
-
addProperty
Description copied from interface:SearchDocumentAdds/creates a new property with the given name.- Specified by:
addPropertyin interfaceSearchDocument
-
addProperty
Description copied from interface:SearchDocumentAdds a value to the property with the given name.- Specified by:
addPropertyin interfaceSearchDocument
-
addGeoProperty
- Specified by:
addGeoPropertyin interfaceSearchDocument
-
hasProperty
Description copied from interface:SearchDocumentChecks whether a field occurs with a specified value in a Document.- Specified by:
hasPropertyin interfaceSearchDocument
-
getProperty
- Specified by:
getPropertyin interfaceSearchDocument
-