Class RSQLSolrQueryContributor
- java.lang.Object
- 
- com.broadleafcommerce.search.provider.solr.RSQLSolrQueryContributor
 
- 
- All Implemented Interfaces:
- SolrQueryContributor,- org.springframework.core.Ordered
 
 public class RSQLSolrQueryContributor extends Object implements SolrQueryContributor 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static StringCATEGORY_IDS_FILTER_NAMEThis is the default name of the Category filter.protected static intDEFAULT_PRECEDENCE
 - 
Constructor SummaryConstructors Constructor Description RSQLSolrQueryContributor(SolrRSQLFilterBuilder rsqlFilterBuilder, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontribute(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, org.springframework.data.domain.Pageable page, com.broadleafcommerce.search.core.service.SearchRequestProperties properties, String locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)Customize the providedsolrQuerywith some additional behavior.protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node>getFilterParser()intgetOrder()Default Spring Bean ordering.protected SolrRSQLFilterBuildergetRsqlFilterBuilder()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.broadleafcommerce.search.provider.solr.SolrQueryContributorcontributeOnTypeAhead, isTypeAheadRequest
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_PRECEDENCEprotected static final int DEFAULT_PRECEDENCE - See Also:
- Constant Field Values
 
 - 
CATEGORY_IDS_FILTER_NAMEprotected static final String CATEGORY_IDS_FILTER_NAME This is the default name of the Category filter.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
RSQLSolrQueryContributorpublic RSQLSolrQueryContributor(SolrRSQLFilterBuilder rsqlFilterBuilder, @NonNull com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser) 
 
- 
 - 
Method Detail- 
contributepublic void contribute(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, org.springframework.data.domain.Pageable page, com.broadleafcommerce.search.core.service.SearchRequestProperties properties, @Nullable String locale, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)Description copied from interface:SolrQueryContributorCustomize the providedsolrQuerywith some additional behavior.- Specified by:
- contributein interface- SolrQueryContributor
- Parameters:
- solrQuery- The query to customize
- searchRequest- The search query request
- fieldDefinitions- The fields to perform the search on
- page- Page information for page to retrieve for query
- properties- Additional properties for this search
- locale- (optional) the locale of the query
- context- The context information surrounding sandboxing/multitenant state
 
 - 
getOrderpublic int getOrder() Description copied from interface:SolrQueryContributorDefault Spring Bean ordering.- Specified by:
- getOrderin interface- org.springframework.core.Ordered
- Specified by:
- getOrderin interface- SolrQueryContributor
 
 - 
getRsqlFilterBuilderprotected SolrRSQLFilterBuilder getRsqlFilterBuilder() 
 - 
getFilterParser@NonNull protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> getFilterParser() 
 
- 
 
-