-
Notifications
You must be signed in to change notification settings - Fork 7
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 #177 from zeus-fyi/add-search-indexer-docs
Add search indexer docs
- Loading branch information
Showing
7 changed files
with
107 additions
and
4 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
apps/docusaurus/zeusfyi/docs/mockingbird/actions/_category_.json
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
2 changes: 1 addition & 1 deletion
2
apps/docusaurus/zeusfyi/docs/mockingbird/builder/_category_.json
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
8 changes: 8 additions & 0 deletions
8
apps/docusaurus/zeusfyi/docs/mockingbird/search/_category_.json
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"label": "Search", | ||
"position": 4, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "How to mock, preview, and index data." | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
apps/docusaurus/zeusfyi/docs/mockingbird/search/indexer.md
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
sidebar_position: 2 | ||
displayed_sidebar: mockingbird | ||
--- | ||
|
||
# Indexer | ||
|
||
The indexers will use your search parameters and accounts to create a time series of the fetched data every few minutes. | ||
It only requests the latest data since the last time it was run, and should not fetch the same data twice within the | ||
same search group. The indexer will also store the data in the database for archiving and retrieval. | ||
|
||
|
||
![SScreM](https://github.com/zeus-fyi/zeus/assets/17446735/7026105b-f2bc-462e-8e7b-9c9ddd99d062) | ||
|
||
Set the Twitter API OAuth2 credentials in the platform secrets to start indexing tweets, | ||
then set the platform search query using the v2 Twitter search API format. | ||
|
||
### Platform Search Query | ||
|
||
![ScreenshotM](https://github.com/zeus-fyi/zeus/assets/17446735/067a6fc7-8b0c-4687-8c79-747c9f09ce58) | ||
|
||
![ScreensM](https://github.com/zeus-fyi/zeus/assets/17446735/d862eaac-2462-4ce2-b0ca-09f97df714fc) | ||
|
||
![ScrM](https://github.com/zeus-fyi/zeus/assets/17446735/a411ed5b-9981-4b72-a819-50f8f25adf2b) | ||
|
||
![Screensh2PM](https://github.com/zeus-fyi/zeus/assets/17446735/87528c34-8b1d-4813-9af8-c062eabbbc6b) | ||
|
||
![ScrM](https://github.com/zeus-fyi/zeus/assets/17446735/6a11c27e-a28b-417a-a34a-8a677df07b27) | ||
|
||
Full | ||
Documentation: https://developer.twitter.com/en/docs/twitter-api/tweets/search/api-reference/get-tweets-search-recent | ||
|
||
|
||
![SScreM](https://github.com/zeus-fyi/zeus/assets/17446735/7026105b-f2bc-462e-8e7b-9c9ddd99d062) | ||
|
||
Set the Reddit API OAuth2 credentials, user, and password, in the platform secrets to start indexing subreddits. | ||
Also set the routing table as well for reddit retrievals/api calls. If you don't want to use your primary reddit | ||
account, that's fine, you can create a new account and use that for the API credentials as well. | ||
|
||
![S](https://github.com/zeus-fyi/zeus/assets/17446735/d2ca5fe5-b191-42fc-a769-ee4f9ca4aaf3) | ||
|
||
## Activate / Deactivate Indexing | ||
|
||
![ScrM](https://github.com/zeus-fyi/zeus/assets/17446735/b9bb2c6e-58b3-467e-b45a-c59a7bf067e2) | ||
|
||
Select the relevant search query row, and click the Activate/Deactivate button to start/stop indexing data. |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
sidebar_position: 1 | ||
displayed_sidebar: mockingbird | ||
--- | ||
|
||
# Search | ||
|
||
This section allows you to preview and mock API retrievals, and search indexer results, that you can filter | ||
and sort by date, and filter by negative and positive keywords. | ||
|
||
### Search Response Format | ||
|
||
Timestamp | Platform | Tweet Body | ||
|
||
### Global Indexer Search | ||
|
||
![ScreenM](https://github.com/zeus-fyi/zeus/assets/17446735/bf809410-2fcd-4462-b73a-ac7688b12189) | ||
|
||
Leaving platform and groups blank will search all platforms and groups you are indexing over the given time period. | ||
|
||
|
||
![ScM](https://github.com/zeus-fyi/zeus/assets/17446735/f5d6c195-d1a4-49a9-aae3-6f6b234f1cf6) | ||
|
||
### Search Response Format | ||
|
||
Timestamp | Platform | Tweet Body | ||
|
||
|
||
![Scrd](https://github.com/zeus-fyi/zeus/assets/17446735/9ee60b2f-d9b9-4ab7-b3b1-311ad2956108) | ||
|
||
### Search Response Format | ||
|
||
Timestamp | Platform | Subreddit | Post ID | Author | URL | Title | Body | ||
|
||
Though it may contain additional field headers for now as we evaluate which should be the defaults, | ||
the search response format will always include the timestamp, platform, and the body of the post. | ||
|
||
## API Retrieval Mocking | ||
|
||
Here you can verify the API calls using the API platform option and setting the route path. It will | ||
use your authentication credentials to make the API call, if any are set in the platform secrets for the table, | ||
and return the response. | ||
|
||
![Sc](https://github.com/zeus-fyi/zeus/assets/17446735/5839a764-8aec-4cf5-9313-1615a3ebfe5a) | ||
|