Package org.hibernate.search.engine.impl

Examples of org.hibernate.search.engine.impl.LuceneOptionsImpl


      MAP,
      ARRAY
    }

    protected LuceneOptions getClassLuceneOptions(int i) {
      return new LuceneOptionsImpl(
          classStores.get( i ),
          classIndexes.get( i ),
          classTermVectors.get( i ),
          classBoosts.get( i )
      );
View Full Code Here


      );
    }

    protected LuceneOptions getFieldLuceneOptions(int i, Object value) {
      LuceneOptions options;
      options = new LuceneOptionsImpl(
          fieldStore.get( i ),
          fieldIndex.get( i ),
          fieldTermVectors.get( i ),
          fieldBoosts.get( i ) * dynamicFieldBoosts.get( i ).defineBoost( value ),
          fieldNullTokens.get( i ),
View Full Code Here

            Field.TermVector.NO
        );
    doc.add( classField );

    // now add the entity id to the document
    LuceneOptions luceneOptions = new LuceneOptionsImpl(
        Store.YES,
        Field.Index.NOT_ANALYZED_NO_NORMS,
        Field.TermVector.NO,
        idBoost
    );
View Full Code Here

    }

    // now add the entity id to the document
    if ( containsFieldName( idFieldName, includedFieldNames ) ) {
      DocumentFieldMetadata idFieldMetaData = idPropertyMetadata.getFieldMetadata( idFieldName );
      LuceneOptions luceneOptions = new LuceneOptionsImpl( idFieldMetaData, idFieldMetaData.getBoost(), documentLevelBoost );
      final FieldBridge contextualizedBridge = conversionContext.oneWayConversionContext( getIdBridge() );
      conversionContext.setClass( entityType );
      conversionContext.pushProperty( idFieldMetaData.getName() );

      try {
View Full Code Here

  public void disableStateInspectionOptimizations() {
    stateInspectionOptimizationsEnabled = false;
  }

  public LuceneOptions getClassLuceneOptions(DocumentFieldMetadata fieldMetadata, float documentLevelBoost) {
    return new LuceneOptionsImpl( fieldMetadata, 1f, documentLevelBoost );
  }
View Full Code Here

  }

  public LuceneOptions getFieldLuceneOptions(PropertyMetadata propertyMetadata,
      DocumentFieldMetadata fieldMetadata,
      Object value, float documentBoost) {
    return new LuceneOptionsImpl(
        fieldMetadata,
        fieldMetadata.getBoost() * propertyMetadata.getDynamicBoostStrategy().defineBoost( value ),
        documentBoost
    );
  }
View Full Code Here

      MAP,
      ARRAY
    }

    protected LuceneOptions getClassLuceneOptions(int i) {
      return new LuceneOptionsImpl(
          classStores.get( i ),
          classIndexes.get( i ),
          classTermVectors.get( i ),
          classBoosts.get( i )
      );
View Full Code Here

      );
    }

    protected LuceneOptions getFieldLuceneOptions(int i, Object value) {
      LuceneOptions options;
      options = new LuceneOptionsImpl(
          fieldStore.get( i ),
          fieldIndex.get( i ),
          fieldTermVectors.get( i ),
          fieldBoosts.get( i ) * dynamicFieldBoosts.get( i ).defineBoost( value ),
          fieldNullTokens.get( i ),
View Full Code Here

            Field.TermVector.NO
        );
    doc.add( classField );

    // now add the entity id to the document
    LuceneOptions luceneOptions = new LuceneOptionsImpl(
        Store.YES,
        Field.Index.NOT_ANALYZED_NO_NORMS,
        Field.TermVector.NO,
        idBoost
    );
View Full Code Here

    doc.add( classField );

    // now add the entity id to the document
    DocumentFieldMetadata idFieldMetaData = idPropertyMetadata.getFieldMetadata( idFieldName );

    LuceneOptions luceneOptions = new LuceneOptionsImpl( idFieldMetaData );
    final FieldBridge contextualizedBridge = conversionContext.oneWayConversionContext( getIdBridge() );
    conversionContext.setClass( entityType );
    conversionContext.pushProperty( idFieldMetaData.getName() );

    try {
View Full Code Here

TOP

Related Classes of org.hibernate.search.engine.impl.LuceneOptionsImpl

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.