Giter Site home page Giter Site logo

Comments (3)

ColinFrick avatar ColinFrick commented on May 28, 2024

Any suggestion how this should be implemented?

Because the results could be sorted by relevancy and not by hierarchy, how should the items be added to the popup? Would the headers be duplicated?

F.e with query 'createdAt key' on the meilisearch documentation:
---- First 5 results ----

  1. API reference - Keys - Key object - createdAt
  2. API reference - Keys - Get all keys - Example
  3. API reference - Keys - Create a key - Example
  4. API reference - Keys - Get all keys
  5. Security and permissions - Master key and API keys - Using the master key to manage API keys - Listing API keys

image

--- Next 5 results ---

  1. Security and permissions - Master key and API keys - Communicating with a protected instance - Using default API keys for authorization
  2. Security and permissions - ...
  3. Cookbooks Deployment - ...
  4. API reference - Indexes - Index object <- How should this result be displayed in the popup?
  5. Configuration - ...

from docs-searchbar.js.

bidoubiwa avatar bidoubiwa commented on May 28, 2024

Because the results could be sorted by relevancy and not by hierarchy, how should the items be added to the popup? Would the headers be duplicated?

This is a very good point you are raising @ColinFrick. There is also the issue that scrolling would conflict with scrolling on the page itself.

I checked how algolia handles it and they did not add the scrolling possibility. See example

This might not be a very good idea after all.

from docs-searchbar.js.

bidoubiwa avatar bidoubiwa commented on May 28, 2024

I'm closing this as it is not a good idea!

from docs-searchbar.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.