Examples of LuceneDictionaryImpl


Examples of org.apache.ctakes.dictionary.lookup.lucene.LuceneDictionaryImpl

      IndexSearcher indexSearcher = new IndexSearcher(indexReader);
      String lookupFieldName = props.getProperty(CUI_MAPPING_PRP_KEY);
     
      // We will lookup entries based on lookupFieldName
      snomedLikeCodesIndex = new LuceneDictionaryImpl(indexSearcher, lookupFieldName, iv_maxListSize);
     
      logger.info("Loaded Lucene index with "+ indexReader.numDocs() +" entries.");
         
    } catch (IOException ioe) {
     
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.lucene.LuceneDictionaryImpl

         IndexSearcher indexSearcher = new IndexSearcher( indexReader );
         String lookupFieldName = props.getProperty( CUI_MAPPING_PRP_KEY );

         // We will lookup entries based on lookupFieldName
         snomedLikeCodesIndex = new LuceneDictionaryImpl( indexSearcher, lookupFieldName, iv_maxListSize );

         logger.info( "Loaded Lucene index with " + indexReader.numDocs() + " entries." );

      } catch ( IOException ioe ) {
         logger.info( "Lucene index: " + indexDirAbsPath );
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.lucene.LuceneDictionaryImpl

                                          + LuceneIndexReaderResource.class, new Object[]{extResrc} );
            }
            final IndexReader indexReader = ((LuceneIndexReaderResource) extResrc).getIndexReader();
            final IndexSearcher indexSearcher = new IndexSearcher( indexReader );
            // Added 'MaxListSize' ohnlp-Bugs-3296301
            dict = new LuceneDictionaryImpl( indexSearcher, lookupFieldName, MAX_LIST_SIZE );
         } else if ( implType.equals( "jdbcImpl" ) ) {
            final String tableName = implEl.getAttributeValue( "tableName" );
            if ( !(extResrc instanceof JdbcConnectionResource) ) {
               throw new ResourceAccessException( "Expected external resource to be:"
                                          + JdbcConnectionResource.class, new Object[]{extResrc} );
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.lucene.LuceneDictionaryImpl

            + LuceneIndexReaderResource.class);
      }
      IndexReader indexReader = ((LuceneIndexReaderResource) extResrc).getIndexReader();
      IndexSearcher indexSearcher = new IndexSearcher(indexReader);
      // Added 'MaxListSize' ohnlp-Bugs-3296301
      dict = new LuceneDictionaryImpl(indexSearcher, lookupFieldName, maxSizeList);
    }
    else if (implType.equals("jdbcImpl"))
    {
      String tableName = implEl.getAttributeValue("tableName");
      if (!(extResrc instanceof JdbcConnectionResource))
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.lucene.LuceneDictionaryImpl

            + LuceneIndexReaderResource.class);
      }
      IndexReader indexReader = ((LuceneIndexReaderResource) extResrc).getIndexReader();
      IndexSearcher indexSearcher = new IndexSearcher(indexReader);
      // Added 'MaxListSize' ohnlp-Bugs-3296301
      dict = new LuceneDictionaryImpl(indexSearcher, lookupFieldName, maxSizeList);
    }
    else if (implType.equals("jdbcImpl"))
    {
      String tableName = implEl.getAttributeValue("tableName");
      if (!(extResrc instanceof JdbcConnectionResource))
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.lucene.LuceneDictionaryImpl

         IndexSearcher indexSearcher = new IndexSearcher( indexReader );
         String lookupFieldName = props.getProperty( CUI_MAPPING_PRP_KEY );

         // We will lookup entries based on lookupFieldName
         snomedLikeCodesIndex = new LuceneDictionaryImpl( indexSearcher, lookupFieldName, iv_maxListSize );

         logger.info( "Loaded Lucene index with " + indexReader.numDocs() + " entries." );

      } catch ( IOException ioe ) {
         logger.info( "Lucene index: " + indexDirAbsPath );
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.lucene.LuceneDictionaryImpl

                                          + LuceneIndexReaderResource.class, new Object[]{extResrc} );
            }
            final IndexReader indexReader = ((LuceneIndexReaderResource) extResrc).getIndexReader();
            final IndexSearcher indexSearcher = new IndexSearcher( indexReader );
            // Added 'MaxListSize' ohnlp-Bugs-3296301
            dict = new LuceneDictionaryImpl( indexSearcher, lookupFieldName, MAX_LIST_SIZE );
         } else if ( implType.equals( "jdbcImpl" ) ) {
            final String tableName = implEl.getAttributeValue( "tableName" );
            if ( !(extResrc instanceof JdbcConnectionResource) ) {
               throw new ResourceAccessException( "Expected external resource to be:"
                                          + JdbcConnectionResource.class, new Object[]{extResrc} );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.