lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manepalli, Kalyan" <>
Subject RE: How do I set up an embedded server with version 1.3.0 ?
Date Wed, 24 Jun 2009 18:47:08 GMT
Hi Ian,
	I use the embeddedSolrServer from a Solr Component. 
The code for invoking the embeddedSolrServer looks like this

SolrServer locServer = new EmbeddedSolrServer(SolrCore.getCoreDescriptor()
                .getCoreContainer(), "locationCore");
Where locationCore is the core name in the multicore environment.
In single core env you can pass ""

Kalyan Manepalli
-----Original Message-----
From: Ian Smith [] 
Sent: Wednesday, June 24, 2009 3:09 AM
Subject: How do I set up an embedded server with version 1.3.0 ?

Hi all,

I am a new Solr user, and am trying to run an embedded server using the
procedure at:

Both the constructor and the static factory are deprecated, and if I try
to use the procedure I end up with the following error:

Exception in thread "main" java.lang.NullPointerException:
CoreDescriptor required

Is there a more up to date procedure for this?  BTW I have the system
working fine with a command line server, I just want to use the embedded
one for testing.



Website Content Management

Tamar Science Park, 15 Research Way, Plymouth, PL6 8BT

Save a tree, think before printing this email.

This email contains proprietary information, some or all of which may be legally privileged.
It is for the intended recipient only. If an addressing or transmission error has misdirected
this email, please notify the author by replying to this email. If you are not the intended
recipient you may not use, disclose, distribute, copy, print or rely on this email. 

Email transmission cannot be guaranteed to be secure or error free, as information may be
intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. This
email and any files attached to it have been checked with virus detection software before
transmission. You should nonetheless carry out your own virus check before opening any attachment.
GOSS Interactive Ltd accepts no liability for any loss or damage that may be caused by software
Registered Office: c/o Bishop Fleming, Cobourg House, Mayflower Street, Plymouth, PL1 1LG.
 Company Registration No: 3553908  

View raw message