これを使用してインデックスを作成するZend Luceneを使用した非常に単純な会社インデックスがあります。
// store company primary key to identify it in the search results
$doc->addField(Zend_Search_Lucene_Field::Keyword('pk', $this->getId()));
// index company fields
$doc->addField(Zend_Search_Lucene_Field::Unstored('zipcode', $this->getZipcode(), 'utf-8'));
$doc->addField(Zend_Search_Lucene_Field::Unstored('name', $this->getName(), 'utf-8'));
会社名で検索できますが、郵便番号では検索できません。Zend Lucene Search の整数のインデックス作成に問題はありますか? s / oが経験した人に光を当てることができれば、私を助けてください. Lucene を使用して郵便番号で検索することはかなり一般的であることしか想像できません。