Tabnine Logo
Boost.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.hibernate.search.annotations.Boost
constructor

Best Java code snippets using org.hibernate.search.annotations.Boost.<init> (Showing top 20 results out of 315)

origin: openmrs/openmrs-core

    @Field(name = "givenNameExact", analyzer = @Analyzer(definition = LuceneAnalyzers.EXACT_ANALYZER), boost = @Boost(8f)),
    @Field(name = "givenNameStart", analyzer = @Analyzer(definition = LuceneAnalyzers.START_ANALYZER), boost = @Boost(4f)),
    @Field(name = "givenNameAnywhere", analyzer = @Analyzer(definition = LuceneAnalyzers.ANYWHERE_ANALYZER), boost = @Boost(2f))
})
private String givenName;
    @Field(name = "middleNameExact", analyzer = @Analyzer(definition = LuceneAnalyzers.EXACT_ANALYZER), boost = @Boost(4f)),
    @Field(name = "middleNameStart", analyzer = @Analyzer(definition = LuceneAnalyzers.START_ANALYZER), boost = @Boost(2f)),
    @Field(name = "middleNameAnywhere", analyzer = @Analyzer(definition = LuceneAnalyzers.ANYWHERE_ANALYZER))
})
    @Field(name = "familyNameExact", analyzer = @Analyzer(definition = LuceneAnalyzers.EXACT_ANALYZER), boost = @Boost(8f)),
    @Field(name = "familyNameStart", analyzer = @Analyzer(definition = LuceneAnalyzers.START_ANALYZER), boost = @Boost(4f)),
    @Field(name = "familyNameAnywhere", analyzer = @Analyzer(definition = LuceneAnalyzers.ANYWHERE_ANALYZER), boost = @Boost(2f)),
})
private String familyName;
    @Field(name = "familyName2Exact", analyzer = @Analyzer(definition = LuceneAnalyzers.EXACT_ANALYZER), boost = @Boost(4f)),
    @Field(name = "familyName2Start", analyzer = @Analyzer(definition = LuceneAnalyzers.START_ANALYZER), boost = @Boost(2f)),
    @Field(name = "familyName2Anywhere", analyzer = @Analyzer(definition = LuceneAnalyzers.ANYWHERE_ANALYZER)),
})
origin: openmrs/openmrs-core

    @Field(name = "valuePhrase", analyzer = @Analyzer(definition = LuceneAnalyzers.PHRASE_ANALYZER), boost = @Boost(8f)),
    @Field(name = "valueExact", analyzer = @Analyzer(definition = LuceneAnalyzers.EXACT_ANALYZER), boost = @Boost(4f)),
    @Field(name = "valueStart", analyzer = @Analyzer(definition = LuceneAnalyzers.START_ANALYZER), boost = @Boost(2f)),
    @Field(name = "valueAnywhere", analyzer = @Analyzer(definition = LuceneAnalyzers.ANYWHERE_ANALYZER))
})
origin: openmrs/openmrs-core

    @Field(name = "identifierPhrase", analyzer = @Analyzer(definition = LuceneAnalyzers.PHRASE_ANALYZER), boost = @Boost(8f)),
    @Field(name = "identifierExact", analyzer = @Analyzer(definition = LuceneAnalyzers.EXACT_ANALYZER), boost = @Boost(4f)),
    @Field(name = "identifierStart", analyzer = @Analyzer(definition = LuceneAnalyzers.START_ANALYZER), boost = @Boost(2f)),
    @Field(name = "identifierAnywhere", analyzer = @Analyzer(definition = LuceneAnalyzers.ANYWHERE_ANALYZER))
})
origin: hibernate/hibernate-search

@Boost(2.0F)
@Field(store = Store.YES, boost = @Boost(2.0F))
public String getDescription() {
  return description;
}
origin: hibernate/hibernate-search

@Field(store = Store.YES)
@Boost(2)
public String getTitle() {
  return title;
}
origin: hibernate/hibernate-search

@Field(name = "alt_title", store = Store.YES)
@Boost(2)
public String getTitle() {
  return title;
}
origin: hibernate/hibernate-search

@Boost(2.0F)
@Field(store = Store.YES)
public String getDescription() {
  return description;
}
origin: hibernate/hibernate-search

@Field(store = Store.YES, boost = @Boost(2.0F))
public String getDescription() {
  return description;
}
origin: hibernate/hibernate-search

@Field(store = Store.YES, termVector = TermVector.WITH_POSITION_OFFSETS, boost = @Boost(23f) )
public String getName() { return name; }
public void setName(String name) { this.name = name; }
origin: com.silicolife.textmining/core

@Fields( {
  @Field(index=Index.YES, analyze=Analyze.NO, store=Store.NO),
  @Field(name = "keywordEdgeNGram_syn_synonym", index = Index.YES, store = Store.NO,
  analyze = Analyze.YES, analyzer = @Analyzer(definition = "keywordEdgeAnalyzer"), boost = @Boost(2)),
  @Field(name = "tokenEdgeNGram_syn_synonym", index = Index.YES, store = Store.NO,
  analyze = Analyze.YES, analyzer = @Analyzer(definition = "tokenEdgeAnalyzer"))
})
@Column(name = "syn_synonym", nullable = false, length = 500)
public String getSynSynonym() {
  return this.synSynonym;
}
origin: com.silicolife.textmining/core

@Fields( {
  @Field(index=Index.YES, analyze=Analyze.NO, store=Store.NO),
  @Field(name = "keywordEdgeNGram_res_element", index = Index.YES, store = Store.NO,
  analyze = Analyze.YES, analyzer = @Analyzer(definition = "keywordEdgeAnalyzer"), boost = @Boost(2)),
  @Field(name = "tokenEdgeNGram_res_element", index = Index.YES, store = Store.NO,
  analyze = Analyze.YES, analyzer = @Analyzer(definition = "tokenEdgeAnalyzer"))
})
@Column(name = "res_element", nullable = false, length = 500)
public String getResElement() {
  return this.resElement;
}
origin: hibernate/hibernate-search

@Boost(1.5f)
private String name;
origin: hibernate/hibernate-search

@Boost(0.7F)
public class LocalizedTitle {
origin: hibernate/hibernate-search

@Boost(4.0F) // rank title hits twice as important as description
private Title title;
origin: hibernate/hibernate-search

/**
 * @author Hardy Ferentschik
 */
@Indexed
@Boost(42.0f)
@DynamicBoost(impl = Fubar.DoublingBoost.class)
public class Fubar {
  @DocumentId
  private long id;

  public static class DoublingBoost implements BoostStrategy {
    @Override
    public float defineBoost(Object value) {
      return 2.0f;
    }
  }
}

origin: hibernate/hibernate-search

@Boost(0.5F) // rank sub-title hits a bit lower than the main title
private SubTitle subTitle;
origin: hibernate/hibernate-search

@Boost(2)
private String title;
origin: hibernate/hibernate-search

@Boost(2)
private String title;
origin: hibernate/hibernate-search

@Boost(2.0f)
@Analyzer(definition = "textAnalyzer")
private String title;
origin: hibernate/hibernate-search

    norms = Norms.NO,
    termVector = TermVector.WITH_POSITIONS,
    boost = @Boost(10.0f))
private String snafu;
org.hibernate.search.annotationsBoost<init>

Popular methods of Boost

  • value

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JOptionPane (javax.swing)
  • Top plugins for Android Studio
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