WordPress.org

Ready to get started?Download WordPress

Forums

Search Unleashed
How to add custom Stop Words to Lucene? (1 post)

  1. Dhanu
    Member
    Posted 3 years ago #

    Hi,
    I would like to add my own list of stop words to the system.
    I went to the following file /wp-content/plugins/search-unleashed/engines/Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php

    Then I copied the following line (line 27)
    $stopwords = array('the' => 1, 'an' => '1'); and pasted it right before private $_stopSet; in line 44.

    When I try to run a new index it returns a message saying there was an error.

    Any ideas?
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic