Comments (4)
I hope someone who is familiar with this will quickly see the problem - I'm not sure if we (1) maybe fail to write any FieldInfos when the index is empty, but now we must, or (2) fail to notice that the index we just opened has no FieldInfos and therefore can have a parent field added? It makes more sense to me that we should write a FieldInfos for an empty index.
from lucene.
I tried removing
if (leaves.isEmpty()) {
return FieldInfos.EMPTY;
} else
from FieldInfos.getMergedFieldInfos
but this didn't fix it -- although it also might be needed?
from lucene.
OK, now I see that field infos is part of the segment so we would not have written it. I guess in this case we should explicitly recognize and work around the empty case.
from lucene.
@simonw of you get a moment, your perspective would be helpful. Should we be writing index metadata somewhere outside of a segment? Or tweak the hack we have...
from lucene.
Related Issues (20)
- Significant drop in recall for 8 bit Scalar Quantizer HOT 47
- Question for PriorityQueue Reconstruction in SloppyPhraseMatcher's advanceRpts method.
- Query matching difference in Lucene 2 and Lucene 4.10.4 HOT 6
- test-framework JUnit 5 support HOT 1
- TestShapeDocValues.testLatLonPolygonBBox
- Merge on Commit: No merges if new data is flushed (but not committed) HOT 3
- Flaky Test in TestMergeSchedulerExternal#testSubclassConcurrentMergeScheduler
- Could Lucene's default Directory (`FSDirectory.open`) somehow preload `.vec` files? HOT 5
- Test TestIndexWriterWithThreads#testIOExceptionDuringWriteSegmentWithThreadsOnlyOnce Failed HOT 2
- Pruning of estimating the point value count since BooleanScorerSupplier HOT 2
- Add refinement of quantized vector scores with fp distance calculations HOT 4
- Try applying bipartite graph reordering to KNN graph node ids HOT 4
- "gradlew clean check" results in internal gradle error "Unable to make progress running work." HOT 1
- DocumentsWriterDeleteQueue.getNextSequenceNumber assertion failure seqNo=9 vs maxSeqNo=8 HOT 4
- Luke does not support `spanNear` queries
- Investigate possible perf regression with off-heap scoring on JDK 22 HOT 1
- Are we properly accounting for `NeighborArray.rwlock`? HOT 4
- Incomplete Javadoc for DirectoryReader#indexExists HOT 1
- Add support for reading/writing dense vectors to MemoryIndex
- ConcurrentMergeScheduler may spawn more merge threads than specified
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lucene.