Comments (11)
@joepio may be https://endler.dev/2019/tinysearch/ is a better approach?
What is the type of data we are searching for?
from atomic-server.
Thanks for sharing, @AlexMikhalev! I think tinysearch might be a bit too static for this usecase - the index should be updated very frequently (every time a user creates a commit).
I'm currently considering Tantivy, a lucene alternative, as it can be fully embedded and seems really fast.
from atomic-server.
qualities that I appreciate in web-based search engines are a) support for offline search (which also means less round-trips and less tracking while online), and b) support for OpenSearch
For a) I generally like lunr - and seem to recall that there's a crate integrating that.
from atomic-server.
yes, not the original Lunr but a derivative: https://crates.io/crates/elasticlunr-rs
from atomic-server.
That one's also statically indexed, which is not a good option for atomic-server, I'm afraid. I need incremental indexing, so new commits are also searchable as users update stuff.
from atomic-server.
Sonic is also statically re-building fst trees - they don't support incremental indexing either, but sonic hides it from the user.
from atomic-server.
Hmm, interesting. Maybe if indexing is fast enough (takes <60secs for 1gb atomic data) then we could do it max once every minute.
from atomic-server.
qualities that I appreciate in web-based search engines are a) support for offline search (which also means less round-trips and less tracking while online), and b) support for OpenSearch
For a) I generally like lunr - and seem to recall that there's a crate integrating that.
Do you see atomic server deployed on server or "at the edge" - at users device? if it's on users device it's allready "offline first".
from atomic-server.
- on an untrusted system (i.e. a remote server) I would prefer efficient network traffic and an option to do client-side search (i.e. hand me a lookup table and JavaScript code to traverse it, allowing me to only "reveal" the hits I want to get, not the queries leading me to the hits)
- on a separate trusted system (i.e. a local server) I might prefer efficient network traffic or efficient processing, depending on network bandwidth versus capacity of the server (might be a corporate rack server or a 32-bit ARM device)
- directly on a user-facing system (i.e. a laptop or a phone) I would prefer efficient processing (think battery-powered) and direct APIs (no JavaScript or web browsing but socket-based more direct connections
from atomic-server.
I made quite a bunch of progress in one night, and it's actually working quite well! I'm really amazed that it took so little time to implement. Hats off to tantivy for creating this awesome library.
from atomic-server.
Allrighty, tests are passing, time to release a new version! It's pretty decent, but there's still room for improvement. See #210 for some of the things that can be improved upon.
from atomic-server.
Related Issues (20)
- Dockerfile CI fails, outdated rust compiler HOT 5
- CI: test docker build before deploying
- Allow adjusting domain / server_url without running --initialize
- Auto tag docker images with versions, not just latest
- Remove `tpf` from `atomic-cli`
- URLs in search queries for filtering broken HOT 1
- Order dependence in imports - Class and Property definitions need to be defined first HOT 2
- Rebuild index async on boot
- build_index run twice on atomic-server boot
- Dockerfile broken `exec /atomic-server-bin: no such file or directory` HOT 1
- musl build for cross-platform docker images HOT 4
- Advanced CMS features tracking issue
- Refactor `for_agent` / clear up API usage HOT 1
- Check for unused dependencies in ci
- Importer should error if multiple resources with the same Local-id are imported
- Plugin parameters - as Properties instead of urls?
- Outreach / messaging / community engagement features tracking issue
- Rebrand repo to atomic-server
- Update swagger / openapi spec
- Bearer token support HOT 1
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 atomic-server.