Friday 17 February 2017

Record Filters in Endeca

The Term Record Filter Can be Defined as Filtering the Records based on Some Property Value, this Type of Filters Can be added once if we know the Value that can Filtered from the List of Records , endeca Provides the Powerful Way by Which we can Achieve this functionality.

Step:1

Make the corresponding property as Record Filterable.

For More Information how to make property as Record Filterable You can Watch my following posts .

http://searchendeca.blogspot.com/2016/09/about-indexconfigcmdbat.html This posts has the Procedure to make the property as the RecordFilterable.


Step:2

Create a component of class that extends RecordFilterBuilderImpl and Override the buildRecordFilter method , the Return Value should be the Filterable Value.


Step:3

After you create a particular component you have to register the Same in the Navigation State by assaing to  recordFilterBuilders property in the NavigationStateBuilder component in the Path /atg/endeca/assembler/cartridge/manager this Filter Class will be called and set in the Navigation State During the Request.



For Reference you can Refer LocationTypeFilterBuilder From CRS.


2 comments:
Write comments
  1. Very useful info for adding record filters in ATG-Endeca integration.

    ReplyDelete
  2. Hi, I have a question,

    Please see the below jsp_ref data from endeca.

    So my question, is it possible to get /retrieve the value of dispName from the record, using a recordFilter ?


    dispName = record.getProperty("sku.displayName"); ????
    StockStatus = record.getProperty("product.stockStatuses"); ????

    ------------ jsp ref --------
    sku.baseUrl: atgrep:/ProductCatalog_production/sku/017229136779
    sku.creationDate: 1485194500638
    sku.displayName: LG M95 BT HEADSET BL
    sku.endDate: 32506394714894
    sku.margin: 0.000000
    product.stockStatuses: 1000:Out of Stock
    product.stockStatuses: 100411:Out of Stock
    product.stockStatuses: 100412:Out of Stock
    product.stockStatuses: 100413:Out of Stock
    product.stockStatuses: 100414:Out of Stock
    product.stockStatuses: 100415:Out of Stock

    ReplyDelete