简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM