lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <>
Subject Re: basic question about updating a docValue
Date Tue, 07 May 2019 11:53:31 GMT
Sounds like you had some documents in the index already from before you
made ths change. You may need to delete, commit, reindex. Rather than
trying to overwrite.


On Tue, May 7, 2019, 1:03 AM Jerry Lin, <> wrote:

> Hi,
> I'm new to Solr and am using Solr 8, and the Java API client. I have a
> score that I would like to rank my documents by, and I do not need to
> retrieve the values. My understanding is that I should set indexed="true",
> stored="false", and DocValues="true". When I manually set up the schema in
> that way (with type plong), and I add a document by supplying an int, I
> get:
> Exception writing document ... to the index; possible analysis error:
> cannot change DocValues type from SORTED_NUMERIC to NUMERIC for field
> If I don't DocValues=false, the document update works fine. What should I
> do to resolve this error?
> Thank you,
> Jerry

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message