EctoTablestore.Migration.search_index

You're seeing just the function search_index, go back to EctoTablestore.Migration module for more information.
Link to this function

search_index(table_name, index_name, opts \\ [])

View Source

Returns a search index struct that can be given to create/2.

For more information see the Chinese Docs | English Docs

Examples

create search_index("posts", "posts_owner") do
  field_schema_keyword("title")
  field_schema_keyword("content")
  field_sort("title")
end

Please refer the link to the available field schema definition options, and the link to the available sort options.