You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2017/12/22 19:28:00 UTC

[jira] [Commented] (SOLR-11792) tvrh component requires unique key to be stored and doesn't work with docValues

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

Erick Erickson commented on SOLR-11792:
---------------------------------------

I checked on 6.6.2 and I can get the termVectors with the above definition if 
1> I add termVectors="true" 
2> the <uniqueKey> field is stored.

But indeed none of this works if the id is stored="false" docValues="true".

WDYT about changing the title to reflect that the problem is with the <uniqueKey> having stored="false"?



> tvrh component requires unique key to be stored and doesn't work with docValues
> -------------------------------------------------------------------------------
>
>                 Key: SOLR-11792
>                 URL: https://issues.apache.org/jira/browse/SOLR-11792
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.6.2
>            Reporter: Nikolay Martynov
>
> If I create index with unique key defined like
> {code}
> <field name="uid" type="string" indexed="true" stored="false" required="true" docValues="true"/>
> {code}
> then searches seem to be working, but {{tvrh}} doesn't return any vectors for fields that have one stored.
> Upon a cursory look at the code it looks like {{tvrh}} component requires unique key to be specifically stored.
> Ideally {{tvrh}} should work fine with docValues. And at the very least this gotcha should be documented, probably here: https://lucene.apache.org/solr/guide/6_6/field-properties-by-use-case.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org