Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-33479][DOC][FOLLOWUP] DocSearch: Support filtering search results by version #30469

Closed
wants to merge 1 commit into from

Conversation

gengliangwang
Copy link
Member

What changes were proposed in this pull request?

In the discussion #30292 (comment), we planned to apply a new API key for each Spark release. However, it turns that DocSearch supports crawling multiple URLs from one website and filtering by fact key: https://docsearch.algolia.com/docs/config-file/#using-regular-expressions

Thanks to the help from @shortcuts, our Spark doc supports multiple version now: algolia/docsearch-configs#2868

This PR is to add the fact key in the search script and update the instruction in the comment.

Why are the changes needed?

To support filtering Spark documentation search results by the current document version.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manual test

@github-actions github-actions bot added the DOCS label Nov 23, 2020
@gengliangwang
Copy link
Member Author

# Before a new release, we should:
# 1. update the `version` array for the new Spark documentation
# on https://github.com/algolia/docsearch-configs/blob/master/configs/apache_spark.json.
# 2. update the value of `facetFilters.version` in `algoliaOptions` on the new release branch.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An alternative way is always to update the current spark doc. For example, if we are going to release 3.1.1 and the current doc version is 3.1.0, we can update the version of http://spark.apache.org/docs/3.1.0 from latest to 3.1.0. For 3.1.1, we can still use the version latest until the next relealse.

@shortcuts
Copy link

Hi guys,

Feel free to submit a PR whenever you need to add a version (as it only supports latest for now), I'll approve it.

@SparkQA
Copy link

SparkQA commented Nov 23, 2020

Test build #131548 has finished for PR 30469 at commit 7c06fa4.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 23, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/36151/

@SparkQA
Copy link

SparkQA commented Nov 23, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/36151/

@maropu maropu changed the title [SPARK-33479][DOC][FollowUp] DocSearch: Support filtering search results by version [SPARK-33479][DOC][FOLLOWUP] DocSearch: Support filtering search results by version Nov 24, 2020
@maropu
Copy link
Member

maropu commented Nov 24, 2020

Btw, any plan to provide this search functionality for the v2.4/v3.0 docs, too? This is very useful for users, I think.

@maropu maropu closed this in 0592181 Nov 24, 2020
@maropu
Copy link
Member

maropu commented Nov 24, 2020

Thanks! Merged to master.

@SparkQA
Copy link

SparkQA commented Nov 24, 2020

Test build #131584 has finished for PR 30469 at commit 7c06fa4.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

I'm good with porting back. Its a doc only change in the end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants