Package org.apache.ctakes.core.resource

Examples of org.apache.ctakes.core.resource.LuceneIndexReaderResource


  {
    // TODO property validation could be done here
    iv_props = props;
    iv_maxHits = maxListSize;
    String resrcName = iv_props.getProperty(LUCENE_FILTER_RESRC_KEY_PRP_KEY);
    LuceneIndexReaderResource resrc = (LuceneIndexReaderResource) aCtx.getResourceObject(resrcName);
    iv_searcher = new IndexSearcher(resrc.getIndexReader());
  }
View Full Code Here


  throws Exception
  {
    // TODO property validation could be done here
    iv_props = props;
    String resrcName = iv_props.getProperty(LUCENE_FILTER_RESRC_KEY_PRP_KEY);
    LuceneIndexReaderResource resrc = (LuceneIndexReaderResource) aCtx.getResourceObject(resrcName);
    iv_searcher = new IndexSearcher(resrc.getIndexReader());
    iv_maxHits = Integer.MAX_VALUE;
  }
View Full Code Here

      // TODO property validation could be done here
      _properties = props;
      _maxListSize = maxListSize;
      final String resrcName = _properties.getProperty( LUCENE_FILTER_RESRC_KEY_PRP_KEY );
      // UimaContext.getResourceObject(..) throws ResourceAccessException
      final LuceneIndexReaderResource resrc = (LuceneIndexReaderResource) aCtx.getResourceObject( resrcName );
      // Possible npE with resrc.getIndexReader()
      _indexSearcher = new IndexSearcher( resrc.getIndexReader() );
   }
View Full Code Here

      // TODO property validation could be done here
      _properties = props;
      _maxListSize = maxListSize;
      final String resrcName = _properties.getProperty( LUCENE_FILTER_RESRC_KEY_PRP_KEY );
      // UimaContext.getResourceObject(..) throws ResourceAccessException
      final LuceneIndexReaderResource resrc = (LuceneIndexReaderResource) aCtx.getResourceObject( resrcName );
      // Possible npE with resrc.getIndexReader()
      _indexSearcher = new IndexSearcher( resrc.getIndexReader() );
   }
View Full Code Here

  {
    // TODO property validation could be done here
    iv_props = props;
    iv_maxHits = maxListSize;
    String resrcName = iv_props.getProperty(LUCENE_FILTER_RESRC_KEY_PRP_KEY);
    LuceneIndexReaderResource resrc = (LuceneIndexReaderResource) aCtx.getResourceObject(resrcName);
    iv_searcher = new IndexSearcher(resrc.getIndexReader());
  }
View Full Code Here

  throws Exception
  {
    // TODO property validation could be done here
    iv_props = props;
    String resrcName = iv_props.getProperty(LUCENE_FILTER_RESRC_KEY_PRP_KEY);
    LuceneIndexReaderResource resrc = (LuceneIndexReaderResource) aCtx.getResourceObject(resrcName);
    iv_searcher = new IndexSearcher(resrc.getIndexReader());
    iv_maxHits = Integer.MAX_VALUE;
  }
View Full Code Here

TOP

Related Classes of org.apache.ctakes.core.resource.LuceneIndexReaderResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.