You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/08/22 18:26:17 UTC

[GitHub] [iceberg-docs] samredai opened a new pull request, #144: [main] Add workflow for merging search indexes

samredai opened a new pull request, #144:
URL: https://github.com/apache/iceberg-docs/pull/144

   Since the landing-page and docs site are separate sites, they each generate their own search index. Currently these are generated in `./search.json` and `./docs/latest/search.json` in the `asf-site` branch.
   
   This adds a workflow that can be run manually (`on: workflow_dispatch`) to merge these two search indexes into a single `./search.json` file that contains the index for both sites. It also renames the initially generated indexes to `landingpagesearch.json` and `docssearch.json` so as to make the merging idempotent.
   
   To show an example of how this works, I put together this small repo [merge-json-example](https://github.com/samredai/merge-json-example) and you can go to the Actions tab to see a run of the workflow. It combines a `./landingpagesearch.json` containing `[{"a": "b"}, {"c": "d"}]` with a `./docs/latest/docssearch.json` containing `[{"e": "f"}, {"g": "h"}]` into a `./search.json` file containing `[{"a": "b"}, {"c": "d"}, {"e": "f"}, {"g": "h"}]` (on the asf-site branch).
   
   Before running this workflow, this PR as well as the PR #143 for the latest branch needs to be merged to deploy the initial search indexes under the new names.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg-docs] rdblue merged pull request #144: [main] Add workflow for merging search indexes

Posted by GitBox <gi...@apache.org>.
rdblue merged PR #144:
URL: https://github.com/apache/iceberg-docs/pull/144


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg-docs] rdblue commented on pull request #144: [main] Add workflow for merging search indexes

Posted by GitBox <gi...@apache.org>.
rdblue commented on PR #144:
URL: https://github.com/apache/iceberg-docs/pull/144#issuecomment-1224350723

   Thanks, @samredai!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org