MarginaliaSearch/code/features-index
Viktor Lofgren 9330b5b1d9 (index) Adjust rank weightings to fix bad wikipedia results
There was as bug where if the input of ResultValuator.normalize() was negative, it was truncated to zero.  This meant that "bad" results always rank the same.  The penalty factor "overallPart" was moved outside of the function and was re-weighted to accomplish a better normalization.

Some of the weights were also re-adjusted based on what appears to produce better results.  Needs evaluation.
2024-01-02 12:35:44 +01:00
..
domain-ranking (refactor) Remove features-search and update documentation 2023-10-09 15:12:30 +02:00
index-forward Initial Commit Anchor Tags 2023-11-04 14:24:17 +01:00
index-journal (*) WIP Control GUI redesign, executor-service, multi-node mq 2023-10-14 12:08:43 +02:00
index-query (search/index) Add a new keyword "count" 2023-12-25 20:38:29 +01:00
index-reverse (minor) Reduce log severity for getTermMeta miss 2023-10-26 15:41:52 +02:00
result-ranking (index) Adjust rank weightings to fix bad wikipedia results 2024-01-02 12:35:44 +01:00
readme.md (refactor) Remove features-search and update documentation 2023-10-09 15:12:30 +02: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.