Hi
Use TextField.TYPE_STORED as the third argument in new Field()
see
https://github.com/apache/lucene-solr/blob/e27f44e3d78dfcec230c97e0a1240e3751daeff9/lucene/core/src/java/org/apache/lucene/document/TextField.java#L35C33-L35C44
On Thu, Apr 24, 2025 at 8:37 AM Saha, Rajib
wrote:
> Hi Experts,
Hi Experts,
We are migrating Lucene from 2.4.1 to 8.11.2.
During Migration for a part of code, we are getting below exception in 8.11.2
based changes from Red line colored.
=
java.lang.IllegalArgumentException: TokenStream fields must be indexed and
tokenized
at org.apache.lucene.do