apache / apache/lucene

Make BloomFilteringPostingsFormat wrap Lucene40PostingsFormat by default [LUCENE-4394]

Open
#5,460 3 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Trivial type:task
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

When loading BloomFilteringPostingsFormat from the SPI registry, it will have a null delegate by default. I think it would be more comfortable to make it wrap Lucene40PostingsFormat by default so that it can be used against lucene-core tests (ant -Dtests.postingsFormat=BloomFilter, currently fails with "java.lang.UnsupportedOperationException: Error - org.apache.lucene.codecs.bloom.BloomFilteringPostingsFormat has been constructed without a choice of PostingsFormat") or with Solr field types with minimal configuration (<fieldType ... postingsFormat="BloomFilter" />).

---
Migrated from [LUCENE-4394](https://issues.apache.org/jira/browse/LUCENE-4394) by Adrien Grand (@jpountz), updated Sep 17 2012

Contributor guide

Open the contributing guide

Research direction

Start by reading BloomFilteringPostingsFormat and reproduce the reported failure with `ant -Dtests.postingsFormat=BloomFilter`. Check how the SPI registry constructs the format and verify that the lucene-core tests and the stated Solr field-type configuration work without additional postings-format configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.