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

io.github.meilisearch.client.querybuilder.search.DefaultGetDocumentIgnoreNotFound Maven / Gradle / Ivy

package io.github.meilisearch.client.querybuilder.search;

import java.util.List;
import java.util.Objects;

public class DefaultGetDocumentIgnoreNotFound extends BaseGet implements GetDocumentIgnoreNotFound{

    public DefaultGetDocumentIgnoreNotFound(String index, String documentId) {
        super("/indexes/"+index+"/"+"documents/"+documentId);
        Objects.requireNonNull(documentId, "When getting by document id, must give a value");
    }

    @Override
    public GetDocumentIgnoreNotFound fetchOnly(List fields) {
        this.fields = String.join(",", fields);
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy