Package org.hibernate.search.annotations

Examples of org.hibernate.search.annotations.Store


        if ( metadata.fieldIndex.get( propertyIndex ).isIndexed() ) {
          return true;
        }

        // take care of stored fields:
        Store store = metadata.fieldStore.get( propertyIndex );
        if ( store.equals( Store.YES ) || store.equals( Store.COMPRESS ) ) {
          // unless Store.NO, which doesn't affect the index
          return true;
        }
      }
View Full Code Here


      ConfigContext configContext) {

    BridgeFactory.injectParameters( classBridgeAnnotation, fieldBridge );

    String fieldName = prefix + classBridgeAnnotation.name();
    Store store = classBridgeAnnotation.store();
    Field.Index index = AnnotationProcessingHelper.getIndex(
        classBridgeAnnotation.index(),
        classBridgeAnnotation.analyze(),
        classBridgeAnnotation.norms()
    );
View Full Code Here

      throw log.cannotHaveTwoSpatialsWithDefaultOrSameName( member.getType().getName() );
    }
    parseContext.markSpatialNameAsUsed( spatialAnnotation.name() );

    String fieldName = prefix + ReflectionHelper.getAttributeName( member, spatialAnnotation.name() );
    Store store = spatialAnnotation.store();
    Field.Index index = AnnotationProcessingHelper.getIndex( Index.YES, Analyze.NO, Norms.NO );
    Field.TermVector termVector = Field.TermVector.NO;
    FieldBridge fieldBridge = BridgeFactory.guessType(
        null,
        null,
View Full Code Here

    if ( parseContext.isSpatialNameUsed( spatialAnnotation.name() ) ) {
      throw log.cannotHaveTwoSpatialsWithDefaultOrSameName( parseContext.getCurrentClass().getName() );
    }
    parseContext.markSpatialNameAsUsed( spatialAnnotation.name() );

    Store store = spatialAnnotation.store();
    Field.Index index = AnnotationProcessingHelper.getIndex( Index.YES, Analyze.NO, Norms.NO );
    Field.TermVector termVector = AnnotationProcessingHelper.getTermVector( TermVector.NO );
    FieldBridge spatialBridge = determineSpatialFieldBridge( spatialAnnotation, parseContext );

    DocumentFieldMetadata fieldMetadata = new DocumentFieldMetadata.Builder( fieldName, store, index, termVector )
View Full Code Here

      //Only applies on JPA mapped entities.
      typeMetadataBuilder.disableStateInspectionOptimization();
    }

    String fieldName = prefix + ReflectionHelper.getAttributeName( member, fieldAnnotation.name() );
    Store store = fieldAnnotation.store();
    Field.Index index = AnnotationProcessingHelper.getIndex(
        fieldAnnotation.index(),
        fieldAnnotation.analyze(),
        fieldAnnotation.norms()
    );
View Full Code Here

        if ( metadata.fieldIndex.get( propertyIndex ).isIndexed() ) {
          return true;
        }

        // take care of stored fields:
        Store store = metadata.fieldStore.get( propertyIndex );
        if ( store.equals( Store.YES ) || store.equals( Store.COMPRESS ) ) {
          // unless Store.NO, which doesn't affect the index
          return true;
        }
      }
View Full Code Here

        if ( metadata.fieldIndex.get( propertyIndex ).isIndexed() ) {
          return true;
        }

        // take care of stored fields:
        Store store = metadata.fieldStore.get( propertyIndex );
        if ( store.equals( Store.YES ) || store.equals( Store.COMPRESS ) ) {
          // unless Store.NO, which doesn't affect the index
          return true;
        }
      }
View Full Code Here

        if ( metadata.fieldIndex.get( propertyIndex ).isIndexed() ) {
          return true;
        }

        // take care of stored fields:
        Store store = metadata.fieldStore.get( propertyIndex );
        if ( store.equals( Store.YES ) || store.equals( Store.COMPRESS ) ) {
          // unless Store.NO, which doesn't affect the index
          return true;
        }
      }
View Full Code Here

      ConfigContext configContext) {

    BridgeFactory.injectParameters( classBridgeAnnotation, fieldBridge );

    String fieldName = prefix + classBridgeAnnotation.name();
    Store store = classBridgeAnnotation.store();
    Field.Index index = AnnotationProcessingHelper.getIndex(
        classBridgeAnnotation.index(),
        classBridgeAnnotation.analyze(),
        classBridgeAnnotation.norms()
    );
View Full Code Here

      throw log.cannotHaveTwoSpatialsWithDefaultOrSameName( member.getType().getName() );
    }
    parseContext.markSpatialNameAsUsed( spatialAnnotation.name() );

    String fieldName = prefix + ReflectionHelper.getAttributeName( member, spatialAnnotation.name() );
    Store store = spatialAnnotation.store();
    Field.Index index = AnnotationProcessingHelper.getIndex( Index.YES, Analyze.NO, Norms.NO );
    Field.TermVector termVector = Field.TermVector.NO;
    FieldBridge fieldBridge = BridgeFactory.guessType(
        null,
        null,
View Full Code Here

TOP

Related Classes of org.hibernate.search.annotations.Store

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.