English 中文(简体)
Determine Rules triggered by endeca
原标题:
  • 时间:2012-05-10 19:08:28
  •  标签:
  • endeca

We have various endeca rules set up through Rules Manager in our application which are triggered while rendering the page.

Is it possible to determine which rule was triggered for a page through Java/JSP code?

最佳回答

The proper way to do this is with the Content Assembler API (endeca_content.jar). You need to create a content query and retrive the content object:

ContentItem content = results.getContent();
content.getName();

It is also possible to use the navigation API, using the SupplementList object from the navigation object: The title key will represent the name of the rule triggered. However, is you are using page builder in any meaningful way the proper approach is to use the Content Assemble API.

SupplementList sl = nav.getSupplements();
for (Object object : sl) {
   Supplement s = (Supplement) object;
   PropertyMap map = s.getProperties();
   Set keys = map.keySet();
   for (Object key : keys) {
    logger.info("Sup prop: " + key + " 	" + map.get(key));
   }
}
问题回答

暂无回答




相关问题
Determine Rules triggered by endeca

We have various endeca rules set up through Rules Manager in our application which are triggered while rendering the page. Is it possible to determine which rule was triggered for a page through ...

Federated Search Endeca with other vendors

Need to figure out if Endeca can support Federated Search. Note that this search isn t across mulitple Endeca indices but also against various vendor search. e.g. Microsoft FAST, SOLR etc. Does Endeca ...

如何找到在Eneca pBuilder发射哪条规则?

Endeca s pageBuilder显示一个特殊的着陆页,视你重新查看的那部分地段而定。 在我们的安装中,有一个零售点,有一吨的着陆页,造成故障......

How to fix "Failed to obtain lock" error in Endeca?

Endeca does not seems to be popular here, anyway The problem: Accidentally kill a running base line update process, and the lock is left-over somewhere. I wish to find out where the left-over lock ...

Unit Testing in .Net with Endeca Objects

Most or all of Endeca s objects have internal constructors. I m working on a good project that lacks great test coverage around the Endeca API, are there any good strategies to unit testing the ...

热门标签