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

org.vertexium.query.SimilarToQueryParameters Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.query;

import org.vertexium.Authorizations;

public abstract class SimilarToQueryParameters extends QueryParameters {
    private final String[] fields;
    private Integer minTermFrequency;
    private Integer maxQueryTerms;
    private Integer minDocFrequency;
    private Integer maxDocFrequency;
    private Float boost;

    protected SimilarToQueryParameters(String[] fields, Authorizations authorizations) {
        super(authorizations);
        this.fields = fields;
    }

    public String[] getFields() {
        return fields;
    }

    public Integer getMinTermFrequency() {
        return minTermFrequency;
    }

    public void setMinTermFrequency(Integer minTermFrequency) {
        this.minTermFrequency = minTermFrequency;
    }

    public Integer getMaxQueryTerms() {
        return maxQueryTerms;
    }

    public void setMaxQueryTerms(Integer maxQueryTerms) {
        this.maxQueryTerms = maxQueryTerms;
    }

    public Integer getMinDocFrequency() {
        return minDocFrequency;
    }

    public void setMinDocFrequency(Integer minDocFrequency) {
        this.minDocFrequency = minDocFrequency;
    }

    public Integer getMaxDocFrequency() {
        return maxDocFrequency;
    }

    public void setMaxDocFrequency(Integer maxDocFrequency) {
        this.maxDocFrequency = maxDocFrequency;
    }

    public Float getBoost() {
        return boost;
    }

    public void setBoost(Float boost) {
        this.boost = boost;
    }

    @Override
    protected QueryParameters cloneTo(QueryParameters result) {
        ((SimilarToQueryParameters) result).minTermFrequency = getMinTermFrequency();
        ((SimilarToQueryParameters) result).maxQueryTerms = getMaxQueryTerms();
        ((SimilarToQueryParameters) result).minDocFrequency = getMinDocFrequency();
        ((SimilarToQueryParameters) result).maxDocFrequency = getMaxDocFrequency();
        ((SimilarToQueryParameters) result).boost = getBoost();
        return super.cloneTo(result);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy