org.LexGrid.LexBIG.Impl.Extensions.Search
Class LeadingAndTrailingWildcardSearch

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.Extensions.AbstractExtendable
      extended by org.LexGrid.LexBIG.Impl.Extensions.Search.AbstractSearch
          extended by org.LexGrid.LexBIG.Impl.Extensions.Search.AbstractExactMatchBoostingSearch
              extended by org.LexGrid.LexBIG.Impl.Extensions.Search.LeadingAndTrailingWildcardSearch
All Implemented Interfaces:
java.io.Serializable, Extendable, Search

public class LeadingAndTrailingWildcardSearch
extends AbstractExactMatchBoostingSearch

The Class LeadingAndTrailingWildcardSearch.

Author:
Kevin Peterson
See Also:
Serialized Form

Constructor Summary
LeadingAndTrailingWildcardSearch()
           
 
Method Summary
protected  java.lang.String addLeadingAndTrailingWildcards(java.lang.String input)
          Adds the leading and trailing wildcards.
protected  ExtensionDescription buildExtensionDescription()
          Builds the extension description.
 org.apache.lucene.search.Query doBuildQuery(java.lang.String searchText)
           
 
Methods inherited from class org.LexGrid.LexBIG.Impl.Extensions.Search.AbstractExactMatchBoostingSearch
buildQuery
 
Methods inherited from class org.LexGrid.LexBIG.Impl.Extensions.Search.AbstractSearch
addTrailingWildcard, addTrailingWildcardToAllTokens, getQueryParser, handleWhiteSpaceCharacters, register, tokenizeBySpace
 
Methods inherited from class org.LexGrid.LexBIG.Impl.Extensions.AbstractExtendable
getDescription, getExtensionDescription, getName, getProvider, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Extendable
getDescription, getName, getProvider, getVersion
 

Constructor Detail

LeadingAndTrailingWildcardSearch

public LeadingAndTrailingWildcardSearch()
Method Detail

buildExtensionDescription

protected ExtensionDescription buildExtensionDescription()
Description copied from class: AbstractExtendable
Builds the extension description.

Specified by:
buildExtensionDescription in class AbstractExtendable
Returns:
the extension description

doBuildQuery

public org.apache.lucene.search.Query doBuildQuery(java.lang.String searchText)
Specified by:
doBuildQuery in class AbstractExactMatchBoostingSearch

addLeadingAndTrailingWildcards

protected java.lang.String addLeadingAndTrailingWildcards(java.lang.String input)
Adds the leading and trailing wildcards.

Parameters:
input - the input
Returns:
the string

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.