[ 
https://issues.apache.org/jira/browse/LUCENE-9450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17386480#comment-17386480
 ] 

Gautam Worah commented on LUCENE-9450:
--------------------------------------

Argh. Took some time to figure out the change that added the 
getIndexCreatedVersionMajor() API.

However, a call like 
`{color:#871094}indexWriter{color}.getConfig().getIndexCreatedVersionMajor()` 
still returns the version as 9 for the older index. 

{color:#000000}Something like 
`SegmentInfos{color}.readLatestCommit({color:#871094}indexWriter{color}.getDirectory()).getIndexCreatedVersionMajor()`
 also says the version is 9, where it should've reported 8. Needs some more 
debugging..

> Taxonomy index should use DocValues not StoredFields
> ----------------------------------------------------
>
>                 Key: LUCENE-9450
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9450
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/facet
>    Affects Versions: 8.5.2
>            Reporter: Gautam Worah
>            Priority: Minor
>              Labels: performance
>             Fix For: main (9.0)
>
>         Attachments: LUCENE-9450-localrun.py-v1, wip_taxonomy_patch
>
>          Time Spent: 4h
>  Remaining Estimate: 0h
>
> The taxonomy index that maps binning labels to ordinals was created before 
> Lucene added BinaryDocValues.
> I've attached a WIP patch (does not pass tests currently)
> Issue suggested by [~mikemccand]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to