MarginaliaSearch/code
Viktor Lofgren 3101b74580 (index) Move to a lexicon-free index design
This is a system-wide change.  The index used to have a lexicon, mapping words to wordIds using a large in-memory hash table.   This made index-construction easier, but it
also added a fairly significant RAM penalty to both the index service and the loader.

The new design moves to 64 bit word identifiers calculated using the murmur hash of the keyword, and an index construction based on merging smaller indices.

It also became necessary half-way through to upgrade guice as its error reporting wasn't *quite* compatible with JDK20.
2023-08-28 14:02:23 +02:00
..
api (index) Move index construction to separate process. 2023-08-25 12:52:54 +02:00
common (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
features-convert (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
features-crawl Upgrade antique lombok plugin 2023-08-23 14:34:32 +00:00
features-index (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
features-search (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
libraries (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
process-models (loader) Implement new linkdb in loader 2023-08-24 13:07:54 +02:00
processes (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
services-core (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
services-satellite (system) Remove EdgeId<T> and similar objects 2023-08-24 17:46:02 +02:00
tools (system) Remove EdgeId<T> and similar objects 2023-08-24 17:46:02 +02:00
readme.md (docs) Add control-service to the main readme.md 2023-08-01 22:52:41 +02:00

Code

This is a pretty large and diverse project with many moving parts.

You'll find a short description in each module of what it does and how it relates to other modules. The modules each have names like "library" or "process" or "feature". These have specific meanings. See doc/module-taxonomy.md.

Overview

A map of the most important components and how they relate can be found below.

image

Services

Processes

Processes are batch jobs that deal with data retrieval, processing and loading.

Tools

Features

Features are relatively stand-alone components that serve some part of the domain. They aren't domain-independent, but isolated.

Libraries and primitives

Libraries are stand-alone code that is independent of the domain logic.

  • common elements for creating a service, a client etc.
  • libraries containing non-search specific code.
    • array - large memory mapped area library
    • btree - static btree library