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 |
|---|---|
java.lang.String |
get(java.lang.String field)
Gets the String value of the specified field.
|
java.lang.String |
getFirst(java.lang.String field)
Gets the first String value of the specified field.
|
java.util.List<java.lang.String> |
getList(java.lang.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 java.lang.String get(java.lang.String field)
field - : The field name to querypublic java.lang.String getFirst(java.lang.String field)
field - : The field name to querypublic java.util.List<java.lang.String> getList(java.lang.String field)
field - : The field name to queryCopyright © 2009-2019. All Rights Reserved.