apache / apache/lucene

Suggesters should verify its index before loading it from disk [LUCENE-5430]

Open
#6,493 1 comment 0 reactions 0 assignees View on GitHub
affects-version:4.7 affects-version:6.0 legacy-jira-fix-version:4.9 legacy-jira-fix-version:6.0 legacy-jira-priority:Major module:core/other type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

The issue was pointed out by Michael in the discussion on #6467.
The idea is to make all the suggesters use CodecUtils.writeHeader when they are about to store their index on file and subsequently perform a check when they are loaded.

---
Migrated from [LUCENE-5430](https://issues.apache.org/jira/browse/LUCENE-5430) by Areek Zillur (@areek), updated May 09 2016

Contributor guide

Open the contributing guide

Research direction

Start by locating the suggester implementations that store and load indexes, then read CodecUtils.writeHeader and the related discussion in issue #6467. Review each suggester's disk persistence path. Done means all suggesters write the header before storing an index and verify it when loading.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.