java - Elastic Search Lucene version error -


i have simple es client send query local es server(1.4.1 version of es) , results , display user. now, took code different project x , tried use along x because need apis x. now, when run same code when in x, error , don't know how resolve. can please me this. exception in thread "main" java.lang.nosuchfielderror: lucene_3_6

at org.elasticsearch.version.<clinit>(version.java:45)  @ org.elasticsearch.node.internal.internalnode.<init>(internalnode.java:136)  @ org.elasticsearch.node.nodebuilder.build(nodebuilder.java:159)  @ org.elasticsearch.node.nodebuilder.node(nodebuilder.java:166)  @ org.bmi.elasticsearch.ranking.testclass2.main(testclass2.java:54) 

it seems trying use elasticsearch , lucene in project separate libraries.

elastissearch 1.4.1 based on lucene 4.10.2. can check release blog page here more details.

to solve problem need update lucene library version 4.10 , use version.lucene_current instead of lucene_3_6.

you can find here lucene 4.10 core api documentation.

i hope help. don't hesitate comment if have doubts.


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -