Re: Moving from Lucene to Solr?

2010-05-21 Thread Ryan McKinley
On Wed, May 19, 2010 at 6:38 AM, Peter Karich peat...@yahoo.de wrote:
 Hi all,

 while asking a question on stackoverflow [1] some other questions appear:
 Is SolrJ a recommended way to access Solr or should I prefer the HTTP
 interface?

solrj vs HTTP interface?  That will just be a matter of taste.  If you
are working in java, then solrj is likely a good option.



 How can I (j)unit-test Solr? (e.g. create+delete index via Java call)


If you want to mess with creating/removing indexes at runtime, see:
http://wiki.apache.org/solr/CoreAdmin


 Is Lucene faster than Solr? ... do you have experiences, preferable with
 the same index?

solr is built ontop of lucene, so in that regard it is the same speed.
 Depending on your app, the abstractions that solr makes may make it
less efficient then working directly in lucene.  Unless you have very
specialized needs, I doubt this will make a big difference.


Re: Moving from Lucene to Solr?

2010-05-19 Thread findbestopensource
Hi Peter,

You need to use Lucene,

   - To have more control
   - You cannot depend on any Web server
   - To use termvector, termdocs etc
   - You could easily extend to have your own Analyzer

You need to use Solr,

   - To index and search docs easily by writting few code
   - Solr is a standalone App and it takes care most of the stuff like
   optimizing,warmup the reader etc..
   - Solr could be extended to multiple nodes
   - To use facet

If you are developing your client in Java and want to use Solr then i would
advise to use SolrJ as it is easy and you don't need to care about HTTP
stuff. I use Solr using SolrJ in my project www.findbestopensource.com

Regards
Aditya
www.findbestopensource.com



On Wed, May 19, 2010 at 4:08 PM, Peter Karich peat...@yahoo.de wrote:

 Hi all,

 while asking a question on stackoverflow [1] some other questions appear:
 Is SolrJ a recommended way to access Solr or should I prefer the HTTP
 interface?

 How can I (j)unit-test Solr? (e.g. create+delete index via Java call)

 Is Lucene faster than Solr? ... do you have experiences, preferable with
 the same index?

 The background is an application which uses Lucene at the moment but I
 hardly need the facetting feature of Solr and I don't want to implement
 it in Lucene for myself.

 Regards,
 Peter.

 [1]

 http://stackoverflow.com/questions/2856427/situations-to-prefer-apache-lucene-over-solr




Re: Moving from Lucene to Solr?

2010-05-19 Thread Chris Hostetter

: Subject: Moving from Lucene to Solr?
: References: aanlktimxy1wscs_bjzkkkdy7dlrw1iober5kzszrf...@mail.gmail.com
: In-Reply-To: aanlktimxy1wscs_bjzkkkdy7dlrw1iober5kzszrf...@mail.gmail.com

http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email.  Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is hidden in that thread and gets less 
attention.   It makes following discussions in the mailing list archives 
particularly difficult.
See Also:  http://en.wikipedia.org/wiki/User:DonDiego/Thread_hijacking



-Hoss



Re: Moving from Lucene to Solr?

2010-05-19 Thread Peter Karich
Sorry. Wasn't intended as a hijacking :-(


: Subject: Moving from Lucene to Solr?
: References: aanlktimxy1wscs_bjzkkkdy7dlrw1iober5kzszrf...@mail.gmail.com
: In-Reply-To: aanlktimxy1wscs_bjzkkkdy7dlrw1iober5kzszrf...@mail.gmail.com

http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email.  Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is hidden in that thread and gets less 
attention.   It makes following discussions in the mailing list archives 
particularly difficult.
See Also:  http://en.wikipedia.org/wiki/User:DonDiego/Thread_hijacking



-Hoss