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

Solr vs Lucene

2015-10-01 Thread Mark Fenbers
Greetings! Being a newbie, I'm still mostly in the dark regarding where the line is between Solr and Lucene. The following code snippet is -- I think -- all Lucene and no Solr. It is a significantly modified version of some example code I found on the net. dir = FSDirectory.open(FileSyste

Re: Extensibility and code reuse: SOLR vs Lucene

2014-05-20 Thread Yonik Seeley
On Tue, May 20, 2014 at 6:01 PM, Achim Domma wrote: > - I found several times code snippets like " if (collector instanceof > DelegatingCollector) { ((DelegatingCollector)collector).finish() } ". Such > code is considered bad practice in every OO language I know. Do I miss > something here? Is

Re: Extensibility and code reuse: SOLR vs Lucene

2014-05-20 Thread Joel Bernstein
Achim, Solr can be extended to plugin custom analytics. The code snippet you mention is part of the framework which enables this. Here is how you do it: 1) Create a QParserPlugin that returns a Query that extends PostFilter. 2) Then implement the PostFilter api and return a DelegatingCollector t

Extensibility and code reuse: SOLR vs Lucene

2014-05-20 Thread Achim Domma
Hi, I have a project, where we need to do aggregations over facetted values. The stats component is not powerful enough anymore and the new statistic component seems not to be ready yet. I understand that it's not easy to create a general purpose component for this task. I decided to check whet

Re: To optimize or not - Solr vs Lucene

2011-12-06 Thread Yonik Seeley
On Tue, Dec 6, 2011 at 5:04 PM, Scott Smith wrote: > If I read the 3.5 lucene javadocs, optimize() has been deprecated because it > is "rarely justified" with the current lucene index implementation It's functionality is not being deprecated... it's just that the method is being renamed in Lucen

To optimize or not - Solr vs Lucene

2011-12-06 Thread Scott Smith
Wasn't sure which mailing list to send this to. I'm writing an application that can be configured to run directly with lucene or with solr and I'm trying to figure out whether optimization of the index should be totally eliminated, eliminated in the lucene case only or what. If I read the 3.5

Re: Embedding Solr vs Lucene, multiple Solr cores?

2007-04-16 Thread Henrib
static Singletons i (and many others i suspect) would be > extremely gratefull .. both for how much it would improve hte reusability > of Solr in embedded situatiosn like this, but also for how it would > (hopefully) make hte code eaier to follow for future developers. > > > -Hoss > > > -- View this message in context: http://www.nabble.com/Embedding-Solr-vs-Lucene%2C-multiple-Solr-cores--tf3572324.html#a10020669 Sent from the Solr - User mailing list archive at Nabble.com.

Re: Embedding Solr vs Lucene, multiple Solr cores?

2007-04-13 Thread Chris Hostetter
: but does not want to deal with the application itself, leaving the 'business : users' side administer it. Even if there is a dedicated Tomcat for the main : app, IT will not let the 'business users' install other applications (scope : of responsibility, code versus data, validation procedures, e

Re: Embedding Solr vs Lucene, multiple Solr cores?

2007-04-13 Thread Henrib
d/delete doc) would need to carry >> which >> core they are targeting (one 'core' being set as the 'default' for >> compatibility purpose). >> What will be the other big hurdles, the ones that could even preclude the >> very idea ? (caches handli

Re: Embedding Solr vs Lucene, multiple Solr cores?

2007-04-13 Thread Tom Hill
27; schema...) ? Any advice welcome. Thanks. Henri -- View this message in context: http://www.nabble.com/Embedding-Solr-vs-Lucene%2C-multiple-Solr-cores--tf3572324.html#a9981355 Sent from the Solr - User mailing list archive at Nabble.com.

Re: Embedding Solr vs Lucene, multiple Solr cores?

2007-04-13 Thread Ryan McKinley
On 4/13/07, Henrib <[EMAIL PROTECTED]> wrote: I'm trying to choose between embedding Lucene versus embedding Solr in one webapp. In Solr terms, functional requirements would more or less lead to multiple schema & conf (need CRUD/generation on those) and deployment constraints imply one webapp i

Embedding Solr vs Lucene, multiple Solr cores?

2007-04-13 Thread Henrib
Are there any easier routes (class-loaders, 'provisional' schema...) ? Any advice welcome. Thanks. Henri -- View this message in context: http://www.nabble.com/Embedding-Solr-vs-Lucene%2C-multiple-Solr-cores--tf3572324.html#a9981355 Sent from the Solr - User mailing list archive at Nabble.com.