Comments (3)
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.
Thanks for the feedback, this is also new to me, so just thinking out loud.
-
new field: image - this is for displaying results in the frontend, we would only need an url for this.
-
New PR about making body optional: #117
-
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.
Great!
- 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. - Thanks!
- 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)
- Add an option to only generate the wasm HOT 1
- Consider replacing failure crate with anyhow or thiserror ? HOT 3
- Consider replacing structopt with argh crate ? HOT 7
- Rename project? HOT 14
- Benchmark against competition HOT 7
- building docker image gives error from wasm-pack in step 19/28 HOT 5
- Could tiny search run in IOS and Android WebView browsers? HOT 2
- Error: No such file or directory (os error 2) HOT 19
- Too many false positives HOT 7
- Error: failed to execute "wasm-pack" "build" HOT 21
- Error: Engine directory could not be created HOT 8
- bug HOT 1
- Update Cargo build for tinysearch HOT 1
- Does tinysearch support stemming, stopwords, and CJK? HOT 2
- Is there a way to return the page description or body in the results? HOT 19
- Github action HOT 2
- Please tag release 0.7.0 HOT 3
- Failing to find Cargo.toml in temp directory? HOT 10
- For Zola sites, the tinysearch json index gets included in the sitemap.xml file. HOT 1
- Add a switch for build dir, and copy only the resulting wasm file to the path HOT 2
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 tinysearch.