MarginaliaSearch/code/features-index
Viktor Lofgren d0aa754252 (long-array) Implement java.lang.foreign.Arena based lifecycle control for LongArray.
Further de-ByteBuffer:ing of these classes is to be done, but this is the smallest most urgently needed benefit.

This commit is a WIP but in a fully working state, pushing due to the importance of the changes to offer lifecycle control over mmaps.
2023-09-24 10:40:06 +02:00
..
domain-ranking (*) Upgrade to JDK21 with preview enabled. 2023-09-24 10:38:59 +02:00
index-forward (long-array) Implement java.lang.foreign.Arena based lifecycle control for LongArray. 2023-09-24 10:40:06 +02:00
index-journal (*) Upgrade to JDK21 with preview enabled. 2023-09-24 10:38:59 +02:00
index-query (*) Upgrade to JDK21 with preview enabled. 2023-09-24 10:38:59 +02:00
index-reverse (long-array) Implement java.lang.foreign.Arena based lifecycle control for LongArray. 2023-09-24 10:40:06 +02:00
readme.md Update readme.md 2023-03-20 16:27:37 +01:00

Index

These are components that offer functionality for the index-service.

Indexes

There are two indexes with accompanying tools for constructing them.

  • index-reverse is code for word->document indexes. There are two such indexes, one containing only document-word pairs that are flagged as important, e.g. the word appears in the title or has a high TF-IDF. This allows good results to be discovered quickly without having to sift through ten thousand bad ones first.

  • index-forward is the document->word index containing metadata about each word, such as its position. It is used after identifying candidate search results via the reverse index to fetch metadata and rank the results.

These indices rely heavily on the libraries/btree and libraries/array components.

Algorithms

Libraries

  • index-query contains structures for evaluating search queries.
  • index-journal contains tools for writing and reading index data.
  • lexicon contains a mapping between words' string representation and an unique integer identifier.