Tabnine Logo
Boost.value
Code IndexAdd Tabnine to your IDE (free)

How to use
value
method
in
org.hibernate.search.annotations.Boost

Best Java code snippets using org.hibernate.search.annotations.Boost.value (Showing top 8 results out of 315)

origin: hibernate/hibernate-search

private float getBoost(XClass element) {
  float boost = 1.0f;
  if ( element == null ) {
    return boost;
  }
  Boost boostAnnotation = element.getAnnotation( Boost.class );
  if ( boostAnnotation != null ) {
    boost = boostAnnotation.value();
  }
  return boost;
}
origin: org.infinispan/infinispan-embedded-query

private float getBoost(XClass element) {
  float boost = 1.0f;
  if ( element == null ) {
    return boost;
  }
  Boost boostAnnotation = element.getAnnotation( Boost.class );
  if ( boostAnnotation != null ) {
    boost = boostAnnotation.value();
  }
  return boost;
}
origin: hibernate/hibernate-search

public static Float getBoost(XProperty member, Annotation fieldAnn) {
  float computedBoost = 1.0f;
  Boost boostAnn = member.getAnnotation( Boost.class );
  if ( boostAnn != null ) {
    computedBoost = boostAnn.value();
  }
  if ( fieldAnn != null ) {
    float boost;
    if ( fieldAnn instanceof org.hibernate.search.annotations.Field ) {
      boost = ( (org.hibernate.search.annotations.Field) fieldAnn ).boost().value();
    }
    else if ( fieldAnn instanceof Spatial ) {
      boost = ( (Spatial) fieldAnn ).boost().value();
    }
    else {
      raiseAssertionOnIncorrectAnnotation( fieldAnn );
      boost = 0; //never reached
    }
    computedBoost *= boost;
  }
  return computedBoost;
}
origin: org.infinispan/infinispan-embedded-query

public static Float getBoost(XProperty member, Annotation fieldAnn) {
  float computedBoost = 1.0f;
  Boost boostAnn = member.getAnnotation( Boost.class );
  if ( boostAnn != null ) {
    computedBoost = boostAnn.value();
  }
  if ( fieldAnn != null ) {
    float boost;
    if ( fieldAnn instanceof org.hibernate.search.annotations.Field ) {
      boost = ( (org.hibernate.search.annotations.Field) fieldAnn ).boost().value();
    }
    else if ( fieldAnn instanceof Spatial ) {
      boost = ( (Spatial) fieldAnn ).boost().value();
    }
    else {
      raiseAssertionOnIncorrectAnnotation( fieldAnn );
      boost = 0; //never reached
    }
    computedBoost *= boost;
  }
  return computedBoost;
}
origin: hibernate/hibernate-search

.boost( spatialAnnotation.boost().value() )
.fieldBridge( spatialBridge )
.spatial();
origin: org.infinispan/infinispan-embedded-query

.boost( spatialAnnotation.boost().value() )
.fieldBridge( spatialBridge )
.spatial();
origin: hibernate/hibernate-search

    fieldPath, store, index, termVector
.boost( classBridgeAnnotation.boost().value() )
.fieldBridge( fieldBridge );
origin: org.infinispan/infinispan-embedded-query

    fieldPath, store, index, termVector
.boost( classBridgeAnnotation.boost().value() )
.fieldBridge( fieldBridge );
org.hibernate.search.annotationsBoostvalue

Popular methods of Boost

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now