What should the array of stop words be set up like when being passed to
Zend_Search_Lucene_Analysis_TokenFilter_StopWords?
The online manual says to use an array like this:

$stopWords = array('a', 'an', 'at', 'the', 'and', 'or', 'is', 'am');

http://framework.zend.com/manual/en/zend.search.lucene.extending.html#zend.search.lucene.extending.filters

But the API documentation says "These words must be provided as array (set),
example: $stopwords = array('the' => 1, 'an' => '1');"

http://framework.zend.com/apidoc/core/Zend_Search_Lucene/Analysis/Zend_Search_Lucene_Analysis_TokenFilter_StopWords.html

Which is correct?

Also, is the stopWordsFilter used while indexing, searching, or both? In
other words, if I change my stopWords, do I have to re-index my pages to see
the effect? Thanks!

-Hector

Reply via email to