SuggestResult.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.models;
import com.azure.search.documents.SearchDocument;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* A result containing a document found by a suggestion query, plus associated
* metadata.
*/
@Fluent
public final class SuggestResult {
/*
* Unmatched properties from the message are deserialized this collection
*/
@JsonProperty(value = "")
private SearchDocument additionalProperties;
/*
* The text of the suggestion result.
*/
@JsonProperty(value = "@search.text", required = true, access = JsonProperty.Access.WRITE_ONLY)
private String text;
/**
* Get the additionalProperties property: Unmatched properties from the
* message are deserialized this collection.
*
* @return the additionalProperties value.
*/
public SearchDocument getDocument() {
return this.additionalProperties;
}
/**
* Get the text property: The text of the suggestion result.
*
* @return the text value.
*/
public String getText() {
return this.text;
}
}