Stored Queries
Here you can create new Search Filters that will be available in the product search, see Product Search Page.
Defines the main Solr query.
A Freemarker template can be used to access the specified query parameters and create a Solr query.
Query parameters can be accessed by their name.
If a parameter is part of a parameter group, it must be accessed by the groups name: ${groupName.paramName}.
Some query parameters provide additionasl information, see Query Parameters below for more information.
Filter Query
Section titled “Filter Query”Can be used to restrict the search result, see the Solr documentation for more information.
Filter queries will be cached and in some situations be faster as when used in thwe regular query.
Field List
Section titled “Field List”Can be used to add additional fields to the search result.
The fields will be displayed in the UI. If an alias is specified for a field, this alias will be the header of the column.
If left empty, a deafult set of fields will be displayed: ProductId / Description, CatalogId, Status
For the syntax see the Solr documentation.
Example values:
SupplierID:supplierId, ManufacturerID:manufacturerId productIdChangedOn:changedOn, ChangedBy:changedByCategory:attrValue_string_product_category
Can be used to sort the search result, see sort parameters.
Example values:
productId descscore asc
Default Field
Section titled “Default Field”pecifies a default field that is used when no field in the query is provided.
E.g. Query=GearFit2 and Default Field=productId will find the product GearFit2.
Most likely this fields won’t be needed bacuase the query should always have the correct fields.
Query Parameters
Section titled “Query Parameters”Type Attribute Value
Section titled “Type Attribute Value”A special parameter is available in the freemarker template for this parameter type:
${paramName.attribute}
can be used to access the attribute and its information, e.g. ${attributeValue.attribute.attributeId}
.
Type Classification Group
Section titled “Type Classification Group”A special parameter is available in the freemarker template for this parameter type:
${paranName.path}
can be used to access the groups path as it willo be stored in the index, see following code example.
AND ({!parent which="*:* -_nest_path_:*"}+classificationGroupAssociation_hierarchyPath:\/${groupCriteria.path})
which results in following Solr query
AND ({!parent which=\"*:* -_nest_path_:*\"}+classificationGroupAssociation_hierarchyPath:\\/CarParts/Brake/BrakePads)