-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[ISSUE #2442]Add algolia support #2443
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -57,9 +57,9 @@ search: true # true, false (default) | |||||||||||||
search_full_content: true # true, false (default) | ||||||||||||||
search_provider: algolia # lunr (default), algolia | ||||||||||||||
algolia: | ||||||||||||||
application_id: #QB6HVGBSBA # YOUR_APPLICATION_ID | ||||||||||||||
index_name: rocketmq-rust #minimal_mistakes # YOUR_INDEX_NAME | ||||||||||||||
search_only_api_key: #9d5014e5bbc77372547bce778dfa5663 # YOUR_SEARCH_ONLY_API_KEY | ||||||||||||||
application_id: A7P4XEL1X0 # YOUR_APPLICATION_ID | ||||||||||||||
#index_name: rocketmq-rust #minimal_mistakes # YOUR_INDEX_NAME | ||||||||||||||
search_only_api_key: db1ad68e86dd7d47a5988ab78dcc8347 # YOUR_SEARCH_ONLY_API_KEY | ||||||||||||||
Comment on lines
+60
to
+62
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Documentation: Add setup instructions for Algolia search To help other contributors and maintainers, please add documentation that covers:
Would you like me to help create a documentation template for the Algolia setup? While this is a search-only API key, it's still recommended to use environment variables for all API credentials. This prevents accidental exposure and makes it easier to manage different environments (development, staging, production). Replace the hardcoded values with environment variables: - application_id: A7P4XEL1X0 # YOUR_APPLICATION_ID
- #index_name: rocketmq-rust #minimal_mistakes # YOUR_INDEX_NAME
- search_only_api_key: db1ad68e86dd7d47a5988ab78dcc8347 # YOUR_SEARCH_ONLY_API_KEY
+ application_id: <%= ENV['ALGOLIA_APPLICATION_ID'] %>
+ index_name: <%= ENV['ALGOLIA_INDEX_NAME'] %>
+ search_only_api_key: <%= ENV['ALGOLIA_SEARCH_ONLY_API_KEY'] %> Additionally, please:
📝 Committable suggestion
Suggested change
|
||||||||||||||
powered_by: true # true (default), false | ||||||||||||||
files_to_exclude: | ||||||||||||||
- _posts/2017-11-28-post-exclude-search.md | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configuration: Uncomment and set the index_name
The
index_name
is currently commented out, which will prevent Algolia search from working correctly. This value is required for the search functionality to work.