public class SolrSearchDocument extends Object implements SearchDocument
Constructor and Description |
---|
SolrSearchDocument() |
SolrSearchDocument(org.apache.solr.common.SolrDocument doc) |
SolrSearchDocument(String id,
String resourceId,
String context) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
String |
getContext() |
org.apache.solr.common.SolrDocument |
getDocument() |
String |
getId() |
List<String> |
getProperty(String name) |
Set<String> |
getPropertyNames()
Returns a set of the property names.
|
String |
getResource() |
boolean |
hasProperty(String name,
String value)
Checks whether a field occurs with a specified value in a Document.
|
public SolrSearchDocument()
public SolrSearchDocument(org.apache.solr.common.SolrDocument doc)
public org.apache.solr.common.SolrDocument getDocument()
public String getId()
getId
in interface SearchDocument
public String getResource()
getResource
in interface SearchDocument
public String getContext()
getContext
in interface SearchDocument
public Set<String> getPropertyNames()
SearchDocument
getPropertyNames
in interface SearchDocument
public void addProperty(String name)
SearchDocument
addProperty
in interface SearchDocument
public void addProperty(String name, String text)
SearchDocument
addProperty
in interface SearchDocument
public void addGeoProperty(String name, String text)
addGeoProperty
in interface SearchDocument
public boolean hasProperty(String name, String value)
SearchDocument
hasProperty
in interface SearchDocument
public List<String> getProperty(String name)
getProperty
in interface SearchDocument
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.