[
https://issues.apache.org/jira/browse/LUCENE-5178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Muir updated LUCENE-5178:
--------------------------------
Attachment: LUCENE-5178.patch
Here is a patch of 5178 branch:
* Adds AtomicReader.getDocsWithField(String) that works just like
FieldCache.getDocsWithField(String) and fieldcacheimpl just forwards to it:
this means things like facet missing/function queries exists()/sort missing
last work with docvalues already.
* SortedSet returns -1 ord for missing value from DV (not just fieldcache). So
now these apis work exactly the same.
* Codec api is unchanged, codecs get null values for missing.
* new Lucene45 codec (works off heap: LUCENE-5178) that supports this, older
codecs do not (they return MatchAllBits, essentially they never had missing
values, only "filled" ones).
* Lucene42 becomes read-only and the writers in test-framework for Lucene40 and
Lucene42 "simulates" what happened before by filling themselves and always
returning MatchAllBits
* new Memory codec (works on heap) works like Lucene42 did, except supports
missing values too, as does simpletext.
* Facet42 dv is unchanged (for its use cases, the distinction between "missing"
and "empty ordinal list" is not useful). Facet42Codec (which was just sugar to
use it) is renamed to Facet45Codec, but of course old segments can be read
since the dv name is the same.
* Removed solr restrictions for single-valued docvalues fields (they dont need
to have a default value or be required anymore).
* Improved testing for solr docvalues faceting (single valued fields,
numericfacets, and so on). This was previously not possible because only
multi-valued types could support missing.
* I reviewed all consumers and ensure they are optimized (e.g. check that value
== 0 before wasting their time and so on, this was already this way in lucene's
sort comparators)
> doc values should expose missing values (or allow configurable defaults)
> ------------------------------------------------------------------------
>
> Key: LUCENE-5178
> URL: https://issues.apache.org/jira/browse/LUCENE-5178
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Yonik Seeley
> Attachments: LUCENE-5178.patch
>
>
> DocValues should somehow allow a configurable default per-field.
> Possible implementations include setting it on the field in the document or
> registration of an IndexWriter callback.
> If we don't make the default configurable, then another option is to have
> DocValues fields keep track of whether a value was indexed for that document
> or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]