Elasticlunr.Dsl.Query behaviour (Elasticlunr v0.6.6) View Source

Link to this section Summary

Link to this section Types

Specs

score_results() :: [%{score: integer(), ref: Elasticlunr.Field.document_ref()}]

Link to this section Callbacks

Link to this callback

filter(module, index, options)

View Source

Specs

filter(module :: struct(), index :: Elasticlunr.Index.t(), options :: keyword()) ::
  list()
Link to this callback

parse(options, query_options, repo)

View Source

Specs

parse(options :: map(), query_options :: map(), repo :: module()) :: struct()

Specs

rewrite(module :: struct(), index :: Elasticlunr.Index.t()) :: struct()
Link to this callback

score(module, index, options)

View Source

Specs

score(module :: struct(), index :: Elasticlunr.Index.t(), options :: keyword()) ::
  score_results()
  | %Stream{accs: term(), done: term(), enum: term(), funs: term()}

Link to this section Functions

Specs

split_root(map() | tuple()) :: {atom(), any()} | any()