1
votes

How would I index a price int field in a Zend Lucene Search Index?

I am currently using:
$doc->addField(Zend_Search_Lucene_Field::Keyword('price', $price, 'utf-8'));

Is this the correct way? Or should I be storing it specifically as a number somehow?

1

1 Answers

1
votes

I think you do it the right way. I'm not aware of better way to store it.