-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
List of changes: - add badges for quick links to essential module info - add license to generated HTML doc - bump ex_doc to latest version - fix typo via `codespell` - fix wordings and Markdown
- Loading branch information
Showing
20 changed files
with
161 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
MIT License | ||
# MIT License | ||
|
||
Copyright (c) 2018 Frame.io | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
defprotocol ExlasticSearch.Indexable do | ||
@moduledoc """ | ||
Protocol for converting Ecto structs to ES-compatible maps. `ExlasticSearch.Repo` uses | ||
this internally to effect any conversion prior to communicating with elasticsearch itself | ||
Protocol for converting Ecto structs to ES-compatible maps. | ||
`ExlasticSearch.Repo` uses this internally to effect any conversion prior to communicating with Elasticsearch itself. | ||
""" | ||
|
||
@doc "ES record id" | ||
@doc "ES record id." | ||
@spec id(struct) :: binary | ||
def id(_) | ||
|
||
@doc "Properties map to be inserted into ES" | ||
@doc "Properties map to be inserted into ES." | ||
@spec document(struct, atom) :: map | ||
def document(_, _) | ||
|
||
@doc "Properties map to be inserted into ES" | ||
@doc "Properties map to be inserted into ES." | ||
@spec document(struct) :: map | ||
def document(_) | ||
|
||
@doc "Any preloads needed to call `document/2`" | ||
@doc "Any preloads needed to call `document/2`." | ||
@spec preload(struct, atom) :: struct | ||
def preload(_, _) | ||
|
||
@doc "Any preloads needed to call `document/2`" | ||
@doc "Any preloads needed to call `document/2`." | ||
@spec preload(struct) :: struct | ||
def preload(_) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.