-
Notifications
You must be signed in to change notification settings - Fork 30
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
Using docs-searchbar.js library without using docs-scraper tool #40
Comments
First of all, the If it's what you want, you indeed should choose The Following from the previous example (picture), here are the documents retrieved by MeiliSearch that {
"hits": [
{
"objectID": "7f5bf4c349da845c70bda26ee665b2f7bdb17210",
"hierarchy_radio_lvl0": "null",
"hierarchy_radio_lvl1": "null",
"hierarchy_radio_lvl2": "Order of the rules",
"hierarchy_radio_lvl3": "null",
"hierarchy_radio_lvl4": "null",
"hierarchy_radio_lvl5": "null",
"hierarchy_lvl0": "💡 Main concepts",
"hierarchy_lvl1": "Relevancy",
"hierarchy_lvl2": "Order of the rules",
"hierarchy_lvl3": "null",
"hierarchy_lvl4": "null",
"hierarchy_lvl5": "null",
"hierarchy_lvl6": "null",
"content": "null",
"url": "https://docs.meilisearch.com/guides/main_concepts/relevancy.html#order-of-the-rules",
"anchor": "order-of-the-rules"
},
{
"objectID": "80c113d2f848bbfba08af5427ae3061c09a936a7",
"hierarchy_radio_lvl0": "null",
"hierarchy_radio_lvl1": "null",
"hierarchy_radio_lvl2": "null",
"hierarchy_radio_lvl3": "Changing the order of the attributes",
"hierarchy_radio_lvl4": "null",
"hierarchy_radio_lvl5": "null",
"hierarchy_lvl0": "💡 Main concepts",
"hierarchy_lvl1": "Relevancy",
"hierarchy_lvl2": "Importance of the attributes",
"hierarchy_lvl3": "Changing the order of the attributes",
"hierarchy_lvl4": "null",
"hierarchy_lvl5": "null",
"hierarchy_lvl6": "null",
"content": "null",
"url": "https://docs.meilisearch.com/guides/main_concepts/relevancy.html#changing-the-order-of-the-attributes",
"anchor": "changing-the-order-of-the-attributes"
},
{
"objectID": "6fbadc30ff6abe5b6c4673d24d646b2a0f83992d",
"hierarchy_radio_lvl0": "null",
"hierarchy_radio_lvl1": "null",
"hierarchy_radio_lvl2": "null",
"hierarchy_radio_lvl3": "null",
"hierarchy_radio_lvl4": "Example",
"hierarchy_radio_lvl5": "null",
"hierarchy_lvl0": "💡 Main concepts",
"hierarchy_lvl1": "Relevancy",
"hierarchy_lvl2": "Importance of the attributes",
"hierarchy_lvl3": "Changing the order of the attributes",
"hierarchy_lvl4": "Example",
"hierarchy_lvl5": "null",
"hierarchy_lvl6": "null",
"content": "null",
"url": "https://docs.meilisearch.com/guides/main_concepts/relevancy.html#example-2",
"anchor": "example-2"
},
{
"objectID": "2a708c62f7006f6928376c33b8378807f1ae21a4",
"hierarchy_radio_lvl0": "null",
"hierarchy_radio_lvl1": "null",
"hierarchy_radio_lvl2": "null",
"hierarchy_radio_lvl3": "null",
"hierarchy_radio_lvl4": "null",
"hierarchy_radio_lvl5": "null",
"hierarchy_lvl0": "💡 Main concepts",
"hierarchy_lvl1": "Relevancy",
"hierarchy_lvl2": "Importance of the attributes",
"hierarchy_lvl3": "null",
"hierarchy_lvl4": "null",
"hierarchy_lvl5": "null",
"hierarchy_lvl6": "null",
"content": "By default, the order of importance of the attributes is based on their order of appearance in the first document added. Then, each new attribute found in new documents will be added at the end of this ordered list",
"url": "https://docs.meilisearch.com/guides/main_concepts/relevancy.html#importance-of-the-attributes",
"anchor": "importance-of-the-attributes"
},
{
"objectID": "aef5b43a7e89ab031d118934cd13c27842fb4796",
"hierarchy_radio_lvl0": "null",
"hierarchy_radio_lvl1": "null",
"hierarchy_radio_lvl2": "null",
"hierarchy_radio_lvl3": "null",
"hierarchy_radio_lvl4": "null",
"hierarchy_radio_lvl5": "null",
"hierarchy_lvl0": "🧷 How to's",
"hierarchy_lvl1": "How to deploy a MeiliSearch instance on DigitalOcean",
"hierarchy_lvl2": "Create an out-of-the-box MeiliSearch",
"hierarchy_lvl3": "5. Add your ssh key",
"hierarchy_lvl4": "null",
"hierarchy_lvl5": "null",
"hierarchy_lvl6": "null",
"content": "Select your SSH key in order to be able to connect to your droplet later. If you don't see your SSH key add yours to your account",
"url": "https://docs.meilisearch.com/resources/howtos/digitalocean_droplet.html#_5-add-your-ssh-key",
"anchor": "_5-add-your-ssh-key"
}
],
"offset": 0,
"limit": 5,
"nbHits": 42,
"exhaustiveNbHits": false,
"processingTimeMs": 2,
"query": "order of"
} All the fields have to be present to be well-interpreted by I tried to find a great example to understand all the complexity of document format. Hope it helped! 😁 |
It's notable that anyone taking this step will also need to ensure their index settings are correct. You can see the settings the scraper adds here. |
when you say "set to null" do you mean |
Did you had time to try it out @ksnyde ? |
We welcome users to use the meilisearch-docsearch of tauri that is a better version of this project. For this reason, we deprecate this repository in favor of theirs. |
Here is the question from one of our users on Slack:
Hey guys - if I want to use the awesome search bar at https://github.com/meilisearch/docs-searchbar.js but don't use the scraper (I'm pushing content via API calls), how do I address the "Object has no key lvl0" error? What metadata do I need to push?
The scraper: https://github.com/meilisearch/docs-scraper
Related tutorial: https://docs.meilisearch.com/resources/howtos/search_bar_for_docs.html
The text was updated successfully, but these errors were encountered: