lucene - Integrating solr and openNLP -


i followed link integrate https://wiki.apache.org/solr/opennlp

installation

for english language testing: until lucene-2899 committed:

  1. pull latest trunk or 4.0 branch

  2. apply latest lucene-2899 patch

  3. do 'ant compile'

  4. cd solr/contrib/opennlp/src/test-files/training

i followed first 2 steps got following error while executing 3rd point

common.compile-core: [javac] compiling 10 source files /home/biginfolabs/solrtest/solr-lucene-trunk3/lucene/build/analysis/opennlp/classes/java  [javac] warning: [path] bad path element "/home/biginfolabs/solrtest/solr-lucene-trunk3/lucene/analysis/opennlp/lib/jwnl-1.3.3.jar": no such file or directory  [javac] /home/biginfolabs/solrtest/solr-lucene-trunk3/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/filterpayloadsfilter.java:43: error: cannot find symbol  [javac]     super(version.lucene_44, input);  [javac]                  ^ [javac]   symbol:   variable lucene_44 [javac]   location: class version [javac] /home/biginfolabs/solrtest/solr-lucene-trunk3/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/opennlptokenizer.java:56: error: no suitable constructor found tokenizer(reader) [javac]     super(input); [javac]     ^ [javac]     constructor tokenizer.tokenizer(attributefactory) not applicable [javac]       (actual argument reader cannot converted attributefactory method invocation conversion) [javac]     constructor tokenizer.tokenizer() not applicable [javac]       (actual , formal argument lists differ in length) [javac] 2 errors [javac] 1 warning 

im stuck how passthough step. wasted entire fix couldn't move bit. please me..?

as patch seems written against lucence 4.0. should attempt use patch lucene 4.0 sources. these can found on the svn tags of lucene's repository

the 4.0 sources found here http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_4_0_0/


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -