[Bug 2102106] Review Request: lucene - High-performance, full-featured text search engine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2102106



--- Comment #7 from jiri vanek <jvanek@xxxxxxxxxx> ---
Runtime issues:

I had tried one my older lucene usingproject -
https://src.fedoraproject.org/rpms/javadocofflinesearch ;
Had adapted it to most recent lucene:
 +Patch6:         lucene9.patch
-BuildRequires:  lucene-analysis
+BuildRequires:  lucene-analysis-common
-Requires:  lucene-analysis
+Requires:  lucene-analysis-common
 where lucene9.patch is 
https://github.com/judovana/JavadocOfflineSearch/commit/53f0c42ad08c930ce75618a7cea82f1d859a5b2f

Built it against this lucene (build from review) - all ok -
https://jvanek.fedorapeople.org/offlinesearch/

However runtime was worse.Where I agree with the renaming of the packages as by
directorcories tey are base on, some maven metadata were not propagated:

set_classpath "lucene-backward-codecs"   - found nothing
however both set_classpath "lucene-codecs" and set_classpath "lucene-backward"
did

When adjusted, the runtime of javadocofflinesearch fails with:

 /usr/bin/javadocofflinesearch -i /usr/share/javadoc/javadocofflinesearch/ -L
someNoNExistingJDOSlib
someNoNExistingJDOSlib will index: /usr/share/javadoc/javadocofflinesearch/
/home/jvanek/.config/JavadocOfflineSearch/someNoNExistingJDOSlib/javadocOfflineSearch.properties
dont exists. Creating with defaults.
Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.apache.lucene.codecs.Codec.getDefault(Codec.java:141)
        at
org.apache.lucene.index.LiveIndexWriterConfig.<init>(LiveIndexWriterConfig.java:128)
        at
org.apache.lucene.index.IndexWriterConfig.<init>(IndexWriterConfig.java:145)
        at javadocofflinesearch.lucene.MainIndex.index(MainIndex.java:87)
        at javadocofflinesearch.lucene.MainIndex.index(MainIndex.java:82)
        at
javadocofflinesearch.SingleSpaceInstance.run(SingleSpaceInstance.java:60)
        at
javadocofflinesearch.JavadocOfflineSearch.main(JavadocOfflineSearch.java:61)
Caused by: java.lang.IllegalArgumentException: An SPI class of type
org.apache.lucene.codecs.Codec with name 'Lucene92' does not exist.  You need
to add the corresponding JAR file supporting this SPI to your classpath.  The
current classpath supports the following names: []
        at
org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:113)
        at org.apache.lucene.codecs.Codec$Holder.<clinit>(Codec.java:58)
        ... 7 more



which suggests that the classapth is constructed wrongly. May you elaborate
please?  I had tried to dig into -x in  individual ` sh -x 
/usr/bin/build-classpath lucene-backward` and `bash -x
/usr/bin/javadocofflinesearch -i /usr/share/javadoc/javadocofflinesearch/ -L
someAnotherNoNExistingJDOSlib` but did not helped. The CP looked sane


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2102106
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux