public class MtasSolrComponentFacet extends Object implements MtasSolrComponent<CodecComponent.ComponentFacet>
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
log
The Constant log.
|
static String |
NAME
The Constant NAME.
|
private static String |
NAME_MTAS_FACET_BASE
The Constant NAME_MTAS_FACET_BASE.
|
static String |
NAME_MTAS_FACET_FIELD
The Constant NAME_MTAS_FACET_FIELD.
|
static String |
NAME_MTAS_FACET_KEY
The Constant NAME_MTAS_FACET_KEY.
|
private static String |
NAME_MTAS_FACET_QUERY
The Constant NAME_MTAS_FACET_QUERY.
|
static String |
PARAM_MTAS_FACET
The Constant PARAM_MTAS_FACET.
|
(package private) MtasSolrSearchComponent |
searchComponent
The search component.
|
static String |
SUBNAME_MTAS_FACET_BASE_FIELD
The Constant SUBNAME_MTAS_FACET_BASE_FIELD.
|
static String |
SUBNAME_MTAS_FACET_BASE_FUNCTION
The Constant SUBNAME_MTAS_FACET_BASE_FUNCTION.
|
static String |
SUBNAME_MTAS_FACET_BASE_FUNCTION_EXPRESSION
The Constant SUBNAME_MTAS_FACET_BASE_FUNCTION_EXPRESSION.
|
static String |
SUBNAME_MTAS_FACET_BASE_FUNCTION_KEY
The Constant SUBNAME_MTAS_FACET_BASE_FUNCTION_KEY.
|
static String |
SUBNAME_MTAS_FACET_BASE_FUNCTION_TYPE
The Constant SUBNAME_MTAS_FACET_BASE_FUNCTION_TYPE.
|
static String |
SUBNAME_MTAS_FACET_BASE_MAXIMUM
The Constant SUBNAME_MTAS_FACET_BASE_MAXIMUM.
|
static String |
SUBNAME_MTAS_FACET_BASE_MINIMUM
The Constant SUBNAME_MTAS_FACET_BASE_MINIMUM.
|
static String |
SUBNAME_MTAS_FACET_BASE_NUMBER
The Constant SUBNAME_MTAS_FACET_BASE_NUMBER.
|
static String |
SUBNAME_MTAS_FACET_BASE_RANGE
The Constant SUBNAME_MTAS_FACET_BASE_RANGE.
|
static String |
SUBNAME_MTAS_FACET_BASE_RANGE_BASE
The Constant SUBNAME_MTAS_FACET_BASE_RANGE_BASE.
|
static String |
SUBNAME_MTAS_FACET_BASE_RANGE_SIZE
The Constant SUBNAME_MTAS_FACET_BASE_RANGE_SIZE.
|
static String |
SUBNAME_MTAS_FACET_BASE_SORT_DIRECTION
The Constant SUBNAME_MTAS_FACET_BASE_SORT_DIRECTION.
|
static String |
SUBNAME_MTAS_FACET_BASE_SORT_TYPE
The Constant SUBNAME_MTAS_FACET_BASE_SORT_TYPE.
|
static String |
SUBNAME_MTAS_FACET_BASE_TYPE
The Constant SUBNAME_MTAS_FACET_BASE_TYPE.
|
static String |
SUBNAME_MTAS_FACET_QUERY_IGNORE
The Constant SUBNAME_MTAS_FACET_QUERY_IGNORE.
|
static String |
SUBNAME_MTAS_FACET_QUERY_MAXIMUM_IGNORE_LENGTH
The Constant SUBNAME_MTAS_FACET_QUERY_MAXIMUM_IGNORE_LENGTH.
|
static String |
SUBNAME_MTAS_FACET_QUERY_PREFIX
The Constant SUBNAME_MTAS_FACET_QUERY_PREFIX.
|
static String |
SUBNAME_MTAS_FACET_QUERY_TYPE
The Constant SUBNAME_MTAS_FACET_QUERY_TYPE.
|
static String |
SUBNAME_MTAS_FACET_QUERY_VALUE
The Constant SUBNAME_MTAS_FACET_QUERY_VALUE.
|
static String |
SUBNAME_MTAS_FACET_QUERY_VARIABLE
The Constant SUBNAME_MTAS_FACET_QUERY_VARIABLE.
|
static String |
SUBNAME_MTAS_FACET_QUERY_VARIABLE_NAME
The Constant SUBNAME_MTAS_FACET_QUERY_VARIABLE_NAME.
|
static String |
SUBNAME_MTAS_FACET_QUERY_VARIABLE_VALUE
The Constant SUBNAME_MTAS_FACET_QUERY_VARIABLE_VALUE.
|
Constructor and Description |
---|
MtasSolrComponentFacet(MtasSolrSearchComponent searchComponent)
Instantiates a new mtas solr component facet.
|
Modifier and Type | Method and Description |
---|---|
org.apache.solr.common.util.SimpleOrderedMap<Object> |
create(CodecComponent.ComponentFacet facet,
Boolean encode)
Creates the.
|
void |
distributedProcess(org.apache.solr.handler.component.ResponseBuilder rb,
CodecComponent.ComponentFields mtasFields)
Distributed process.
|
void |
finishStage(org.apache.solr.handler.component.ResponseBuilder rb)
Finish stage.
|
private Double |
getDouble(String number)
Gets the double.
|
private String |
getFieldType(org.apache.solr.schema.IndexSchema schema,
String field)
Gets the field type.
|
private int |
getPositiveInteger(String number)
Gets the positive integer.
|
void |
modifyRequest(org.apache.solr.handler.component.ResponseBuilder rb,
org.apache.solr.handler.component.SearchComponent who,
org.apache.solr.handler.component.ShardRequest sreq)
Modify request.
|
void |
prepare(org.apache.solr.handler.component.ResponseBuilder rb,
CodecComponent.ComponentFields mtasFields)
Prepare.
|
private static final org.apache.commons.logging.Log log
MtasSolrSearchComponent searchComponent
public static final String NAME
public static final String PARAM_MTAS_FACET
public static final String NAME_MTAS_FACET_KEY
public static final String NAME_MTAS_FACET_FIELD
private static final String NAME_MTAS_FACET_QUERY
private static final String NAME_MTAS_FACET_BASE
public static final String SUBNAME_MTAS_FACET_QUERY_TYPE
public static final String SUBNAME_MTAS_FACET_QUERY_VALUE
public static final String SUBNAME_MTAS_FACET_QUERY_PREFIX
public static final String SUBNAME_MTAS_FACET_QUERY_IGNORE
public static final String SUBNAME_MTAS_FACET_QUERY_MAXIMUM_IGNORE_LENGTH
public static final String SUBNAME_MTAS_FACET_QUERY_VARIABLE
public static final String SUBNAME_MTAS_FACET_QUERY_VARIABLE_NAME
public static final String SUBNAME_MTAS_FACET_QUERY_VARIABLE_VALUE
public static final String SUBNAME_MTAS_FACET_BASE_FIELD
public static final String SUBNAME_MTAS_FACET_BASE_TYPE
public static final String SUBNAME_MTAS_FACET_BASE_SORT_TYPE
public static final String SUBNAME_MTAS_FACET_BASE_SORT_DIRECTION
public static final String SUBNAME_MTAS_FACET_BASE_NUMBER
public static final String SUBNAME_MTAS_FACET_BASE_MINIMUM
public static final String SUBNAME_MTAS_FACET_BASE_MAXIMUM
public static final String SUBNAME_MTAS_FACET_BASE_FUNCTION
public static final String SUBNAME_MTAS_FACET_BASE_FUNCTION_KEY
public static final String SUBNAME_MTAS_FACET_BASE_FUNCTION_EXPRESSION
public static final String SUBNAME_MTAS_FACET_BASE_FUNCTION_TYPE
public static final String SUBNAME_MTAS_FACET_BASE_RANGE
public static final String SUBNAME_MTAS_FACET_BASE_RANGE_SIZE
public static final String SUBNAME_MTAS_FACET_BASE_RANGE_BASE
public MtasSolrComponentFacet(MtasSolrSearchComponent searchComponent)
searchComponent
- the search componentpublic void prepare(org.apache.solr.handler.component.ResponseBuilder rb, CodecComponent.ComponentFields mtasFields) throws IOException
MtasSolrComponent
prepare
in interface MtasSolrComponent<CodecComponent.ComponentFacet>
rb
- the rbmtasFields
- the mtas fieldsIOException
- Signals that an I/O exception has occurred.public void modifyRequest(org.apache.solr.handler.component.ResponseBuilder rb, org.apache.solr.handler.component.SearchComponent who, org.apache.solr.handler.component.ShardRequest sreq)
MtasSolrComponent
modifyRequest
in interface MtasSolrComponent<CodecComponent.ComponentFacet>
rb
- the rbwho
- the whosreq
- the sreqpublic org.apache.solr.common.util.SimpleOrderedMap<Object> create(CodecComponent.ComponentFacet facet, Boolean encode) throws IOException
MtasSolrComponent
create
in interface MtasSolrComponent<CodecComponent.ComponentFacet>
facet
- the responseencode
- the encodeIOException
- Signals that an I/O exception has occurred.public void finishStage(org.apache.solr.handler.component.ResponseBuilder rb)
MtasSolrComponent
finishStage
in interface MtasSolrComponent<CodecComponent.ComponentFacet>
rb
- the rbpublic void distributedProcess(org.apache.solr.handler.component.ResponseBuilder rb, CodecComponent.ComponentFields mtasFields) throws IOException
MtasSolrComponent
distributedProcess
in interface MtasSolrComponent<CodecComponent.ComponentFacet>
rb
- the rbmtasFields
- the mtas fieldsIOException
- Signals that an I/O exception has occurred.private String getFieldType(org.apache.solr.schema.IndexSchema schema, String field) throws IOException
schema
- the schemafield
- the fieldIOException
- Signals that an I/O exception has occurred.private int getPositiveInteger(String number)
number
- the numberCopyright © 2018 Meertens Institute. All rights reserved.