MarginaliaSearch/code/libraries
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
..
array (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
big-string Upgrade code to Java 20. 2023-08-23 13:37:49 +00:00
braille-block-punch-cards Upgrade code to Java 20. 2023-08-23 13:37:49 +00:00
btree Upgrade code to Java 20. 2023-08-23 13:37:49 +00:00
easy-lsh Upgrade code to Java 20. 2023-08-23 13:37:49 +00:00
guarded-regex Upgrade code to Java 20. 2023-08-23 13:37:49 +00:00
language-processing (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
message-queue (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
next-prime Upgrade code to Java 20. 2023-08-23 13:37:49 +00:00
random-write-funnel Upgrade code to Java 20. 2023-08-23 13:37:49 +00:00
term-frequency-dict (index) Move to a lexicon-free index design 2023-08-28 14:02:23 +02:00
LICENSE.txt The refactoring will continue until morale improves. 2023-03-12 10:50:31 +01:00
readme.md (mq) Refactor mq and actor library and move it to libraries out of common 2023-08-15 10:53:23 +02:00

Libraries

These are libraries that are not strongly coupled to the search engine's business logic. These libraries may not depend on features, services, processes, models, etc.

NOTE: These libraries are co-licensed under the MIT license.

Libraries

  • The array library is for memory mapping large memory-areas, which Java has bad support for. It's designed to be able to easily replaced when Java's Foreign Function And Memory API is released.
  • The btree library offers a static BTree implementation based on the array library.
  • language-processing contains primitives for sentence extraction and POS-tagging.
  • The message-queue library.

Micro libraries

  • easy-lsh is a simple locality-sensitive hash for document deduplication
  • guarded-regex makes predicated regular expressions clearer
  • big-string offers seamless string compression
  • random-write-funnel is a tool for reducing write amplification when constructing large files out of order.
  • next-prime naive brute force prime sieve.
  • braille-block-punch-cards renders bit masks into human-readable dot matrices using the braille block.