Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8960315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:38:10+00:00 2026-06-15T15:38:10+00:00

We are currently using sunspot 1.3.3 gem. We configured solr spellchecker component with JaroWinklerDistance

  • 0

We are currently using sunspot 1.3.3 gem. We configured solr spellchecker component with JaroWinklerDistance as below in solrConfig.xml. However, it results in ClassNotFoundException. How do we handle this? Is there some specific directory where we need to copy the jar file? How does one configure jetty/solr that is managed through sunspot?

<lst name="spellchecker">
     <str name="name">jarowinkler</str>
     <str name="field">spell</str>
     <str name="distanceMeasure">
       org.apache.lucene.search.spell.JaroWinklerDistance
     </str>
     <str name="spellcheckIndexDir">./spellchecker</str>
</lst>

We have already tried putting lucene-spellchecker**.jar under rails_app_root/solr/lib and it doesn’t work.

Thanks

exception stacktrace

HTTP ERROR: 500

Severe errors in solr configuration.

Check your log files for more detailed information on what may be
wrong.

If you want solr to continue after configuration errors, change:

false

in null

————————————————————- org.apache.solr.common.SolrException: Error loading class ‘
org.apache.lucene.search.spell.JaroWinklerDistance
‘ at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:373)
at
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:388)
at
org.apache.solr.spelling.AbstractLuceneSpellChecker.init(AbstractLuceneSpellChecker.java:95)
at
org.apache.solr.spelling.IndexBasedSpellChecker.init(IndexBasedSpellChecker.java:56)
at
org.apache.solr.handler.component.SpellCheckComponent.inform(SpellCheckComponent.java:274)
at
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486)
at org.apache.solr.core.SolrCore.(SolrCore.java:588) at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:210) at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616) at
org.mortbay.start.Main.invokeMain(Main.java:183) at
org.mortbay.start.Main.start(Main.java:497) at
org.mortbay.start.Main.main(Main.java:115) Caused by:
java.lang.ClassNotFoundException:
org.apache.lucene.search.spell.JaroWinklerDistance
at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:205) at
java.lang.ClassLoader.loadClass(ClassLoader.java:321) at
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:615) at
java.lang.ClassLoader.loadClass(ClassLoader.java:266) at
java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Class.java:264) at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:357)
… 32 more RequestURI=/solr/admin/

Powered by Jetty://

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:38:11+00:00Added an answer on June 15, 2026 at 3:38 pm

    The class should be included in one of the following jars :-

    • solr-lucene-spellchecker-X.X.0.jar
    • lucene-spellchecker-X.X.0.jar

    So you can confirm if the jar is included in the classpath when solr starts up and loads external jars.
    If you are executing it in Jetty, you can update the lib directives in SolrConfig.xml to look into the lib where the library exists.

    You can also want to look at this Interesting thread.

    Putting it on a single line :-

    <str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using RABL to output a Sunspot/SOLR result set and the search results
I'm using solr via the sunspot gem in a rails project. I am indexing
Im currently using PHP to fetch results from a mysql db. Im also displaying
Im currently using the JQuery UI extension for its search autocomplete. However, I need
Currently I am using thinking sphinx for search. Now I'm considering using sunspot or
While using Solr (we are currently using 3.5), how do we setup the Masters
Im currently using the code below to render the view for my sectioned tableView
Currently using solrServer = new CommonsHttpSolrServer(serverUrl); and with these jars.. apache-solr-core-3.6.0 apache-solr-solrj-3.6.0 commons-codec-1.6 commons-httpclient-3.1
Currently using the HTTPServletRequest class and specifically the .getQueryString method to retrieve an inputted
Currently using Google Analytics as a supplement to our paid tracking software, but neither

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.