Comments (11)
Yes, That's what i mean. like notion's search bar.
from docs-searchbar.js.
Hey @imvkmark it seems that there is a bug with your docs-searchbar. Can you provide the code initializing it?
from docs-searchbar.js.
@bidoubiwa , Thank for your help.
There has 2 parts in my blog.
at main.js, the hostUrl
can opened in browser
docsSearchBar({
hostUrl: 'https://platform.jkfxpt.com:7770',
apiKey: 'f1f95fdb28d7eda1cea1b47d1ae162802954fca8762c1f05dfd19cb403ba1d9b',
indexUid: 'wulicode-scraper',
inputSelector: '#search-bar-input',
debug: false, // Set debug to true if you want to inspect the dropdown
})
at html
<div className="columns meilisearch">
<div class="column column-left is-4-tablet is-4-desktop is-4-widescreen order-1">
<div class=" card widget">
<input type="search" id="search-bar-input" placeholder="search use meilisearch"/>
</div>
</div>
</div>
from docs-searchbar.js.
what happens if you add docsSearchBar in a script tag inside your HTML file ?
<script>
docsSearchBar({
hostUrl: 'https://platform.jkfxpt.com:7770',
apiKey: 'f1f95fdb28d7eda1cea1b47d1ae162802954fca8762c1f05dfd19cb403ba1d9b',
indexUid: 'wulicode-scraper',
inputSelector: '#search-bar-input',
debug: false, // Set debug to true if you want to inspect the dropdown
})
</script>
from docs-searchbar.js.
I'm use hexo for static site, so i can't add script to jsx file.
from docs-searchbar.js.
From what I see in the logs, docsSearchbar
is not imported in the HTML file. Maybe the module was not imported correctly in your code
from docs-searchbar.js.
Because of the slow access of cdn in China, I download the js file to my source directory. so you may cannot find access log from network panel.
from docs-searchbar.js.
if you console.log docsSearchBar
does it appear in your browser logs?
from docs-searchbar.js.
if you console.log
docsSearchBar
does it appear in your browser logs?
Yes
from docs-searchbar.js.
@imvkmark okey I just understood the issue. You are right, because of the Chinese CDN it was not working at all on my end (or it could work but I should have waited longer).
So the improvement you are requiring: If there is text in the input and focus is put on the input, the results component should automatically open ?
from docs-searchbar.js.
We welcome user 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.
from docs-searchbar.js.
Related Issues (20)
- Make a clear explaination of what the repo does at the start of the readme
- Cypress tests should not work with a remote MeiliSearch instance HOT 2
- Question: search bar's cardinality with indexes HOT 2
- Add a scrolling system to see further results HOT 3
- Update of the URL linking to the SVG of the `Meilisearch` part appearing in `Powered by ..` HOT 3
- Fix playground HOT 3
- MeiliSearchCommunicationError HOT 4
- Remove support for node 12 and ensure support for node 18
- React based SDK HOT 2
- Allow the docs-searchbar to be invoked using keyboard shortcut HOT 2
- Add a configuration to display searchbar in a modal HOT 9
- Update image inside of README with latest Meilisearch logo HOT 4
- Text in backticks does not appear in search results HOT 6
- Add Shadow Dom support
- Fix README table of contents links HOT 2
- Add a Scroll To Top Button HOT 2
- Dynamically change index HOT 2
- Does it support Multi-index search? HOT 2
- New Docsearch HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs-searchbar.js.