Home > Enterprise >  ElasticSearch 8 SearchScript deprecated
ElasticSearch 8 SearchScript deprecated

Time:07-21

I am trying to migrate "SearchScript" java class for elasticsearch existing in version 6 to version 8. But this class is deprecated in version 8.

what class could replace it?

thank you in advance

CodePudding user response:

The SearchScript class has been removed in 7.0 and replaced by another one called ScoreScript

CodePudding user response:

Thank you for your reply.

It works for a lot of methods. But not for this one :

I now have a problem using the postings function; reader() is not recognized.

LeafReaderContext context; 

Postings = context.reader().postings(new Term(a,b)); 
  • Related