Package | Description |
---|---|
org.apache.solr.client.solrj.request.json |
Allows sending of requests using Solr's JSON query/faceting API
|
Modifier and Type | Method and Description |
---|---|
JsonQueryRequest |
JsonQueryRequest.returnFields(Iterable<String> fieldNames)
Specify fields which should be returned by the JSON request.
|
JsonQueryRequest |
JsonQueryRequest.returnFields(String... fieldNames)
Specify fields which should be returned by the JSON request.
|
JsonQueryRequest |
JsonQueryRequest.setLimit(int limit)
Specify how many results should be returned from the JSON request
|
JsonQueryRequest |
JsonQueryRequest.setOffset(int offset)
Specify whether results should be fetched starting from a particular offset (or 'start').
|
JsonQueryRequest |
JsonQueryRequest.setQuery(Map<String,Object> queryJson)
Specify the query sent as a part of this JSON request.
|
JsonQueryRequest |
JsonQueryRequest.setQuery(MapWriter queryWriter)
Specify the query sent as a part of this JSON request.
|
JsonQueryRequest |
JsonQueryRequest.setQuery(String query)
Specify the query sent as a part of this JSON request
This method may be called multiple times, but each call overwrites the value specified by previous calls.
|
JsonQueryRequest |
JsonQueryRequest.setSort(String sort)
Specify how results to the JSON request should be sorted before being returned by Solr
|
JsonQueryRequest |
JsonQueryRequest.withFacet(String facetName,
Map<String,Object> facetJson)
Specify a facet sent as a part of this JSON request.
|
JsonQueryRequest |
JsonQueryRequest.withFacet(String facetName,
MapWriter facetWriter)
Specify a facet sent as a part of this JSON request.
|
JsonQueryRequest |
JsonQueryRequest.withFilter(Map<String,Object> filterQuery)
Add a filter query to run as a part of the JSON request
This method may be called multiple times; each call will add a new filter to the request
|
JsonQueryRequest |
JsonQueryRequest.withFilter(String filterQuery)
Add a filter query to run as a part of the JSON request
This method may be called multiple times; each call will add a new filter to the request
|
JsonQueryRequest |
JsonQueryRequest.withParam(String name,
Object value)
Add a property to the "params" block supported by the JSON query DSL
The JSON query DSL has special support for a few query parameters (limit/rows, offset/start, filter/fq, etc.).
|
JsonQueryRequest |
JsonQueryRequest.withStatFacet(String facetName,
String facetValue)
Specify a simple stat or aggregation facet to be sent as a part of this JSON request.
|
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.