Class JsonPathResponseParser
java.lang.Object
org.apache.solr.client.solrj.ResponseParser
com.lucidworks.cloud.api.solr.parser.JsonPathResponseParser
public class JsonPathResponseParser
extends org.apache.solr.client.solrj.ResponseParser
Extracts from response only requested paths and add them to returned map in a flat manner.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.common.util.NamedList<Object>processResponse(InputStream body, String encoding) org.apache.solr.common.util.NamedList<Object>processResponse(Reader reader)
-
Constructor Details
-
JsonPathResponseParser
- Parameters:
paths- - a set o paths which should be extracted from response. Each path is a single string with elements joined by '/'. If path is found in the response its value will be added under the key equals to requested path.
-
-
Method Details
-
getWriterType
- Specified by:
getWriterTypein classorg.apache.solr.client.solrj.ResponseParser
-
processResponse
public org.apache.solr.common.util.NamedList<Object> processResponse(InputStream body, String encoding) - Specified by:
processResponsein classorg.apache.solr.client.solrj.ResponseParser
-
processResponse
- Specified by:
processResponsein classorg.apache.solr.client.solrj.ResponseParser
-
getContentType
- Overrides:
getContentTypein classorg.apache.solr.client.solrj.ResponseParser
-
getVersion
- Overrides:
getVersionin classorg.apache.solr.client.solrj.ResponseParser
-