Project

General

Profile

Revision bc45d7e3

IDbc45d7e377271e52da2962cc82c3a02c0643d560
Parent d9cafd51
Child 69e05485

Added by Andreas Kohlbecker over 7 years ago

removing old lines of code

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/search/LuceneSearch.java
183 183
     */
184 184
    public IndexReader getIndexReader() {
185 185
        SearchFactory searchFactory = Search.getFullTextSession(session).getSearchFactory();
186

  
187
//        OLD
188
//        DirectoryProvider[] directoryProviders = searchFactory.getDirectoryProviders(getDirectorySelectClass());
189
//        logger.info(directoryProviders[0].getDirectory().toString());
190

  
191
//        ReaderProvider readerProvider = searchFactory.getReaderProvider();
192
//        IndexReader reader = readerProvider.openReader(directoryProviders[0]);
193

  
194 186
        IndexReader reader = searchFactory.getIndexReaderAccessor().open(getDirectorySelectClass());
195 187
        return reader;
196 188
    }
......
247 239
     * @throws IOException
248 240
     */
249 241
    public TopDocs executeSearch(int maxNoOfHits) throws IOException {
250
    	Query fullQuery = expandQuery();
251
    	logger.info("lucene query string to be parsed: " + fullQuery.toString());
252
    	return getSearcher().search(fullQuery, maxNoOfHits);
242
        Query fullQuery = expandQuery();
243
        logger.info("lucene query string to be parsed: " + fullQuery.toString());
244
        return getSearcher().search(fullQuery, maxNoOfHits);
253 245

  
254 246
    }
255 247
    /**

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)