com.atlassian.confluence.search.didyoumean.lucene
Class DidYouMeanSearcherInitialisation

java.lang.Object
  extended by 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).


Constructor Summary
DidYouMeanSearcherInitialisation()
           
 
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
 

Constructor Detail

DidYouMeanSearcherInitialisation

public DidYouMeanSearcherInitialisation()
Method Detail

initialise

public void initialise(org.apache.lucene.search.IndexSearcher searcher)
Specified by:
initialise in interface com.atlassian.bonnie.search.SearcherInitialisation


Copyright © 2003-2011 Atlassian. All Rights Reserved.