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

Greg Miller commented on LUCENE-10565:
--------------------------------------

A tricky aspect of this is identifying which fields to pre-build the ordinal 
maps for, but I wonder if we could leverage {{FacetsConfig}} for this. 
Unfortunately, users don't have to register a facet field with {{FacetsConfig}} 
if they want all the default behavior, but maybe there's something we could do 
with this to make it more straight-forward to identify all the SSDV fields 
being used for faceting on reopen so the ordinal maps could be built. 

> Can we "warm" SSDV ordinal maps on index reopen?
> ------------------------------------------------
>
>                 Key: LUCENE-10565
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10565
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/facet
>            Reporter: Greg Miller
>            Priority: Major
>
> As [~rcmuir] and [~jpountz] pointed out in a [discussion about facet 
> benchmarks|https://github.com/mikemccand/luceneutil/issues/169], we lazily 
> build ordinal maps needed for SSDV faceting the first time we need them for a 
> given index field instead of eagerly building them when the index is 
> reopened. This puts an expensive penalty on the search path whenever an index 
> is reloaded. Let's see if we can eagerly build these maps as part of 
> reopening the index so the user doesn't get hit with this at search time.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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

Reply via email to