com.atlassian.confluence.search.didyoumean.lucene
Class DidYouMeanSearcherInitialisation
java.lang.Object
com.atlassian.confluence.search.didyoumean.lucene.DidYouMeanSearcherInitialisation
- All Implemented Interfaces:
- com.atlassian.bonnie.search.SearcherInitialisation
public class DidYouMeanSearcherInitialisation
- extends Object
- implements com.atlassian.bonnie.search.SearcherInitialisation
Configures the searcher to use a customized Similarity
class. The
purpose of which is to negate the idf for n-gram matches (as we consider all
n-gram matches to be equal).
Method Summary |
void |
initialise(org.apache.lucene.search.IndexSearcher searcher)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DidYouMeanSearcherInitialisation
public DidYouMeanSearcherInitialisation()
initialise
public void initialise(org.apache.lucene.search.IndexSearcher searcher)
- Specified by:
initialise
in interface com.atlassian.bonnie.search.SearcherInitialisation
Copyright © 2003-2012 Atlassian. All Rights Reserved.