Class TextField

All Implemented Interfaces:
ISearchable, ITextSearchable

public class TextField extends SearchableField implements ITextSearchable
Represents any field in Atlan that can only be searched using text-related search operations.
  • Field Details

  • Constructor Details

    • TextField

      public TextField(String atlan, String text)
      Default constructor.
      Parameters:
      atlan - name of the attribute in the metastore
      text - name of the text field in the search index
  • Method Details

    • getTextFieldName

      public String getTextFieldName()
      Returns the name of the text field index for this attribute in Elastic.
      Specified by:
      getTextFieldName in interface ITextSearchable
      Returns:
      the field name for the text index on this attribute
    • match

      public co.elastic.clients.elasticsearch._types.query_dsl.Query match(String value)
      Returns a query that will textually match the provided value against the field. This analyzes the provided value according to the same analysis carried out on the field (for example, tokenization, stemming, and so on).
      Specified by:
      match in interface ITextSearchable
      Parameters:
      value - the string value to match against
      Returns:
      a query that will only match assets whose analyzed value for the field matches the value provided (which will also be analyzed)