NeedQuickHelp: java.lang.NoSuchFieldError: LUCENE_7_3_1


#1

I am upgrading from 6.1.3 to 6.3.0

I am trying to initialize:
SearchSourceBuilder ssb = new SearchSourceBuilder();

Getting this error on above line:

java.lang.NoSuchFieldError: LUCENE_7_3_1
	at org.elasticsearch.Version.<clinit>(Version.java:168)
	at org.elasticsearch.common.logging.DeprecationLogger.<clinit>(DeprecationLogger.java:159)
	at org.elasticsearch.search.builder.SearchSourceBuilder.<clinit>(SearchSourceBuilder.java:80)
	at com.tomtom.andorra.essearcher.SearchEfforts.call(SearchEfforts.java:142)
	at com.tomtom.andorra.essearcher.SearchEfforts.call(SearchEfforts.java:1)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

This worked well with 6.1.3.


#2

My bad. I had got 7.2.1 dependency on my classpath. Fixed it myself.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.