Skip to content

Apache Lucene open-source search software

LUCENE-5178: add missing support for docvalues

Robert Muir39dbc2671600
diff --cc lucene/CHANGES.txt
index 019a147ed53,7d14c63e774..411680e8385
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@@ -89,6 -89,6 +89,18 @@@ New feature
http://blog.mikemccandless.com/2013/08/suggeststopfilter-carefully-removes.html
for details.
++* LUCENE-5178: Added support for missing values to DocValues fields.
++ AtomicReader.getDocsWithField returns a Bits of documents with a value,
++ and FieldCache.getDocsWithField forwards to that for DocValues fields. Things like
++ SortField.setMissingValue, FunctionValues.exists, and FieldValueFilter now
++ work with DocValues fields. (Robert Muir)
++
++* LUCENE-5124: Lucene 4.5 has a new Lucene45Codec with Lucene45DocValues,
++ supporting missing values and with most datastructures residing off-heap.
++ Added "Memory" docvalues format that works entirely in heap, and "Disk"
++ loads no datastructures into RAM. Both of these also support missing values.
++ Added DiskNormsFormat (in case you want norms entirely on disk). (Robert Muir)
++
Bug Fixes
* LUCENE-5116: IndexWriter.addIndexes(IndexReader...) should drop empty (or all
@@@ -184,6 -179,6 +196,15 @@@ API Change
* LUCENE-5173: Lucene never writes segments with 0 documents anymore.
(Shai Erera, Uwe Schindler, Robert Muir)
++* LUCENE-5178: SortedDocValues always returns -1 ord when a document is missing
++ a value for the field. Previously it only did this if the SortedDocValues
++ was produced by uninversion on the FieldCache. (Robert Muir)
++
++Changes in Runtime Behavior
++
++* LUCENE-5178: DocValues codec consumer APIs (iterables) return null values
++ when the document has no value for the field. (Robert Muir)
++
Optimizations
* LUCENE-5088: Added TermFilter to filter docs by a specific term.
diff --cc solr/CHANGES.txt
index bd9eb61aeea,2892eb4d93a..4824132980e
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@@ -96,6 -95,6 +96,10 @@@ New Feature
* SOLR-4718: Allow solr.xml to be stored in ZooKeeper
* SOLR-5156: Enhance ZkCLI to allow uploading of arbitrary files to ZK.
++* SOLR-5165: Single-valued docValues fields no longer require a default value.
++ Additionally they work with sortMissingFirst, sortMissingLast, facet.missing,
++ exists() in function queries, etc. (Robert Muir)
++
Bug Fixes
----------------------