Package org.hibernate.search.engine

Examples of org.hibernate.search.engine.DocumentExtractor.extract()


            // from Lucene and then get it from the cache.

            // The extractor.extract.id gives me the documentId that we need.


            Object key = extractor.extract(index).id;
            keyList.add(key);
         }

      }
      catch (IOException e) {
View Full Code Here


            // Since the documentId is same thing as the key in each key, value pairing. We can just get the documentId
            // from Lucene and then get it from the cache.

            // The extractor.extract.id gives me the documentId that we need.

            String cacheKey = extractor.extract(index).id.toString(); // these are always strings
            keysForCache.add(cacheKey);
         }

         // Loop through my list of keys and get it from the cache. Put each object that I get into a separate list.
         List<Object> listToReturn = new ArrayList<Object>(size);
View Full Code Here

            // from Lucene and then get it from the cache.

            // The extractor.extract.id gives me the documentId that we need.


            Object key = extractor.extract(index).id;
            keyList.add(key);
         }

      }
      catch (IOException e) {
View Full Code Here

            // Since the documentId is same thing as the key in each key, value pairing. We can just get the documentId
            // from Lucene and then get it from the cache.

            // The extractor.extract.id gives me the documentId that we need.

            Object cacheKey = extractor.extract(index).id;
            keysForCache.add(cacheKey);
         }

         // Loop through my list of keys and get it from the cache. Put each object that I get into a separate list.
         List<Object> listToReturn = new ArrayList<Object>(size);
View Full Code Here

      List<EntityInfo> infos = new ArrayList<EntityInfo>( size );
      DocumentExtractor extractor = new DocumentExtractor(
          queryHits, searchFactoryImplementor, indexProjection, idFieldNames, allowFieldSelectionInProjection
      );
      for ( int index = first; index <= max; index++ ) {
        infos.add( extractor.extract( index ) );
      }
      Loader loader = getLoader();
      return new IteratorImpl( infos, loader );
    }
    catch ( IOException e ) {
View Full Code Here

      List<EntityInfo> infos = new ArrayList<EntityInfo>( size );
      DocumentExtractor extractor = new DocumentExtractor(
          queryHits, searchFactoryImplementor, indexProjection, idFieldNames, allowFieldSelectionInProjection
      );
      for ( int index = first; index <= max; index++ ) {
        infos.add( extractor.extract( index ) );
      }
      Loader loader = getLoader();
      List list = loader.load( infos.toArray( new EntityInfo[infos.size()] ) );
      if ( resultTransformer == null || loader instanceof ProjectionLoader ) {
        //stay consistent with transformTuple which can only be executed during a projection
View Full Code Here

      List<EntityInfo> infos = new ArrayList<EntityInfo>( size );
      DocumentExtractor extractor = new DocumentExtractor(
          queryHits, searchFactoryImplementor, indexProjection, idFieldNames, allowFieldSelectionInProjection
      );
      for ( int index = first; index <= max; index++ ) {
        infos.add( extractor.extract( index ) );
      }
      Loader loader = getLoader();
      return new IteratorImpl( infos, loader );
    }
    catch ( IOException e ) {
View Full Code Here

      List<EntityInfo> infos = new ArrayList<EntityInfo>( size );
      DocumentExtractor extractor = new DocumentExtractor(
          queryHits, searchFactoryImplementor, indexProjection, idFieldNames, allowFieldSelectionInProjection
      );
      for ( int index = first; index <= max; index++ ) {
        infos.add( extractor.extract( index ) );
      }
      Loader loader = getLoader();
      List list = loader.load( infos.toArray( new EntityInfo[infos.size()] ) );
      if ( resultTransformer == null || loader instanceof ProjectionLoader ) {
        //stay consistent with transformTuple which can only be executed during a projection
View Full Code Here

            // from Lucene and then get it from the cache.

            // The extractor.extract.id gives me the documentId that we need.


            String keyString = (String) extractor.extract(index).id;
            keyList.add(KeyTransformationHandler.stringToKey(keyString));
         }

      }
      catch (IOException e) {
View Full Code Here

            // Since the documentId is same thing as the key in each key, value pairing. We can just get the documentId
            // from Lucene and then get it from the cache.

            // The extractor.extract.id gives me the documentId that we need.

            String cacheKey = extractor.extract(index).id.toString(); // these are always strings
            keysForCache.add(cacheKey);
         }

         // Loop through my list of keys and get it from the cache. Put each object that I get into a separate list.
         List<Object> listToReturn = new ArrayList<Object>(size);
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.