question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested version search index problem

See original GitHub issue

@maxiloc sorry to bother again, but as we are planning to merge multiple major versions of the docs under one domain (from vuejs.org+v1.vuejs.org to vuejs.org/v2 and vuejs.org/v1), we realized that Algalia may end up including both versions under the same index, and the search results can be confusing.

Basically, our question is - is it possible to make one index only crawl pages under vuejs.org/v1, while the other vuejs.org/v2?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
maxiloccommented, Nov 9, 2016

Yes we do have multi version capabilities. I updated the vuejs config to prepare for multiversion (https://github.com/algolia/docsearch-configs/commit/4b816ab9660c818ecb23bea97870cd0d58dcf52a)

You just need to update the snippet

<!-- at the end of the HEAD -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" />
<!-- at the end of the BODY -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
  apiKey: '85cc3221c9f23bfbaa4e3913dd7625ea',
  indexName: 'vuejs',
  inputSelector: '### REPLACE ME ####',
  algoliaOptions: { 'facetFilters': ["version:$VERSION"] },
  debug: false // Set debug to true if you want to inspect the dropdown
});
</script>

$VERSION being v2.

When you’ll have v1 ready, we’ll add it to the config. And you can change the $VERSION to v1 for the v1 part of the website

Does that makes sense ?

0reactions
chrisvfritzcommented, Feb 2, 2017

I believe this is all resolved now, so closing. 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems with nested indexing - MATLAB Answers - MathWorks
I'm using a MATLAB algorithm to project and size the components of a vehicular suspension system. In the following lines, an error is...
Read more >
ElasticSearch indexing with nested collections in document
I am running elastic 7.3.1 and with following index mapping i am successfully able to create index with nested types inside nested type....
Read more >
ADR: Nested query search (#38) · Issues - GitLab
The nested type is a specialized version of the object data type that allows arrays of objects to be indexed in a way...
Read more >
Unable to automatically index nested json as ... - Elastic Discuss
I am trying to index a nested json into elastic search using the bulk api. ... Issue is that upon trying to use...
Read more >
Failed to create index for percolator with nested document
Failed to create index for percolator with nested document – How to solve this Elasticsearch error. Opster Team. March-22, Version: 1.7-8.0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found