Public bug reported:

Binary package hint: solr-jetty

First, let me just say thanks for bundling up Solr for Ubuntu. It is
very handy indeed to be able to apt-get it. At the Library of Congress
we use your package, and also use Solr's hit highlighting functionality.
Hit highlighting depends on the lucene-memory.jar library being
available. If it's not you will see errors like this when you attempt to
use hit highlighting parameters:

HTTP code=500, reason=org/apache/lucene/index/memory/MemoryIndex  
java.lang.NoClassDefFoundError: org/apache/lucene/index/memory/MemoryIndex
        at 
org.apache.lucene.search.highlight.WeightedSpanTermExtractor.getReaderForField(WeightedSpanTermExtractor.java:361)
        at 
org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extractWeightedSpanTerms(WeightedSpanTermExtractor.java:282)
        at 
org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:149)
        at 
org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:111)
        at 
org.apache.lucene.search.highlight.WeightedSpanTermExtractor.getWeightedSpanTerms(WeightedSpanTermExtractor.java:414)
        at org.apache.lucene.search.err
highlight.QueryScorer.initExtractor(QueryScorer.java:216)
        at 
org.apache.lucene.search.highlight.QueryScorer.init(QueryScorer.java:184)
        at 
org.apache.lucene.search.highlight.Highlighter.getBestTextFragments(Highlighter.java:226)
        at 
org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting(DefaultSolrHighlighter.java:335)
        at 
org.apache.solr.handler.component.HighlightComponent.process(HighlightComponent.java:89)
        at 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
        at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1317)    at 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
        at org.apache.solr.servlet.err sorry 
SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
        at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
        at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)     at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)

The fix is to symlink in the jar from where it is installed by solr-
common:

    sudo ln -s /usr/share/java/lucene-memory.jar /usr/share/solr/WEB-
INF/lib/lucene-memory.jar

Any chance this change could be rolled into the package so we (and
others using hit highlighting) won't have to do it manually on deploys?

** Affects: solr (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/709399

Title:
  lucene-memory.jar missing from WEB-INF/lib

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to