Git Product home page Git Product logo

Comments (3)

mre avatar mre commented on May 16, 2024

Just started creating a roadmap here thanks to your suggestion.
About your points:

adding new fields (like product image),

Not against that, but bundling images into a wasm blob will increase the file-size. If it's just a link to an image, that can be done in the body. tinysearch only uses the body as a corpus of information to match an entry, so it's possible to do that.
But yeah, adding/renaming/removing fields would be nice. On the other side, I want to keep tinysearch simple and... well... tiny because once custom fields come into play, a remote service like Algolia might to a better job.

make body field optional,

Good idea! Can you create an issue for that to track development?

adding search filters (e.g. size between/less/bigger than),

Not sure. Do you have a concrete use-case? Sounds like an advanced feature that not many users might understand or even know it exists. On a technical note, tinysearch is not storing any keywords from the body, just the information if they "exist" - e.g. if they were added to the Bloomfilter before.

booleans (has feature X: yes/no)

Sounds like this could be useful for a shop system or a filter tool. I might be missing something, here. Would like to get the pure search functionality right before thinking about possible extensions. ;)

or this point in the readme "Only searches for entire words. There are no search suggestions (yet)."

Yeah, I don't have an idea for a datastructure which stores prefixes without blowing up the wasm binary size. Maybe we can find a neat trick that doesn't consume more storage in the Bloomfilter if searching for a prefix.

Keep the ideas coming. 😄

from tinysearch.

Lusitaniae avatar Lusitaniae commented on May 16, 2024

Thanks for the feedback, this is also new to me, so just thinking out loud.

  1. new field: image - this is for displaying results in the frontend, we would only need an url for this.

  2. New PR about making body optional: #117

  3. Lets say I have a shop and I want to select products at least 1 meter wide, or between 1 meter and 2 meter, or over 2 meter.

As mentioned I was thinking what would be nice to have, not sure how's that gonna work with this project hah

Maybe along with 1) if we return additional fields to the frontend we could do additional filtering, even without tinysearh engine.

from tinysearch.

mre avatar mre commented on May 16, 2024

Great!

  1. We could eventually support a tinysearch.toml, which would allow for that sort of customization. Would think about that after 1.0, which is a little down the road I'm afraid. I'll keep a mental note, though.
  2. Thanks!
  3. Yeah that would be outside the scope. One could think about a filter system built in wasm as a separate product, though. Or maybe there will be plugin support eventually, but it's unlikely. ;)

from tinysearch.

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.