/** * 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; }
/** * 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; }
@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; }
@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; }
@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; }
/** * 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(); }
@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; }
@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; }
@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; }
@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; }
/** * 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(); }
/** * 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; }
@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; }
@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; }
@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); }
/** * Returns the normalized string. * * @return the normalized string */ @Override @Fields({ @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO), @Field(name = "normalizedNameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO) }) @Analyzer(definition = "noStopWord") public String getNormalizedName() { return normalizedName; }
@XmlJavaTypeAdapter(ProjectRoleMapAdapter.class) @Fields({ @Field(bridge = @FieldBridge(impl = ProjectRoleBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO), @Field(name = "projectAnyRole", bridge = @FieldBridge(impl = MapIdBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO) }) @Override public Map<Project, UserRole> getProjectRoleMap() { if (projectRoleMap == null) { projectRoleMap = new HashMap<>(); } return projectRoleMap; }
/** * Returns the from name. * * @return the from name */ @Fields({ @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO, analyzer = @Analyzer(definition = "noStopWord")), @Field(name = "fromNameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO) }) public String getFromName() { return fromName; }
/** * Returns the descriptor id. * * @return the descriptor id */ @XmlElement @FieldBridge(impl = LongBridge.class) @Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO) public Long getDescriptorId() { return (descriptor != null) ? descriptor.getId() : 0; }
/** * Returns the node id. For JAXB. * * @return the node id */ @XmlElement @FieldBridge(impl = LongBridge.class) @Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO) public Long getNodeId() { return node == null ? null : node.getId(); }
@XmlJavaTypeAdapter(LocaleXmlAdapter.class) @Column(name = "locale", length = 20) @Field(store = Store.YES, index = Index.YES, analyze = Analyze.NO) @FieldBridge(impl = LocaleStringBridge.class) public Locale getLocale() { return locale.getLocale(); }
@Field(analyze = Analyze.YES) @Analyzer(definition = "custom") @Basic public String getAuthor() { return author; }
@Basic @Field(analyze = Analyze.YES) @Analyzer(definition = "custom") public String getTitle() { return title; }
@Basic @Field(analyze = Analyze.YES) public boolean isAvailable() { return available; }
@Temporal(TemporalType.DATE) @Field(analyze = Analyze.NO) @DateBridge(resolution = Resolution.DAY) public Date getPublished() { return published; }
@Basic @Field(analyze = Analyze.YES) @Analyzer(definition = "custom") public String getDescription() { return description; }
@Field(analyze = Analyze.YES) @Analyzer(definition = "custom") @Basic public String getGenre() { return genre; }
@Basic @Field(analyze = Analyze.YES) @Analyzer(definition = "custom") public String getLang() { return lang; }
@Basic @Analyzer(definition = "custom") @Field(analyze = Analyze.YES) public String getIsbn() { return isbn; }
@Field(analyze = Analyze.YES) @Analyzer(definition = "custom") @Basic public String getLocation() { return location; }
/** * Returns the project id. For JPA and JAXB. * * @return the project id */ @FieldBridge(impl = LongBridge.class) @Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO) public Long getProjectId() { return project == null ? null : project.getId(); }
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO) @Override public String getLastModifiedBy() { return lastModifiedBy; }
@Override @Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO) public String getLastModifiedBy() { return lastModifiedBy; }
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO) @Override public Date getLastModified() { return lastModified; }
@FieldBridge(impl = EnumBridge.class) @Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO) @Override public QueryStyle getQueryStyle() { return queryStyle; }
@Override @FieldBridge(impl = LongBridge.class) @Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO) public Long getObjectId() { return objectId; }