【发布时间】:2012-02-09 14:53:52
【问题描述】:
我正在编写一个基于 Zend Search Lucène 的搜索引擎。
我的对象有许多不同的字段(10 种文本类型),我想知道哪种方式最好。 (所有字段都未存储,只是索引,我不需要恢复它们。)
一个大字段,(许多小字段的串联):
$content = $textfield1 . $textfield2 . $textfield3 . $textfield4 ...
Zend_Search_Lucene_Field::unStored("content", $content);
或
许多小领域:
Zend_Search_Lucene_Field::unStored("content", $textfield1);
Zend_Search_Lucene_Field::unStored("content2", $textfield2);
Zend_Search_Lucene_Field::unStored("content3", $textfield3);
....
....
每个字段可能包含大量文本(大约 500 字或更多)。
【问题讨论】:
标签: zend-framework lucene zend-search-lucene