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

com.hp.autonomy.searchcomponents.idol.answer.ask.AskAnswerServerRequest Maven / Gradle / Ivy

/*
 * Copyright 2015 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

package com.hp.autonomy.searchcomponents.idol.answer.ask;

import com.hp.autonomy.searchcomponents.core.requests.RequestObject;
import com.hp.autonomy.types.requests.idol.actions.answer.params.AskSortParam;

import java.util.Map;
import java.util.Set;

/**
 * Options for interacting with {@link AskAnswerServerService}
 */
@SuppressWarnings("WeakerAccess")
public interface AskAnswerServerRequest extends RequestObject {
    /**
     * The query text
     *
     * @return The query text
     */
    String getText();

    /**
     * Sort criteria
     *
     * @return Sort criteria
     */
    AskSortParam getSort();

    /**
     * The systems behind AnswerServer to query
     *
     * @return The systems to query
     */
    Set getSystemNames();

    /**
     * The first result to return (allows pagination)
     *
     * @return The index of the first result to return
     */
    Integer getFirstResult();

    /**
     * The maximum number of results to return
     *
     * @return The maximum number of results to return
     */
    Integer getMaxResults();

    /**
     * The score threshold for returned results
     *
     * @return The score threshold for returned results
     */
    Double getMinScore();

    /**
     * The customization data, if any
     *
     * @return The customization data
     */
    String getCustomizationData();

    /**
     * The proxied parameters, if any.
     * (you have to configure [Server] AllowedQueryParameters in Answer Server to pass them through).
     * @return
     */
    Map getProxiedParams();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy