Giter Site home page Giter Site logo

Search function about eleventy-garden HOT 10 CLOSED

binyamin avatar binyamin commented on May 31, 2024 1
Search function

from eleventy-garden.

Comments (10)

binyamin avatar binyamin commented on May 31, 2024 1

@itsthecheat Are you still working on this? Asking because #4 will be affected by this feature.

from eleventy-garden.

tannerdolby avatar tannerdolby commented on May 31, 2024 1

How many notes should we expect to be searching through?

@binyamin I agree, the search will definitely become slower with more documents. I was only giving my thoughts for an expected number of notes within /notes/ to be searching through.

I don't want to make users comb through their notes, looking for which tags they use.

Agreed, the implementation I proposed in #33 will have to be updated to dynamically create related lists rather than what I've spun up for the first prototype.

from eleventy-garden.

gerwitz avatar gerwitz commented on May 31, 2024 1

FWIW, I implemented search on my personal Eleventy site with lunr (the "father" of Elasticlunr) and it works brilliantly and performs fairly well with nearly 1,000 pages.

from eleventy-garden.

binyamin avatar binyamin commented on May 31, 2024

Great idea.

Here are some relevant articles/solutions, for anyone tackling this issue:

from eleventy-garden.

itsthecheat avatar itsthecheat commented on May 31, 2024

Hello,
If this is still available I'd be happy to work on it!

from eleventy-garden.

binyamin avatar binyamin commented on May 31, 2024

@itsthecheat Sure! Lmk if you need anything.

from eleventy-garden.

binyamin avatar binyamin commented on May 31, 2024

@tannerdolby @RosieCampbell How many notes should we expect to be searching through?

from eleventy-garden.

tannerdolby avatar tannerdolby commented on May 31, 2024

I was asking myself this question last night. Which made me think: How many hashtags should the project support? Currently the tags in #33 are hardcoded to look for (#art, #easter, #food) to produce lists of related notes.

Right now the project has 4 notes.

  • art.md
  • food.md
  • bar.md
  • Easter egg.md

I think we could expect to search for around 10 notes or < 20. Where this ceiling of notes to be searched can be updated as the project grows, allowing the search to index more notes.

As the number of notes increases, the potential for new hashtags arises. I think the number of hashtags could be set to a default 3 or something like? Allowing for more hashtags to be added via the tags.liquid template.

from eleventy-garden.

binyamin avatar binyamin commented on May 31, 2024

Where this ceiling of notes to be searched can be updated as the project grows

@tannerdolby My intent was more that the search will get slower with more documents. If possible, I don't want to manually limit the number of items searched.

I think the number of hashtags could be set to a default 3 or something like?

I don't think we should limit the number of possible hashtags. I don't want to make users comb through their notes, looking for which tags they use.

from eleventy-garden.

binyamin avatar binyamin commented on May 31, 2024

I'm considering this out-of-scope. See #71 (comment)

from eleventy-garden.

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.