A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rads/sqlite-okapi-bm25/issues/2 below:

Wrong index in `x` info table · Issue #2 · rads/sqlite-okapi-bm25 · GitHub

This repository was archived by the owner on Jun 25, 2022. It is now read-only.

This repository was archived by the owner on Jun 25, 2022. It is now read-only.

Wrong index in x info table #2

Description

Line 33
is currently int currentX = X_OFFSET + (3 * searchTextCol * (i + 1)); should become int currentX = X_OFFSET + (3 * (searchTextCol + i * colCount)); or similar.

Here is a sinppet from sqlite docs for matchinfo

          hits_this_row  = array[3 * (c + p*cols) + 0]
          hits_all_rows  = array[3 * (c + p*cols) + 1]
          docs_with_hits = array[3 * (c + p*cols) + 2]

where column idx c is searchTextCol, phrase idx p is i and number of cols cols is colCount


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4