On 3/4/2016 10:44 PM, Mugeesh Husain wrote:
> Thank for you consideration, I noticed all of the answer is docvalues
> related but i did not define any docvalue type in my schema that why i am
> little bit confuse.

Not having docValues is actually why you got the error.    When I
encountered this error last year, I opened this issue:

https://issues.apache.org/jira/browse/SOLR-8088

Lucene 5.0 eliminated something known as the FieldCache, which I believe
happened in LUCENE-5666.  I  don't understand all the implications, but
this affected Solr quite profoundly, and most of the problems were not
discovered until well after the 5.0 version was released.  Many of those
problems are still present in Solr, because fixing them will not be easy.

Adding docValues and reindexing will eliminate the error, but docValues
cannot be added to a TextField type (tokenized field).  You'll need to
copy the data to another field with copyField in your schema, and that
field will need to be a StrField type with docValues added.

Another problem is that an untokenized field may produce different
results than you are expecting, and in some cases those results might be
completely unusable.

Thanks,
Shawn

Reply via email to