编辑我正在尝试在hook_search()的实现中创建一个自定义搜索。我一直在查看Drupal文档中的方法:
我知道该方法正在运行,因为我可以将一个die('killed inside of implementation of hook_search()')插入函数的顶部并查看输出在下面的代码中,脚本永远不会被杀死,这样我就可以看到输出search caught inside of my_search<
我有一个数据库,我想通过Zend_Search_Lucene来利用它。然而,我很难为Lucene创建一个“完全可搜索”的文档。每个Zend_Search_Lucene文档从两个关系数据库表(Table_One和Table_Two)中提取信息。问题1如何在每个字段都是唯一的情况下创建Zend_Search_Lucene文档?date_available: Keyword
bedrooms_1: <- Would prefer not to have do this as this makes the bedrooms harde