public class SolrDoc extends JsonSimple
An extension of the JsonSimple class specifically to address Solr result documents and shortcut common access.
| Constructor and Description |
|---|
SolrDoc(JsonObject newJsonObject)
Wrap a JsonObject in this class
|
| Modifier and Type | Method and Description |
|---|---|
String |
get(String field)
Gets the String value of the specified field.
|
String |
getFirst(String field)
Gets the first String value of the specified field.
|
List<String> |
getList(String field)
Gets the list of String values of the specified field.
|
fromJavaMap, getArray, getBoolean, getInteger, getJsonArray, getJsonObject, getJsonSimpleList, getJsonSimpleMap, getObject, getPath, getString, getStringList, getStringList, getStringList, search, setPropertySubstitution, toJavaList, toJavaMap, toString, toString, writeArray, writeObjectpublic SolrDoc(JsonObject newJsonObject)
newJsonObject - : The JsonObject to wrappublic String get(String field)
field - : The field name to querypublic String getFirst(String field)
field - : The field name to querypublic List<String> getList(String field)
field - : The field name to queryCopyright © 2009-2013. All Rights Reserved.