Package org.eclipse.rdf4j.sail.solr
Class SolrSearchDocument
- java.lang.Object
-
- org.eclipse.rdf4j.sail.solr.SolrSearchDocument
-
- All Implemented Interfaces:
SearchDocument
public class SolrSearchDocument extends Object implements SearchDocument
-
-
Constructor Summary
Constructors Constructor Description SolrSearchDocument()SolrSearchDocument(String id, String resourceId, String context)SolrSearchDocument(org.apache.solr.common.SolrDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGeoProperty(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.StringgetContext()org.apache.solr.common.SolrDocumentgetDocument()StringgetId()List<String>getProperty(String name)Set<String>getPropertyNames()Returns a set of the property names.StringgetResource()booleanhasProperty(String name, String value)Checks whether a field occurs with a specified value in a Document.
-
-
-
Method Detail
-
getDocument
public org.apache.solr.common.SolrDocument getDocument()
-
getId
public String getId()
- Specified by:
getIdin interfaceSearchDocument
-
getResource
public String getResource()
- Specified by:
getResourcein interfaceSearchDocument
-
getContext
public String getContext()
- Specified by:
getContextin interfaceSearchDocument
-
getPropertyNames
public Set<String> getPropertyNames()
Description copied from interface:SearchDocumentReturns a set of the property names.- Specified by:
getPropertyNamesin interfaceSearchDocument
-
addProperty
public void addProperty(String name)
Description copied from interface:SearchDocumentAdds/creates a new property with the given name.- Specified by:
addPropertyin interfaceSearchDocument
-
addProperty
public void addProperty(String name, String text)
Description copied from interface:SearchDocumentAdds a value to the property with the given name.- Specified by:
addPropertyin interfaceSearchDocument
-
addGeoProperty
public void addGeoProperty(String name, String text)
- Specified by:
addGeoPropertyin interfaceSearchDocument
-
hasProperty
public boolean hasProperty(String name, String value)
Description copied from interface:SearchDocumentChecks whether a field occurs with a specified value in a Document.- Specified by:
hasPropertyin interfaceSearchDocument
-
getProperty
public List<String> getProperty(String name)
- Specified by:
getPropertyin interfaceSearchDocument
-
-