All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.domain.api.suggest.update.QueryUpdate Maven / Gradle / Ivy

Go to download

Contains the objects used by the Frontend API, like forms and result objects

There is a newer version: 8.3.3
Show newest version
/*
 * 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