View Source ExlasticSearch.TypeInference (exlasticsearch v2.3.0)

Default type inference implementation.

If you desire to override it, simply do:

defmodule MyTypeInference do
  use ExlasticSearch.TypeInference.Base

  def infer(CustomType), do: :text # or whatever you chose
  def infer(type), do: super(type)
end

Then configure it with config :exlasticsearch, :type_inference, MyTypeInference

Summary

Functions

infer(dt)

Callback implementation for ExlasticSearch.TypeInference.API.infer/1.