Giter Site home page Giter Site logo

Comments (11)

AlexMikhalev avatar AlexMikhalev commented on July 22, 2024

@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.

joepio avatar joepio commented on July 22, 2024

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.

jonassmedegaard avatar jonassmedegaard commented on July 22, 2024

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.

jonassmedegaard avatar jonassmedegaard commented on July 22, 2024

yes, not the original Lunr but a derivative: https://crates.io/crates/elasticlunr-rs

from atomic-server.

joepio avatar joepio commented on July 22, 2024

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.

AlexMikhalev avatar AlexMikhalev commented on July 22, 2024

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.

joepio avatar joepio commented on July 22, 2024

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.

AlexMikhalev avatar AlexMikhalev commented on July 22, 2024

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.

jonassmedegaard avatar jonassmedegaard commented on July 22, 2024
  • 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.

joepio avatar joepio commented on July 22, 2024

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.

Screenshot 2021-11-10 at 22 25 55

from atomic-server.

joepio avatar joepio commented on July 22, 2024

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)

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.