-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #291 from philomena-dev/typedoc
Documentation updates
- Loading branch information
Showing
18 changed files
with
142 additions
and
33 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
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
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,5 +1,8 @@ | ||
defmodule PhilomenaMedia.Analyzers.Analyzer do | ||
@moduledoc false | ||
|
||
@doc """ | ||
Generate a `m:PhilomenaMedia.Analyzers.Result` for file at the given path. | ||
""" | ||
@callback analyze(Path.t()) :: PhilomenaMedia.Analyzers.Result.t() | ||
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
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
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,11 +1,34 @@ | ||
defmodule PhilomenaQuery.SearchIndex do | ||
# Returns the index name for the index. | ||
# This is usually a collection name like "images". | ||
@moduledoc """ | ||
Behaviour module for schemas with search indexing. | ||
""" | ||
|
||
@doc """ | ||
Returns the index name for the index. | ||
This is usually a collection name like "images". | ||
See https://opensearch.org/docs/latest/api-reference/index-apis/create-index/ for | ||
reference on index naming restrictions. | ||
""" | ||
@callback index_name() :: String.t() | ||
|
||
# Returns the mapping and settings for the index. | ||
@doc """ | ||
Returns the mapping and settings for the index. | ||
See https://opensearch.org/docs/latest/api-reference/index-apis/put-mapping/ for | ||
reference on the mapping syntax, and the following pages for which types may be | ||
used in mappings: | ||
- https://opensearch.org/docs/latest/field-types/ | ||
- https://opensearch.org/docs/latest/analyzers/index-analyzers/ | ||
""" | ||
@callback mapping() :: map() | ||
|
||
# Returns the JSON representation of the given struct for indexing in OpenSearch. | ||
@doc """ | ||
Returns the JSON representation of the given struct for indexing in OpenSearch. | ||
See https://opensearch.org/docs/latest/api-reference/document-apis/index-document/ for | ||
reference on how this value is used. | ||
""" | ||
@callback as_json(struct()) :: map() | ||
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
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