Re: Solr vs Lucene

2015-10-02 Thread Jack Krupansky
Did you have a specific reason why you didn't want to send an HTTP request to Solr to perform the spellcheck operation? I mean, that is probably easier than diving into raw Lucene code. Also, Solr lets you do a spellcheck from a remote client whereas the Lucene spellcheck needs to be on the same ma

Re: Solr vs Lucene

2015-10-02 Thread Mark Fenbers
Thanks for the suggestion, but I've looked at aspell and hunspell and neither provide a native Java API. Further, I already use Solr for a search engine, too, so why not stick with this infrastructure for spelling, too? I think it will work well for me once I figure out the right configuratio

Re: Solr vs Lucene

2015-10-01 Thread Walter Underwood
If you want a spell checker, don’t use a search engine. Use a spell checker. Something like aspell (http://aspell.net/ ) will be faster and better than Solr. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Oct 1, 2015, at 1:06 P

Re: Solr vs Lucene

2015-10-01 Thread Mark Fenbers
This is with Solr. The Lucene approach (assuming that is what is in my Java code, shared previously) works flawlessly, albeit with fewer options, AFAIK. I'm not sure what you mean by "business case"... I'm wanting to spell-check user-supplied text in my Java app. The end-user then activate

Re: Solr vs Lucene

2015-10-01 Thread Alexandre Rafalovitch
Is that with Lucene or with Solr? Because Solr has several different spell-checker modules you can configure. I would recommend trying them first. And, frankly, I still don't know what your business case is. Regards, Alex. Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:

Re: Solr vs Lucene

2015-10-01 Thread Mark Fenbers
Yes, and I've spend numerous hours configuring and reconfiguring, and eventually even starting over, but still have not getting it to work right. Even now, I'm getting bizarre results. For example, I query "NOTE: This is purely as an example." and I get back really bizarre suggestions, lik

Re: Solr vs Lucene

2015-10-01 Thread Alexandre Rafalovitch
Hi Mark, Have you gone through a Solr tutorial yet? If/when you do, you will see you don't need to code any of this. It is configured as part of the web-facing total offering which are tweaked by XML configuration files (or REST API calls). And most of the standard pipelines are already pre-config