本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}