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

com.microsoft.semantickernel.data.textsearch.TextSearch Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.data.textsearch;

import reactor.core.publisher.Mono;

public interface TextSearch {

    /**
     * Perform a search for content related to the specified query and return String values representing the search results.
     *
     * @param query   The text to search for.
     * @param options The search options.
     * @return The search results.
     */
    Mono> searchAsync(String query, TextSearchOptions options);

    /**
     * Perform a search for content related to the specified query and return TextSearchResult values representing the search results.
     *
     * @param query   The text to search for.
     * @param options The search options.
     * @return The search results.
     */
    Mono> getTextSearchResultsAsync(String query,
        TextSearchOptions options);

    /**
     * Perform a search for content related to the specified query and return Object values representing the search results.
     *
     * @param query   The text to search for.
     * @param options The search options.
     * @return The search results.
     */
    Mono> getSearchResultsAsync(String query,
        TextSearchOptions options);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy