ClassicSimilarityAlgorithm.java

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. //
  4. // Code generated by Microsoft (R) AutoRest Code Generator.
  5. // Changes may cause incorrect behavior and will be lost if the code is
  6. // regenerated.
  7. package com.azure.search.documents.indexes.models;

  8. import com.azure.core.annotation.Immutable;
  9. import com.fasterxml.jackson.annotation.JsonProperty;
  10. import com.fasterxml.jackson.annotation.JsonTypeId;
  11. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  12. import com.fasterxml.jackson.annotation.JsonTypeName;

  13. /**
  14.  * Legacy similarity algorithm which uses the Lucene TFIDFSimilarity implementation of TF-IDF. This variation of TF-IDF
  15.  * introduces static document length normalization as well as coordinating factors that penalize documents that only
  16.  * partially match the searched queries.
  17.  */
  18. @JsonTypeInfo(
  19.         use = JsonTypeInfo.Id.NAME,
  20.         include = JsonTypeInfo.As.EXISTING_PROPERTY,
  21.         property = "@odata.type",
  22.         visible = true)
  23. @JsonTypeName("#Microsoft.Azure.Search.ClassicSimilarity")
  24. @Immutable
  25. public final class ClassicSimilarityAlgorithm extends SimilarityAlgorithm {

  26.     /*
  27.      * The @odata.type property.
  28.      */
  29.     @JsonTypeId
  30.     @JsonProperty(value = "@odata.type", required = true)
  31.     private String odataType = "#Microsoft.Azure.Search.ClassicSimilarity";
  32. }