bq. The lucene-core7 had some useful functions like incrementToken which I could not find in previous versions because of that I used this version.
Do not do this. You simply cannot mix jar versions because there was a function in the old version that you want to use. The support for that function has been removed, which is why you can't find it. Worse, there's no guarantee that everything necessary to support that function is in a single jar file. You must work with a single version of Solr jars and figure out how you can get the same or equivalent functionality with the new code. Best, Erick On Sun, Jun 24, 2018 at 6:33 AM, Andrea Gazzarini <a.gazzar...@sease.io> wrote: > Hi, > I mean you should use Maven which would pickup, starting from a number (e.g. > 6.6.1), all the correct dependencies you need for developing the plugin. > Yes, the "top" libraries (e.g. Solr and Lucene) should have the same version > but on top of that, the plugin could require some other direct or indirect > dependency, and here there's no a magic rule for determining which version > of such dependency you would need. So again: please use Maven (or Gradle). > > About the second point: generally speaking, if you're targeting Solr 6.6.1 > your plugin will live in that context, with all the beauties coming with the > 6.6.1 version. And here, you can imagine why you cannot use something that > is not yet there, something that will be implemented in a later version. > > On top of that, if you meant the TokenStream.incrementToken method please > check better: this is part of the core Lucene API and unless I didn't get > you, you will find it also in past versions. > > Best, > Andrea > > > On 24/06/18 14:35, Zahra Aminolroaya wrote: >> >> Thanks Andrea. Do you mean all of my jar file versions should be 6.6.1? >> >> The lucene-core7 had some useful functions like incrementToken which I >> could not find in previous versions because of that I used this version. >> >> >> >> -- >> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html > >