nl.vpro.domain.api.suggest.update.QueryUpdate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-domain Show documentation
Show all versions of api-domain Show documentation
Contains the objects used by the Frontend API, like forms and result objects
/*
* Copyright (C) 2013 All rights reserved
* VPRO The Netherlands
*/
package nl.vpro.domain.api.suggest.update;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* This class represents a user search query (document) with extra fields specifically added for Elastic Searches completion
* suggester.
*
* @author Roelof Jan Koekoek
* @since 3.2
*/
public class QueryUpdate {
@JsonProperty
@NotNull
@Size(min = 1)
private String qid;
@JsonProperty
private String profile;
@JsonProperty
@NotNull
private SuggestUpdate suggest;
public String getQid() {
return qid;
}
public void setQid(String qid) {
this.qid = qid;
}
public String getProfile() {
return profile;
}
public void setProfile(String profile) {
this.profile = profile;
}
public SuggestUpdate getSuggest() {
return suggest;
}
public void setSuggest(SuggestUpdate suggest) {
this.suggest = suggest;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy