[ https://issues.apache.org/jira/browse/SOLR-11306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16195404#comment-16195404 ]
ASF subversion and git services commented on SOLR-11306: -------------------------------------------------------- Commit 6bceced607a6f0cd1d93f54361b39f23a5b94e7f in lucene-solr's branch refs/heads/branch_7x from [~varunthacker] [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6bceced ] SOLR-11306: Fix inaccurate comments on docValues and StrField in the example schemas > Solr example schemas inaccurate comments on docValues and StrField > ------------------------------------------------------------------- > > Key: SOLR-11306 > URL: https://issues.apache.org/jira/browse/SOLR-11306 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: examples > Affects Versions: 6.6, 7.0 > Reporter: Tom Burton-West > Priority: Minor > Attachments: SOLR-11306.patch > > > Several of the example managed-schema files have an outdated comment about > docValues and StrField. In Solr 6.6.0 these are under solr-6.6.0/solr/server > and the lines where the comment starts for each file are: > solr/configsets/basic_configs/conf/managed-schema:216: > solr/configsets/data_driven_schema_configs/conf/managed-schema:221: > solr/configsets/sample_techproducts_configs/conf/managed-schema:317 > In the case of > Solr-6.6.0/server/solr/configsets/basic_configs/conf/managed-schema, shortly > after the comment are some lines which seem to directly contradict the > comment: > 216 <!-- The StrField type is not analyzed, but indexed/stored verbatim. > 217 It supports doc values but in that case the field needs to be > 218 single-valued and either required or have a default value. > 219 --> > On line 221 a StrField is declared with docValues that is multiValued: > 221 <fieldType name="strings" class="solr.StrField" > sortMissingLast="true" multiValued="true" docValues="true" /> > Also note that the comments above say that the field must either be required > or have a default value, but line 221 appears to satisfy neither condition. > The JavaDocs indicate that StrField can be multi-valued > https://lucene.apache.org/core/6_6_0//core/org/apache/lucene/index/DocValuesType.html -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org