On Thu, 26 Jun 2008 16:25:46 -0500 (CDT)
"Geoffrey Young" <[EMAIL PROTECTED]> wrote:

> well *almost* - it works most excellently with q=$term but when I add
> spellchecker.q=$term things implode:
> 
> HTTP Status 500 - null java.lang.NullPointerException at
> org.apache.solr.handler.component.SpellCheckComponent.getTokens(SpellCheckComponent.java:215)
>  at
> org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:183)
>  at
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:156)
>  at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:125)
>  at org.apache.solr.core.SolrCore.execute(SolrCore.java:965) at
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
>  at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:272)
>  at...
> 
> not being a java guy I need to use solr out of the box, and adding
> spellchecker.q makes my multi-word terms checked at the phrase level
> ("mickey mouse") instead of at the word level ("mickey" "mouse") which  is
> the behavior I'm seeking.  the docs make it sound like I could write  my own
> SpellingQueryConverter, but... well, they also use both q and
> spellchecker.q at the same time, so it shouldn't implode like that :)


Hi again, Geoffrey et al,

I've tried this again, nightly build form 2008-06-25... I added the spellcheck 
component to my dismax using last-components (very handy!). I find that the 
following all work as expected :

using seperate q and spellcheck.q , documents returned (matching 'soundtrack') 
and suggestion (for 'rock')

http://localhost:8983/solr/_test_/select?q=rack&qt=dismax&spellcheck=true&spellcheck.onlyMorePopular=false&spellcheck.collate=true&debugQuery=true&spellcheck.build=true&spellcheck.reload=true&spellcheck.name=default

http://localhost:8983/solr/_test_/select?q=rack&qt=dismax&spellcheck.q=rack&spellcheck=true&spellcheck.onlyMorePopular=false&spellcheck.collate=true&debugQuery=true&spellcheck.build=true&spellcheck.reload=true&spellcheck.name=default

http://localhost:8983/solr/_test_/select?q=rack%20wedn&qt=dismax&spellcheck=true&spellcheck.onlyMorePopular=false&spellcheck.collate=true&debugQuery=true&spellcheck.build=true&spellcheck.reload=true&spellcheck.name=default


so far so good :) no null pointers .

B
_________________________
{Beto|Norberto|Numard} Meijome

"It is not the strongest of the species that survive, nor the most intelligent, 
but the one most responsive to change."
  Charles Darwin.

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.

Reply via email to