public class FieldAnalysisRequest extends SolrRequest<FieldAnalysisResponse>
SolrRequest.METHOD
Constructor and Description |
---|
FieldAnalysisRequest()
Constructs a new FieldAnalysisRequest with a default uri of "/fieldanalysis".
|
FieldAnalysisRequest(String uri)
Constructs a new FieldAnalysisRequest with a given uri.
|
Modifier and Type | Method and Description |
---|---|
FieldAnalysisRequest |
addFieldName(String fieldName)
Adds the given field name for analysis.
|
FieldAnalysisRequest |
addFieldType(String fieldTypeName)
Adds the given field type for analysis.
|
protected FieldAnalysisResponse |
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
Collection<ContentStream> |
getContentStreams() |
List<String> |
getFieldNames()
Returns a list of field names the analysis should be performed on.
|
List<String> |
getFieldTypes()
Returns a list of field types the analysis should be performed on.
|
String |
getFieldValue()
Returns the field value that will be analyzed when this request is processed.
|
SolrParams |
getParams() |
String |
getQuery()
Returns the query that will be analyzed.
|
boolean |
isShowMatch()
Returns whether index time tokens that match query time tokens should be marked as a "match".
|
FieldAnalysisRequest |
setFieldNames(List<String> fieldNames)
Sets the field names on which the analysis should be performed.
|
FieldAnalysisRequest |
setFieldTypes(List<String> fieldTypes)
Sets the field types on which analysis should be performed.
|
FieldAnalysisRequest |
setFieldValue(String fieldValue)
Sets the field value to be analyzed.
|
FieldAnalysisRequest |
setQuery(String query)
Sets the query to be analyzed.
|
FieldAnalysisRequest |
setShowMatch(boolean showMatch)
Sets whether index time tokens that match query time tokens should be marked as a "match".
|
getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback
public FieldAnalysisRequest()
public FieldAnalysisRequest(String uri)
uri
- the uri of the request handler.public Collection<ContentStream> getContentStreams() throws IOException
getContentStreams
in class SolrRequest<FieldAnalysisResponse>
IOException
protected FieldAnalysisResponse createResponse(SolrClient client)
SolrRequest
createResponse
in class SolrRequest<FieldAnalysisResponse>
client
- the SolrClient
the request will be sent topublic SolrParams getParams()
getParams
in class SolrRequest<FieldAnalysisResponse>
public FieldAnalysisRequest setFieldValue(String fieldValue)
fieldValue
- The field value to be analyzed.public String getFieldValue()
public FieldAnalysisRequest setQuery(String query)
null
indicated that no query analysis should take place.query
- The query to be analyzed.public String getQuery()
null
indicating that no query analysis will be
performed.null
indicating that no query analysis will be
performed.public FieldAnalysisRequest setShowMatch(boolean showMatch)
false
. Obviously, this flag is ignored if when the query is set to null
.showMatch
- Sets whether index time tokens that match query time tokens should be marked as a "match".public boolean isShowMatch()
setShowMatch(boolean)
public FieldAnalysisRequest addFieldName(String fieldName)
fieldName
- A field name on which the analysis should be performed.public FieldAnalysisRequest setFieldNames(List<String> fieldNames)
fieldNames
- The field names on which the analysis should be performed.public List<String> getFieldNames()
null
indicating that no
analysis will be performed on field names.public FieldAnalysisRequest addFieldType(String fieldTypeName)
fieldTypeName
- A field type name on which analysis should be performed.public FieldAnalysisRequest setFieldTypes(List<String> fieldTypes)
fieldTypes
- The field type names on which analysis should be performed.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.