org.compass.core.lucene.engine.spellcheck
Class DefaultLuceneSearchEngineSpellSuggestions

java.lang.Object
  extended by org.compass.core.lucene.engine.spellcheck.DefaultLuceneSearchEngineSpellSuggestions
All Implemented Interfaces:
Iterable<String>, SearchEngineSpellSuggestions

public class DefaultLuceneSearchEngineSpellSuggestions
extends Object
implements SearchEngineSpellSuggestions

Author:
kimchy

Constructor Summary
DefaultLuceneSearchEngineSpellSuggestions(boolean exists, String[] suggestions)
           
 
Method Summary
 String[] getSuggestions()
          Returns the list of suggestions.
 boolean isExists()
          Does the word exists within the spell index.
 Iterator<String> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLuceneSearchEngineSpellSuggestions

public DefaultLuceneSearchEngineSpellSuggestions(boolean exists,
                                                 String[] suggestions)
Method Detail

isExists

public boolean isExists()
Description copied from interface: SearchEngineSpellSuggestions
Does the word exists within the spell index.

Specified by:
isExists in interface SearchEngineSpellSuggestions

getSuggestions

public String[] getSuggestions()
Description copied from interface: SearchEngineSpellSuggestions
Returns the list of suggestions.

Specified by:
getSuggestions in interface SearchEngineSpellSuggestions

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>


Copyright (c) 2004-2009 The Compass Project.