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

Link to this section Summary

Link to this section Types

Specs

options() :: any()

Specs

score_results() :: [%{score: integer(), ref: Elasticlunr.Index.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 :: options()) ::
  list()
Link to this callback

parse(options, query_options, repo)

View Source

Specs

parse(options :: keyword(), query_options :: keyword(), 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 :: options()) ::
  score_results()

Link to this section Functions

Specs

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