Package org.eclipse.rdf4j.sail.solr
Class SolrSearchDocument
java.lang.Object
org.eclipse.rdf4j.sail.solr.SolrSearchDocument
- All Implemented Interfaces:
SearchDocument
-
Constructor Summary
ConstructorDescriptionSolrSearchDocument
(String id, String resourceId, String context) SolrSearchDocument
(org.apache.solr.common.SolrDocument doc) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGeoProperty
(String name, String text) void
addProperty
(String name) Adds/creates a new property with the given name.void
addProperty
(String name, String text) Adds a value to the property with the given name.org.apache.solr.common.SolrDocument
getId()
getProperty
(String name) Returns a set of the property names.boolean
hasProperty
(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:
getId
in interfaceSearchDocument
-
getResource
- Specified by:
getResource
in interfaceSearchDocument
-
getContext
- Specified by:
getContext
in interfaceSearchDocument
-
getPropertyNames
Description copied from interface:SearchDocument
Returns a set of the property names.- Specified by:
getPropertyNames
in interfaceSearchDocument
-
addProperty
Description copied from interface:SearchDocument
Adds/creates a new property with the given name.- Specified by:
addProperty
in interfaceSearchDocument
-
addProperty
Description copied from interface:SearchDocument
Adds a value to the property with the given name.- Specified by:
addProperty
in interfaceSearchDocument
-
addGeoProperty
- Specified by:
addGeoProperty
in interfaceSearchDocument
-
hasProperty
Description copied from interface:SearchDocument
Checks whether a field occurs with a specified value in a Document.- Specified by:
hasProperty
in interfaceSearchDocument
-
getProperty
- Specified by:
getProperty
in interfaceSearchDocument
-