View Javadoc

1   package com.atlassian.bonnie.search;
2   
3   import org.apache.lucene.search.IndexSearcher;
4   import org.apache.lucene.search.Similarity;
5   
6   /**
7    * Implement this interface to initialise a searcher. This may include warming
8    * up or changing the {@link Similarity} implementation used.
9    */
10  public interface SearcherInitialisation
11  {
12      /**
13       * Initialises a newly created {@link IndexSearcher}.
14       */
15      void initialise(IndexSearcher searcher);
16  }