Examples of NumericField


Examples of org.apache.lucene.document.NumericField

    getLuceneDocument().add( numField );
  }

  @Override
  public void addFloatNumericField(float value, String name, int precisionStep, SerializableStore store, boolean indexed, float boost, boolean omitNorms, boolean omitTermFreqAndPositions) {
    NumericField numField = buildNumericField(
        name,
        precisionStep,
        store,
        indexed,
        boost,
        omitNorms,
        omitTermFreqAndPositions
    );
    numField.setFloatValue( value );
    getLuceneDocument().add( numField );
  }
View Full Code Here

Examples of org.hibernate.search.annotations.NumericField

    checkDocumentId( member, propertiesMetadata, isRoot, prefix, context, pathsContext );
  }

  protected void checkDocumentId(XProperty member, PropertiesMetadata propertiesMetadata, boolean isRoot, String prefix, ConfigContext context, PathsContext pathsContext) {
    Annotation idAnnotation = getIdAnnotation( member, context );
    NumericField numericFieldAnn = member.getAnnotation( NumericField.class );
    if ( idAnnotation != null ) {
      String attributeName = getIdAttributeName( member, idAnnotation );
      if ( pathsContext != null ) {
        pathsContext.markEncounteredPath( prefix + attributeName );
      }
View Full Code Here

Examples of org.hibernate.search.annotations.NumericField

  }

  private void checkForField(XClass classHostingMember, XProperty member, PropertiesMetadata propertiesMetadata, String prefix, ConfigContext context, PathsContext pathsContext) {
    org.hibernate.search.annotations.Field fieldAnn =
        member.getAnnotation( org.hibernate.search.annotations.Field.class );
    NumericField numericFieldAnn = member.getAnnotation( NumericField.class );
    DocumentId idAnn = member.getAnnotation( DocumentId.class );
    if ( fieldAnn != null ) {
      if ( isFieldInPath( fieldAnn, member, pathsContext, prefix ) || level <= maxLevel ) {
        bindFieldAnnotation( classHostingMember, member, propertiesMetadata, prefix, fieldAnn, numericFieldAnn, context );
      }
View Full Code Here

Examples of org.hibernate.search.annotations.NumericField

    if ( PropertiesMetadata.Container.OBJECT == container ) {
      return new NullEncodingFieldBridge( NULL_EMBEDDED_STRING_BRIDGE, indexNullAs );
    }
    else {
      NumericField numericField = member.getAnnotation( NumericField.class );
      FieldBridge fieldBridge = BridgeFactory.guessType( null, numericField, member, reflectionManager );
      if ( fieldBridge instanceof StringBridge ) {
        fieldBridge = new NullEncodingFieldBridge( (StringBridge) fieldBridge, indexNullAs );
      }
      return fieldBridge;
View Full Code Here

Examples of org.hibernate.search.annotations.NumericField

    checkDocumentId( member, propertiesMetadata, isRoot, prefix, context );
  }

  protected void checkDocumentId(XProperty member, PropertiesMetadata propertiesMetadata, boolean isRoot, String prefix, ConfigContext context) {
    Annotation idAnnotation = getIdAnnotation( member, context );
    NumericField numericFieldAnn = member.getAnnotation( NumericField.class );
    if ( idAnnotation != null ) {
      String attributeName = getIdAttributeName( member, idAnnotation );
      if ( isRoot ) {
        if ( explicitDocumentId ) {
          throw new SearchException( "More than one @DocumentId specified on entity " + getBeanClass().getName() );
View Full Code Here

Examples of org.hibernate.search.annotations.NumericField

  }

  private void checkForField(XProperty member, PropertiesMetadata propertiesMetadata, String prefix, ConfigContext context) {
    org.hibernate.search.annotations.Field fieldAnn =
        member.getAnnotation( org.hibernate.search.annotations.Field.class );
    NumericField numericFieldAnn = member.getAnnotation( NumericField.class );
    DocumentId idAnn = member.getAnnotation( DocumentId.class );
    if ( fieldAnn != null ) {
      bindFieldAnnotation( member, propertiesMetadata, prefix, fieldAnn, numericFieldAnn, context );
    }
    if ( ( fieldAnn == null && idAnn == null ) && numericFieldAnn != null ) {
View Full Code Here

Examples of org.hibernate.search.annotations.NumericField

      String prefix,
      ConfigContext configContext,
      PathsContext pathsContext,
      ParseContext parseContext) {
    Annotation idAnnotation = getIdAnnotation( member, typeMetadataBuilder, configContext );
    NumericField numericFieldAnn = member.getAnnotation( NumericField.class );
    if ( idAnnotation != null ) {
      String attributeName = getIdAttributeName( member, idAnnotation );
      if ( pathsContext != null ) {
        pathsContext.markEncounteredPath( prefix + attributeName );
      }
View Full Code Here

Examples of org.hibernate.search.annotations.NumericField

      PathsContext pathsContext,
      ParseContext parseContext) {

    org.hibernate.search.annotations.Field fieldAnnotation =
        member.getAnnotation( org.hibernate.search.annotations.Field.class );
    NumericField numericFieldAnnotation = member.getAnnotation( NumericField.class );
    DocumentId idAnn = member.getAnnotation( DocumentId.class );
    if ( fieldAnnotation != null ) {
      if ( isFieldInPath( fieldAnnotation, member, pathsContext, prefix ) || !parseContext.isMaxLevelReached() ) {
        PropertyMetadata.Builder propertyMetadataBuilder = new PropertyMetadata.Builder( member )
            .dynamicBoostStrategy( AnnotationProcessingHelper.getDynamicBoost( member ) );
View Full Code Here

Examples of org.hibernate.search.annotations.NumericField

    if ( EmbeddedTypeMetadata.Container.OBJECT == container ) {
      return new NullEncodingFieldBridge( NULL_EMBEDDED_STRING_BRIDGE, indexNullAs );
    }
    else {
      NumericField numericField = member.getAnnotation( NumericField.class );
      FieldBridge fieldBridge = BridgeFactory.guessType( null, numericField, member, reflectionManager );
      if ( fieldBridge instanceof StringBridge ) {
        fieldBridge = new NullEncodingFieldBridge( (StringBridge) fieldBridge, indexNullAs );
      }
      return fieldBridge;
View Full Code Here

Examples of org.hibernate.search.annotations.NumericField

    checkDocumentId( member, propertiesMetadata, isRoot, prefix, context );
  }

  protected void checkDocumentId(XProperty member, PropertiesMetadata propertiesMetadata, boolean isRoot, String prefix, ConfigContext context) {
    Annotation idAnnotation = getIdAnnotation( member, context );
    NumericField numericFieldAnn = member.getAnnotation( NumericField.class );
    if ( idAnnotation != null ) {
      String attributeName = getIdAttributeName( member, idAnnotation );
      if ( isRoot ) {
        if ( explicitDocumentId ) {
          throw new SearchException( "More than one @DocumentId specified on entity " + getBeanClass().getName() );
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.