Scalable thoughts...: Configure Solr Did You Mean
Apache Solr is one of my top favorite tools. This open-source enterprise search engine is very powerful, scalable, resilient and functional. In this article, my purpose is to show how to configure 'did you mean' feature. I used to say to coworkers that 'did you mean' is the most cost-benefit Solr feature. This happens because, as you will see, it's very easy to setup and provide to target user the feeling that your search mechanism is actually very smart.Some background
Solr 'did you mean' support can be configured using SpellCheckComponent which is built on top Lucene implementations of org.apache.lucene.search.spell.StringDistance interface. This interface provides the getDistance(String string1, String string2) method. These implementations just compare two parameterized strings and returns a (double) factor. If factor tends to 1.0, then words is more similar to each other.
Read full article from Scalable thoughts...: Configure Solr Did You Mean
No comments:
Post a Comment