org.LexGrid.LexBIG.Impl.dataAccess
Class IndexQueryParserFactory

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.dataAccess.IndexQueryParserFactory

public class IndexQueryParserFactory
extends java.lang.Object

Build the query parser to use for parsing the text portion of a user query. One parser is shared across all indexes.

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Dan Armbrust, Jesse Erdmann, Deepak Sharma, Kevin Peterson

Constructor Summary
protected IndexQueryParserFactory()
           
 
Method Summary
 java.util.Set getExtraWhitespaceCharaters()
           
static IndexQueryParserFactory getInstance()
           
protected  LgLoggerIF getLogger()
           
 org.apache.lucene.queryParser.QueryParser getQueryProcessor()
           
static org.apache.lucene.queryParser.QueryParser getQueryThreadSafeQueryParser()
           
 org.apache.lucene.search.Query parseQueryForField(java.lang.String field, java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexQueryParserFactory

protected IndexQueryParserFactory()
Method Detail

getLogger

protected LgLoggerIF getLogger()

getInstance

public static IndexQueryParserFactory getInstance()

parseQueryForField

public org.apache.lucene.search.Query parseQueryForField(java.lang.String field,
                                                         java.lang.String text)
                                                  throws LBParameterException
Throws:
LBParameterException

getQueryProcessor

public org.apache.lucene.queryParser.QueryParser getQueryProcessor()

getQueryThreadSafeQueryParser

public static org.apache.lucene.queryParser.QueryParser getQueryThreadSafeQueryParser()

getExtraWhitespaceCharaters

public java.util.Set getExtraWhitespaceCharaters()

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.