Oracle Endeca Commerce Record Boost And Burry

  1. Home
  2. Blog
  3. Oracle Endeca Commerce Record Boost And Burry

Oracle Endeca Commerce Record Boost And Burry

Records Boost and Burry feature allow you to show products at the top or bottom depending on the values set for boost and burry.

Endeca also allows you to set multiple sorting parameters when querying MDEX engine. For example “N=0&Ns=Price|1||Location(27,72)”. We can use this during Boost and Burry as well.

How to add other sort parameter to records Boost and Burry ?

Boost and Bury:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
N=0&Ns=Endeca.stratify(collection()/record[Brand="Apple"],*)
N=0&Ns=Endeca.stratify(collection()/record[Brand="Apple"],*)
N=0&Ns=Endeca.stratify(collection()/record[Brand="Apple"],*)

Boost and Bury and adding sort by price:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
N=0&Ns=Endeca.stratify(collection()/record[Brand="Apple"],*)||price|0
N=0&Ns=Endeca.stratify(collection()/record[Brand="Apple"],*)||price|0
N=0&Ns=Endeca.stratify(collection()/record[Brand="Apple"],*)||price|0

How to do it using JAVA API?

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
String stratify = "Endeca.stratify(collection()/record[Brand="Apple"],*)" ERecSortKey stratifySortKey = new ERecSortKey(stratify);
String price = "price";
ERecSortKeyList sortKey = EndecaUtil.getSortKeyList(price);
//we want stratifySortkey to be the first on the list
ERecSortKeyList ret = new ERecSortKeyList();
ret.add(stratifySortKey);
ret.add(price, true);
String stratify = "Endeca.stratify(collection()/record[Brand="Apple"],*)" ERecSortKey stratifySortKey = new ERecSortKey(stratify); String price = "price"; ERecSortKeyList sortKey = EndecaUtil.getSortKeyList(price); //we want stratifySortkey to be the first on the list ERecSortKeyList ret = new ERecSortKeyList(); ret.add(stratifySortKey); ret.add(price, true);
String stratify = "Endeca.stratify(collection()/record[Brand="Apple"],*)" ERecSortKey stratifySortKey = new ERecSortKey(stratify); 
String price = "price"; 
ERecSortKeyList sortKey = EndecaUtil.getSortKeyList(price); 
//we want stratifySortkey to be the first on the list 
ERecSortKeyList ret = new ERecSortKeyList(); 
ret.add(stratifySortKey); 
ret.add(price, true);
1 2 3 20
Let's Share
Hide Buttons
follow me on twitter
follow me on facebook
follow me on Linkedin
100%