Farhan Tahir
Farhan Tahir

Reputation: 2144

Stop incorrect terms from indexing in data-import handler in Apache SOLR

I have a table in mysql named "searchterms" which include data of searches terms performed by the users.

I'm indexing these search terms in solr and using suggest component for getting suggestions for searches based on other users.(That is popular searches among communities)

I have database that is old and I have a lot old incorrect/misspelled searches.

What I exactly want to do is stop indexing those incorrect/misspelled terms and index only correctly spelled terms.

I'm using data-import handler connected with mysql to index old data.

Any solution for this problem.

Upvotes: 0

Views: 100

Answers (1)

Anand Mattikopp
Anand Mattikopp

Reputation: 382

You may want to check this out - https://wiki.apache.org/solr/SpellCheckComponent.

There are a few cavaets to it, check out - Wrong spell-check suggestions by Solr

Upvotes: 0

Related Questions