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

David Smiley commented on LUCENE-9078:
--------------------------------------

I think it's unfortunate that TVs are row-stored today.  If the query/scenario 
only needs a sub-set of TV fields then there's plenty of waste in decoding the 
others.  It's trappy to code against the current API wherein you may 
inadvertently re-load all TVs from disk when getting TVs of other fields 
without realizing the ramifications.  For example in the UnifiedHighlighter 
there's a little cache mechanism to ensure TVs are only fetched once – see 
TermVectorReusingLeafReader.  I know raising this is a distraction here; I 
could file an issue.  It's tangentially related because the class that replaces 
Fields for TV use-case would be fundamentally different if we get column-stored 
TVs.

> Term vectors options should not be configurable per-doc
> -------------------------------------------------------
>
>                 Key: LUCENE-9078
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9078
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Bruno Roustant
>            Priority: Major
>
> Make term vectors constant across the index. Remove the user ability to 
> modify the term vector options per doc, IndexWriter allows this.
> Once done, consider removing Fields, as the list of fields could be obtained 
> from FieldInfos. See the discussion in LUCENE-8041.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to