Skip to content

Commit f6e6d15

Browse files
committed
chore: update modules docs
1 parent c1be744 commit f6e6d15

19 files changed

+1
-33
lines changed

lib/elasticlunr/core/document_store.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.DocumentStore do
2-
@moduledoc false
3-
42
alias Elasticlunr.Index
53

64
defstruct save: true, documents: %{}, document_info: %{}, length: 0

lib/elasticlunr/core/field.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.Field do
2-
@moduledoc false
3-
42
alias Elasticlunr.{Index, Pipeline, Token, Utils}
53

64
@fields ~w[pipeline query_pipeline store store_positions flnorm tf idf ids documents terms]a

lib/elasticlunr/core/index.ex

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ defmodule Elasticlunr.Index.IdPipeline do
1212
end
1313

1414
defmodule Elasticlunr.Index do
15-
@moduledoc false
16-
1715
alias Elasticlunr.{Field, Pipeline, Token}
1816
alias Elasticlunr.Index.IdPipeline
1917
alias Elasticlunr.Dsl.{Query, QueryRepository}

lib/elasticlunr/core/token.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.Token do
2-
@moduledoc false
3-
42
defstruct ~w[token metadata]a
53

64
@type t :: %__MODULE__{

lib/elasticlunr/dsl/query.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.Dsl.Query do
2-
@moduledoc false
3-
42
alias Elasticlunr.{Index, Dsl.QueryRepository}
53

64
@type score_results ::

lib/elasticlunr/dsl/query/bool_query.ex

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
defmodule Elasticlunr.Dsl.BoolQuery do
2-
@moduledoc false
32
use Elasticlunr.Dsl.Query
43

54
alias Elasticlunr.Index

lib/elasticlunr/dsl/query/match_all_query.ex

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
defmodule Elasticlunr.Dsl.MatchAllQuery do
2-
@moduledoc false
32
use Elasticlunr.Dsl.Query
43

54
alias Elasticlunr.Index

lib/elasticlunr/dsl/query/match_query.ex

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
defmodule Elasticlunr.Dsl.MatchQuery do
2-
@moduledoc false
32
use Elasticlunr.Dsl.Query
43

54
alias Elasticlunr.{Index, Dsl.QueryRepository}

lib/elasticlunr/dsl/query/not_query.ex

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
defmodule Elasticlunr.Dsl.NotQuery do
2-
@moduledoc false
32
use Elasticlunr.Dsl.Query
43

54
alias Elasticlunr.Index

lib/elasticlunr/dsl/query/terms_query.ex

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
defmodule Elasticlunr.Dsl.TermsQuery do
2-
@moduledoc false
32
use Elasticlunr.Dsl.Query
43

54
alias Elasticlunr.{Index, Token}

lib/elasticlunr/dsl/query_repository.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.Dsl.QueryRepository do
2-
@moduledoc false
3-
42
alias Elasticlunr.Dsl.{BoolQuery, MatchAllQuery, MatchQuery, NotQuery, TermsQuery}
53

64
def get(:not), do: NotQuery

lib/elasticlunr/manager/index_manager.ex

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
defmodule Elasticlunr.IndexManager do
2-
@moduledoc false
32
use GenServer
43

54
alias Elasticlunr.{Index, IndexRegistry, IndexSupervisor}

lib/elasticlunr/pipeline.ex

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
defmodule Elasticlunr.Pipeline do
2-
@moduledoc false
3-
42
alias Elasticlunr.{Token, Tokenizer}
53
alias Elasticlunr.Pipeline.{Stemmer, StopWordFilter, Trimmer}
64

75
defstruct callback: []
86

97
@type t :: %__MODULE__{
10-
callback: list()
8+
callback: list(module() | function())
119
}
1210

1311
@callback call(Token.t()) :: Token.t() | list(Token.t()) | nil

lib/elasticlunr/pipeline/stemmer.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.Pipeline.Stemmer do
2-
@moduledoc false
3-
42
alias Elasticlunr.Token
53

64
@behaviour Elasticlunr.Pipeline

lib/elasticlunr/pipeline/stop_word_filter.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.Pipeline.StopWordFilter do
2-
@moduledoc false
3-
42
alias Elasticlunr.Token
53

64
@behaviour Elasticlunr.Pipeline

lib/elasticlunr/pipeline/trimmer.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.Pipeline.Trimmer do
2-
@moduledoc false
3-
42
alias Elasticlunr.Token
53

64
@behaviour Elasticlunr.Pipeline

lib/elasticlunr/tokenizer.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.Tokenizer do
2-
@moduledoc false
3-
42
alias Elasticlunr.Token
53

64
@default_separator ~r/[\s\-]+/

lib/elasticlunr/utils/process.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.Utils.Process do
2-
@moduledoc false
3-
42
@spec child_pid?(tuple, atom) :: boolean
53
def child_pid?({:undefined, pid, :worker, [mod]}, mod) when is_pid(pid), do: true
64
def child_pid?(_child, _module), do: false

lib/elasticlunr/utlis.ex

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
defmodule Elasticlunr.Utils do
2-
@moduledoc false
3-
42
@spec levenshtein_distance(binary, binary) :: integer()
53
def levenshtein_distance(a, b) do
64
ta = String.downcase(a) |> to_charlist |> List.to_tuple()

0 commit comments

Comments
 (0)