NTS Forums

Please login or register.

Login with username, password and session length
 

News:

Welcome to the Newtek Technology Services Forum!


Author Topic: Exclude words in Solr search  (Read 1999 times)

Offline Cliff

  • he
  • Full Member
  • ****
  • Posts: 703
  • Karma: +7/-2
    • PathLabTalk
Exclude words in Solr search
« on: April 02, 2013, 11:47:39 AM »
I am using CF9 on a virtual server (not with CT) so I have control over the stopwords.txt file.
 
I presumed it would be as simple as adding my own words to the file, but it didn't go that smoothly.
I search the CF folder and it found 5 files named stopwords.txt.
 
Here is where they were found:
H:\ColdFusion9\solr\solr\conf
H:\ColdFusion9\solr\multicore\core0\conf
H:\ColdFusion9\solr\multicore\template\conf
H:\ColdFusion9\solr\example-DIH\solr\db\conf
H:\ColdFusion9\solr\example-DIH\solr\rss\conf
 
I tried editing the first 3 (since the bottom 2 said example, I didn't edit those).  I restarted the ColdFusion 9 Search Server and ColdFusion 9 Solr Service then rebuilt the indexes.
 
The search still found the word I added.
 
Advice on how to exclude words would be appreciated.  If it could be done through a database table that I could create and give supervisor staff access to that would be even better than having to edit a server file, restart services and rebuild indexes.
 
Thank you