org.hibernate.search.annotations.Analyzer.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(8.3k)|赞(0)|评价(0)|浏览(116)

本文整理了Java中org.hibernate.search.annotations.Analyzer.<init>()方法的一些代码示例,展示了Analyzer.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.<init>()方法的具体详情如下:
包路径:org.hibernate.search.annotations.Analyzer
类名称:Analyzer
方法名:<init>

Analyzer.<init>介绍

暂无

代码示例

代码示例来源: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))
})
private String middleName;
    @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)),
})
private String familyName2;

代码示例来源: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))
})
private String value;

代码示例来源: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))
})
private String identifier;

代码示例来源:origin: zanata/zanata-platform

@NotNull
@Size(max = 500)
@Field(analyzer = @Analyzer(impl = StandardAnalyzer.class))
public String getContent() {
  return content;
}

代码示例来源:origin: com.silicolife.textmining/core

@Fields(value = { 
    @Field(name="authorsCS",index=Index.YES, analyze=Analyze.YES, analyzer = @Analyzer(definition="KeywordsSplitter"), store=Store.NO),
    @Field(name="authorsNCS",index=Index.YES, analyze=Analyze.YES,analyzer = @Analyzer(definition="toLowerCase"), store=Store.NO)			
})
@Column(name = "pub_authors", length = 65535)
public String getPubAuthors() {
  return this.pubAuthors;
}

代码示例来源:origin: com.silicolife.textmining/core

@Fields(value = { 
    @Field(name="notesCS",index=Index.YES, analyze=Analyze.YES, analyzer = @Analyzer(definition="KeywordsSplitter"), store=Store.NO),
    @Field(name="notesNCS",index=Index.YES, analyze=Analyze.YES,analyzer = @Analyzer(definition="toLowerCase"), store=Store.NO)			
})
@Column(name = "pub_notes", length = 65535)
public String getPubNotes() {
  return this.pubNotes;
}

代码示例来源:origin: com.silicolife.textmining/core

@Fields(value = { 
    @Field(name="titleCS",index=Index.YES, analyze=Analyze.YES, analyzer = @Analyzer(definition="KeywordsSplitter"), store=Store.NO),
    @Field(name="titleNCS",index=Index.YES, analyze=Analyze.YES,analyzer = @Analyzer(definition="toLowerCase"), store=Store.NO)			
})

@Column(name = "pub_title", length = 65535)
public String getPubTitle() {
  return this.pubTitle;
}

代码示例来源:origin: com.silicolife.textmining/core

@Fields(value = { 
    @Field(name="journalCS",index=Index.YES, analyze=Analyze.YES, analyzer = @Analyzer(definition="KeywordsSplitter"), store=Store.NO),
    @Field(name="journalNCS",index=Index.YES, analyze=Analyze.YES,analyzer = @Analyzer(definition="toLowerCase"), store=Store.NO)			
})
@Column(name = "pub_journal", length = 500)
public String getPubJournal() {
  return this.pubJournal;
}

代码示例来源:origin: openmrs/openmrs-core

@AnalyzerDef(name = "ConceptNameAnalyzer", tokenizer = @TokenizerDef(factory = StandardTokenizerFactory.class), filters = {
    @TokenFilterDef(factory = StandardFilterFactory.class), @TokenFilterDef(factory = LowerCaseFilterFactory.class) })
@Analyzer(definition = "ConceptNameAnalyzer")
public class ConceptName extends BaseOpenmrsObject implements Auditable, Voidable, java.io.Serializable {

代码示例来源:origin: hibernate/hibernate-search

/**
 * @author Hardy Ferentschik
 */
@Indexed
@Analyzer(impl = TurkishAnalyzer.class)
public class SubClass extends BaseClass {
  public SubClass(Integer id) {
    super( id );
  }
}

代码示例来源:origin: sanluan/PublicCMS

@DynamicUpdate
@AnalyzerDef(name = "cms", tokenizer = @TokenizerDef(factory = MultiTokenizerFactory.class))
@Analyzer(definition = "cms") // Comment this line to enable elasticsearch

代码示例来源:origin: sanluan/PublicCMS

@DynamicUpdate
@AnalyzerDef(name = "cms", tokenizer = @TokenizerDef(factory = MultiTokenizerFactory.class))
@Analyzer(definition = "cms") // Comment this line to enable elasticsearch

代码示例来源:origin: hibernate/hibernate-search

@Fields({
    @Field,
    @Field(name = "mythology_stem", analyzer = @Analyzer(definition = "stemmer")),
    @Field(name = "mythology_ngram", analyzer = @Analyzer(definition = "ngram")),
    // This field must exist in order for tests to pass with the Elasticsearch integration... See HSEARCH-2534
    @Field(name = "mythology_same_base_as_ngram", analyzer = @Analyzer(definition = "same_base_as_ngram")),
    @Field(name = "mythology_normalized", normalizer = @Normalizer(definition = "lower"))
})
public String getMythology() {
  return mythology;
}

代码示例来源:origin: hibernate/hibernate-search

@Indexed
@ClassBridge(name = "classField", impl = BarBridge.class, analyzer = @Analyzer(impl = AnalyzerForTests1.class))
public static class Bar {
  @DocumentId
  private Integer id;
  public Bar(Integer id) {
    this.id = id;
  }
}

代码示例来源:origin: hibernate/hibernate-search

@Fields({
    @Field,
    @Field(name = "htmlDescription_htmlStrip", analyzer = @Analyzer(definition = "htmlStrip"))
})
public String getHtmlDescription() {
  return htmlDescription;
}

代码示例来源:origin: hibernate/hibernate-search

@Indexed
static class CustomAnalyzer2Entity {
  @DocumentId
  long id;
  @Field(analyzer = @Analyzer(definition = CUSTOM_ANALYZER_2_NAME))
  @Field(name = "normalized", normalizer = @Normalizer(definition = CUSTOM_NORMALIZER_2_NAME))
  String field;
}

代码示例来源:origin: hibernate/hibernate-search

@Indexed
static class CustomAnalyzerEntity {
  @DocumentId
  long id;
  @Field(analyzer = @Analyzer(definition = CUSTOM_ANALYZER_NAME))
  @Field(name = "normalized", normalizer = @Normalizer(definition = CUSTOM_NORMALIZER_NAME))
  String field;
}

代码示例来源:origin: hibernate/hibernate-search

@Indexed
static class CustomAnalyzerEntity {
  @DocumentId
  long id;
  @Field(analyzer = @Analyzer(definition = CUSTOM_ANALYZER_NAME))
  @Field(name = "normalized", normalizer = @Normalizer(definition = CUSTOM_NORMALIZER_NAME))
  String field;
}

代码示例来源:origin: hibernate/hibernate-search

@Indexed
static class CustomAnalyzer2Entity {
  @DocumentId
  long id;
  @Field(analyzer = @Analyzer(definition = CUSTOM_ANALYZER_2_NAME))
  @Field(name = "normalized", normalizer = @Normalizer(definition = CUSTOM_NORMALIZER_2_NAME))
  String field;
}

代码示例来源:origin: hibernate/hibernate-search

@Indexed
@AnalyzerDef(name = "tokenizing_analyzer", tokenizer = @TokenizerDef(factory = WhitespaceTokenizerFactory.class))
static class SampleWithTokenizedSortableField {
  @DocumentId
  long id;
  @Field(analyzer = @Analyzer(definition = "tokenizing_analyzer"))
  @SortableField
  String sortableField;
}

相关文章