Hi Phil, Are you saying that you get this error when you create fresh core/collection? This sort of errors are usually related to schema being changed after some documents being indexed.
Thanks, Emir > On 25 Sep 2017, at 23:42, Phil Scadden <p.scad...@gns.cri.nz> wrote: > > I ran into a problem with indexing documents which I worked around by > changing data type, but I am curious as to how the setup could be made to > work. > > Solr 6.5.1 - Field type Long, multivalued false, DocValues. > > In indexing with Solr, I set the value of field with: > Long accessLevel > ... > accessLevel = qury.val(1); > ... > Document.addField("access", accessLevel); > > Solr fails to add the document with this message: > > "cannot change DocValues type from SORTED_SET to NUMERIC for field" > > ??? So how do you configure a single-valued Long type? > Notice: This email and any attachments are confidential and may not be used, > published or redistributed without the prior written consent of the Institute > of Geological and Nuclear Sciences Limited (GNS Science). If received in > error please destroy and immediately notify GNS Science. Do not copy or > disclose the contents.