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 SearchDocumentpublic String getResource()
getResource in interface SearchDocumentpublic String getContext()
getContext in interface SearchDocumentpublic Set<String> getPropertyNames()
SearchDocumentgetPropertyNames in interface SearchDocumentpublic void addProperty(String name)
SearchDocumentaddProperty in interface SearchDocumentpublic void addProperty(String name, String text)
SearchDocumentaddProperty in interface SearchDocumentpublic void addGeoProperty(String name, String text)
addGeoProperty in interface SearchDocumentpublic boolean hasProperty(String name, String value)
SearchDocumenthasProperty in interface SearchDocumentpublic List<String> getProperty(String name)
getProperty in interface SearchDocumentCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.