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

Ishan Chattopadhyaya commented on LUCENE-7659:
----------------------------------------------

bq. I'm confused here: doesn't Solr know, from its schema, whether a field was 
indexed as doc values or not?
Fields that have DVs enabled and have not been indexed before cannot be used 
for DV updates. Dynamic fields are examples. We know that *_l_dvo are docValues 
fields. But if someone tries to update a field for that pattern, say 
price_l_dvo, it wouldn't exist as a DV field in the index.

> IndexWriter should expose field names
> -------------------------------------
>
>                 Key: LUCENE-7659
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7659
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Ishan Chattopadhyaya
>         Attachments: LUCENE-7659.patch, LUCENE-7659.patch, LUCENE-7659.patch
>
>
> While working on SOLR-5944, I needed a way to know whether applying an update 
> to a DV is possible (i.e. the DV exists or not), while deciding upon whether 
> or not to apply the update as an in-place update or a regular full document 
> update. This information is present at the IndexWriter in a FieldInfos 
> instance, and can be exposed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to