当前位置: 首页>>代码示例>>Java>>正文


Java Analyze类代码示例

本文整理汇总了Java中org.hibernate.search.annotations.Analyze的典型用法代码示例。如果您正苦于以下问题:Java Analyze类的具体用法?Java Analyze怎么用?Java Analyze使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Analyze类属于org.hibernate.search.annotations包,在下文中一共展示了Analyze类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getUsername

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
/**
 * Gets username.
 *
 * @return the username
 */
@Field(index = org.hibernate.search.annotations.Index.YES, analyze = Analyze.YES, store = Store.NO)
@Analyzer(impl = KeywordAnalyzer.class)
public String getUsername()
{
    return username;
}
 
开发者ID:MTUHIDE,项目名称:CoCoTemp,代码行数:12,代码来源:User.java

示例2: getId

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
/**
 * Returns the id.
 *
 * @return the id
 */
/* see superclass */
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
@Override
public Long getId() {
  return id;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:13,代码来源:TypeKeyValueJpa.java

示例3: getComponentIds

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
@Field(bridge = @FieldBridge(impl = CollectionToCsvBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO)
@Override
public Set<Long> getComponentIds() {
  if (componentIds == null) {
    componentIds = new HashSet<>();
  }
  return componentIds;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:9,代码来源:TrackingRecordJpa.java

示例4: getAudit

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
@Type(type = "org.openyu.commons.entity.usertype.AuditEntityUserType")
@Column(name = "audit", length = 570)
@Field(store = Store.YES, index = Index.YES, analyze = Analyze.NO)
@FieldBridge(impl = AuditEntityBridge.class)
public AuditEntity getAudit() {
	return audit;
}
 
开发者ID:mixaceh,项目名称:openyu-commons,代码行数:8,代码来源:DogPoImpl.java

示例5: getReviewers

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
@Fields({
    @Field(bridge = @FieldBridge(impl = CollectionToCsvBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "reviewersSort", bridge = @FieldBridge(impl = MinValueBridge.class), index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
@Override
public List<String> getReviewers() {
  if (reviewers == null) {
    reviewers = new ArrayList<>();
  }
  return reviewers;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:12,代码来源:WorklistJpa.java

示例6: getToName

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
/**
 * Returns the to term. For JAXB.
 *
 * @return the to term
 */
@Fields({
    @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "toNameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
public String getToName() {
  return to == null ? null : to.getName();
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:13,代码来源:CodeRelationshipJpa.java

示例7: getName

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
@Override
@Fields({
    @Field(name = "name", index = Index.YES, store = Store.NO, analyze = Analyze.YES, analyzer = @Analyzer(definition = "noStopWord"), bridge = @FieldBridge(impl = SplitUnderscoreBridge.class)),
    @Field(name = "nameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
public String getName() {
  return name;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:9,代码来源:AbstractChecklist.java

示例8: getName

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
@Override
@Fields({
    @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "nameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
public String getName() {
  return name;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:9,代码来源:ProjectJpa.java

示例9: getUserRoleMap

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
@XmlJavaTypeAdapter(UserRoleMapAdapter.class)
@Fields({
    @Field(bridge = @FieldBridge(impl = UserRoleBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "userAnyRole", bridge = @FieldBridge(impl = UserMapUserNameBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO)
})
@Override
public Map<User, UserRole> getUserRoleMap() {
  if (userRoleMap == null) {
    userRoleMap = new HashMap<>();
  }
  return userRoleMap;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:13,代码来源:ProjectJpa.java

示例10: getAlternateTerminologyIds

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
@Override
@FieldBridge(impl = MapKeyValueToCsvBridge.class)
@Field(name = "alternateTerminologyIds", index = Index.YES, analyze = Analyze.YES, store = Store.NO)
public Map<String, String> getAlternateTerminologyIds() {
  if (alternateTerminologyIds == null) {
    alternateTerminologyIds = new HashMap<>(2);
  }
  return alternateTerminologyIds;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:10,代码来源:ConceptRelationshipJpa.java

示例11: getNodeName

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
/**
 * Returns the node name. For JAXB.
 *
 * @return the node name
 */
@Fields({
    @Field(name = "nodeName", index = Index.YES, store = Store.NO, analyze = Analyze.YES, analyzer = @Analyzer(definition = "noStopWord")),
    @Field(name = "nodeNameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
public String getNodeName() {
  return node == null ? null : node.getName();
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:13,代码来源:CodeTreePositionJpa.java

示例12: getWorklistId

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
/**
 * Returns the worklist id.
 *
 * @return the worklist id
 */
@XmlElement
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
public Long getWorklistId() {
  return (worklist != null) ? worklist.getId() : 0;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:12,代码来源:WorklistNoteJpa.java

示例13: getIdentityCode

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
@Override
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
public String getIdentityCode() {
  return additionalRelationshipType + fromId + fromTerminology + fromType
      + relationshipType + terminology + terminologyId + toId + toTerminology
      + toType;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:8,代码来源:RelationshipIdentityJpa.java

示例14: getName

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
@Override
@Fields({
    @Field(name = "name", index = Index.YES, store = Store.NO, analyze = Analyze.YES, analyzer = @Analyzer(definition = "noStopWord")),
    @Field(name = "nameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO),
    @Field(name = "edgeNGramName", index = Index.YES, store = Store.NO, analyze = Analyze.YES, analyzer = @Analyzer(definition = "autocompleteEdgeAnalyzer")),
    @Field(name = "nGramName", index = Index.YES, store = Store.NO, analyze = Analyze.YES, analyzer = @Analyzer(definition = "autocompleteNGramAnalyzer"))
})
public String getName() {
  return name;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:11,代码来源:AtomJpa.java

示例15: defineMappings

import org.hibernate.search.annotations.Analyze; //导入依赖的package包/类
@Override
public void defineMappings(Cache cache, SearchMapping searchMapping) {
    searchMapping.entity(GenericData.Record.class)
            .indexed()
            .classBridgeInstance(new ValueWrapperFieldBridge())
            .norms(Norms.NO)
            .analyze(Analyze.NO)
            .store(Store.NO);
}
 
开发者ID:leads-project,项目名称:infinispan-avro,代码行数:10,代码来源:SearchMappingProviderImpl.java


注:本文中的org.hibernate.search.annotations.Analyze类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。