exlasticsearch v1.2.0 ExlasticSearch.TypeInference View Source
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
Link to this section Summary
Functions
Callback implementation for ExlasticSearch.TypeInference.API.infer/1
Link to this section Functions
Callback implementation for ExlasticSearch.TypeInference.API.infer/1
.