qdrant-page-search

1.1.1 • Public • Published

For an example look into index.html

Installation

npm install qdrant-page-search

Add styles to the head tag:

<link rel="stylesheet" href="<path_to_the_plugin>/dist/css/styles.min.css">

At the end of a body tag add:

<script defer src="<path_to_the_plugin>/dist/js/search.min.js" type="module"></script>
<script defer>
    window.addEventListener('DOMContentLoaded', () => {
        initQdrantSearch({
            searchApiUrl: 'your_search_API_URL',
            // optional
            // section: 'your_section',
            // partition: 'your_partition'
        });
    });
</script>

To scroll a page to the result text after transition use js/scroll.min.js

<script src="<path_to_the_plugin>/dist/js/scroll.min.js" type="module"></script>

Add search button

And the button in the place you want to see it:

<!-- Button trigger modal -->
<button type="button" class="qdr-search-input-btn" data-target="#searchModal">
    Search...
</button>

Development

Build the project

npm install
npm run build

Develop mode

npm install
npm run dev

Styles

To change an appearance of modal window you can:

  • overwrite classes styles in your own css file or
  • change variables values in src/scss/_variables.scss and rebuild styles file.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.186latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.186
1.1.045
1.0.1153
1.0.105
1.0.93
1.0.84
1.0.72
1.0.63
1.0.53
1.0.44
1.0.32
1.0.23
1.0.14

Package Sidebar

Install

npm i qdrant-page-search

Weekly Downloads

195

Version

1.1.1

License

Apache-2.0

Unpacked Size

67 kB

Total Files

22

Last publish

Collaborators

  • qdrant-tech
  • rendez