View Source ArangoXEcto.Migration.Analyzer (ArangoX Ecto v2.0.0)

Used internally by the ArangoXEcto migration.

To define an analyzer in a migration, see ArangoXEcto.Migration.analyzer/4.

Summary

Types

feature()

@type feature() :: :frequency | :norm | :position

t()

@type t() :: %ArangoXEcto.Migration.Analyzer{
  features: feature(),
  name: String.t(),
  prefix: String.t() | nil,
  properties: map(),
  type: type()
}

type()

@type type() ::
  :identity
  | :delimiter
  | :stem
  | :norm
  | :ngram
  | :text
  | :collation
  | :aql
  | :pipeline
  | :stopwords
  | :segmentation
  | :minhash
  | :classification
  | :nearest_neighbors
  | :geojson
  | :geo_s2
  | :geopoint

Functions

new(name, type, features, properties \\ %{}, opts \\ [])

@spec new(atom() | String.t(), type(), [feature()], map(), [{:prefix, atom()}]) :: t()

Creates a new Analyzer struct