|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.common.JsonSimple
com.googlecode.fascinator.common.solr.SolrResult
public class SolrResult
An extension of the JsonSimple class specifically to address Solr result documents and shortcut common access.
| Constructor Summary | |
|---|---|
SolrResult(java.io.InputStream jsonIn)
Creates SolrResult object from the provided input stream |
|
SolrResult(java.lang.String jsonString)
Creates SolrResult object from the provided string |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,SolrFacet> |
getFacets()
Return the List of SolrFacet objects from this result set. |
java.util.List<java.lang.String> |
getFieldList(java.lang.String field)
Search for the indicated field in the results set and return a list of the values. |
java.lang.Integer |
getNumFound()
Return the number of documents found by this result set. |
java.lang.Integer |
getQueryTime()
Return the time taken to perform this search |
java.util.List<SolrDoc> |
getResults()
Return the list of documents from this results set wrapped in utility objects. |
java.lang.Integer |
getRows()
Return the number of documents returned by this result set. |
java.lang.Integer |
getStartRow()
Return the index of the first row in this result set [getRows()] compared to number found [getNumFound()]. |
java.lang.Integer |
getStatus()
Return the status code for the search |
| Methods inherited from class com.googlecode.fascinator.common.JsonSimple |
|---|
fromJavaMap, getArray, getBoolean, getInteger, getJsonArray, getJsonObject, getJsonSimpleList, getJsonSimpleMap, getObject, getPath, getString, getStringList, getStringList, getStringList, search, setPropertySubstitution, toJavaList, toJavaMap, toString, toString, writeArray, writeObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SolrResult(java.io.InputStream jsonIn)
throws java.io.IOException
jsonIn - : The input stream to read
java.io.IOException - if there was an error during creation
public SolrResult(java.lang.String jsonString)
throws java.io.IOException
jsonString - : The JSON in string form
java.io.IOException - if there was an error during creation| Method Detail |
|---|
public java.util.Map<java.lang.String,SolrFacet> getFacets()
public java.util.List<java.lang.String> getFieldList(java.lang.String field)
Search for the indicated field in the results set and return a list of the values.
field - : The field to search for
public java.lang.Integer getNumFound()
Return the number of documents found by this result set. Note that this is not the same as the number of documents returned [getRows()], which is the current 'page'.
public java.lang.Integer getQueryTime()
public java.util.List<SolrDoc> getResults()
public java.lang.Integer getRows()
Return the number of documents returned by this result set. Note that this is not the same as the number of documents found [getNumFound()]. This is just the current 'page'.
public java.lang.Integer getStartRow()
Return the index of the first row in this result set [getRows()] compared to number found [getNumFound()].
public java.lang.Integer getStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||