Minimum set of jars to run EmbeddedSolrServer

2020-09-28 Thread Alexandre Rafalovitch
Hello, Does anybody know (or even experimented) with what the minimum set of jars needed to run EmbeddedSolrServer. If I just include solr-core, that pulls in a huge number of Jars. I don't need - for example - Lucene analyzers for Korean and Japanese for this application. But what else

Re: EmbeddedSolrServer thread-safety

2019-11-13 Thread Kaminski, Adi
Hi Shawn, Thanks a lot for the clarification !! Regards, Adi Sent from Workspace ONE Boxer On Nov 13, 2019 19:09, Shawn Heisey wrote: On 11/13/2019 9:45 AM, Kaminski, Adi wrote: > Can someone confirm that EmbeddedSolrServer calss is thread-safe (meaning > from API perspective of add/

Re: EmbeddedSolrServer thread-safety

2019-11-13 Thread Shawn Heisey
On 11/13/2019 9:45 AM, Kaminski, Adi wrote: Can someone confirm that EmbeddedSolrServer calss is thread-safe (meaning from API perspective of add/delete/query operations by different threads)? It's not written in any documentation, and we have some different answers from different forums.

EmbeddedSolrServer thread-safety

2019-11-13 Thread Kaminski, Adi
Hi, Can someone confirm that EmbeddedSolrServer calss is thread-safe (meaning from API perspective of add/delete/query operations by different threads)? It's not written in any documentation, and we have some different answers from different forums. The question is regarding Solr 7.6 bin

Re: host and port for SolrTestCaseJ4 and EmbeddedSolrServer

2019-09-05 Thread Mikhail Khludnev
ame goes for > EmbeddedSolrServer? > How to know on which port and host it is running? > -- Sincerely yours Mikhail Khludnev

host and port for SolrTestCaseJ4 and EmbeddedSolrServer

2019-09-05 Thread Arnold Bronley
Hi, In SolrTestCaseJ4 there is initCore function. After using this function how to know on which host and port the solr is running. Same goes for EmbeddedSolrServer? How to know on which port and host it is running?

Re: EmbeddedSolrServer removed quietly in 7.0?

2018-01-09 Thread Robert Krüger
On Tue, Jan 9, 2018 at 11:37 AM, Shawn Heisey wrote: > On 1/9/2018 2:42 AM, Robert Krüger wrote: > >> I am looking to upgrade an application that still uses version 4.6.1 to >> latest solr (7.2) but realized that support for EmbeddedSolrServer seems >> to >> have

Re: EmbeddedSolrServer removed quietly in 7.0?

2018-01-09 Thread Shawn Heisey
On 1/9/2018 2:42 AM, Robert Krüger wrote: I am looking to upgrade an application that still uses version 4.6.1 to latest solr (7.2) but realized that support for EmbeddedSolrServer seems to have vanished with 7.0 but I could find no mention of it in the release notes, which strikes me as odd for

EmbeddedSolrServer removed quietly in 7.0?

2018-01-09 Thread Robert Krüger
Hi, I am looking to upgrade an application that still uses version 4.6.1 to latest solr (7.2) but realized that support for EmbeddedSolrServer seems to have vanished with 7.0 but I could find no mention of it in the release notes, which strikes me as odd for such a disruptive change. Is it

Re: EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Bryan Bende
but if you have any thoughts let me >> know. >> > >> > Thanks, >> > >> > Bryan >> > >> > >> > On Mon, Oct 3, 2016 at 2:07 PM, Alan Woodward wrote: >> > >> >> This should work: >> >> >> >> Solr

Re: EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Bryan Bende
t;> This should work: > >> > >> SolrCore solrCore > >>= coreContainer.create(coreName, Paths.get(coreHome).resolve( > coreName), > >> Collections.emptyMap()); > >> > >> > >> Alan Woodward > >> www.flax.co.uk >

Re: EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Alan Woodward
= coreContainer.create(coreName, >> Paths.get(coreHome).resolve(coreName), >> Collections.emptyMap()); >> >> >> Alan Woodward >> www.flax.co.uk >> >> >>> On 3 Oct 2016, at 18:41, Bryan Bende wrote: >>> >>>

Re: EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Bryan Bende
www.flax.co.uk > > > > On 3 Oct 2016, at 18:41, Bryan Bende wrote: > > > > Curious if anyone knows how to create an EmbeddedSolrServer in Solr 6.x, > > with a core where the dataDir is located somewhere outside of where the > > config is located. > > > >

Re: EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Alan Woodward
This should work: SolrCore solrCore = coreContainer.create(coreName, Paths.get(coreHome).resolve(coreName), Collections.emptyMap()); Alan Woodward www.flax.co.uk > On 3 Oct 2016, at 18:41, Bryan Bende wrote: > > Curious if anyone knows how to create an EmbeddedSolrServer

EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Bryan Bende
Curious if anyone knows how to create an EmbeddedSolrServer in Solr 6.x, with a core where the dataDir is located somewhere outside of where the config is located. I'd like to do this without system properties, and all through Java code. In Solr 5.x I was able to do this with the following

Re: EmbeddedSolrServer problem when using one-jar-with-dependency including solr

2016-08-03 Thread Steve Rowe
org/apache/lucene/lucene-solr-grandparent/6.1.0/lucene-solr-grandparent-6.1.0.pom >>> [5] <https://issues.apache.org/jira/browse/LUCENE-5217> >>> [6] < >>> http://search.maven.org/#artifactdetails|org.apache.lucene|lucene-core|6.1.0|jar >>>

Re: EmbeddedSolrServer problem when using one-jar-with-dependency including solr

2016-08-03 Thread Ziqi Zhang
dworks.com On Aug 2, 2016, at 12:03 PM, Ziqi Zhang wrote: Hi, I am using Solr, Solrj 6.1, and Maven to manage my project. I use maven to build a jar-with-dependency and run a java program pointing its classpath to this jar. However I keep getting errors even when I just try to create

Re: EmbeddedSolrServer problem when using one-jar-with-dependency including solr

2016-08-02 Thread Rohit Kanchan
manage my project. I use > maven to build a jar-with-dependency and run a java program pointing its > classpath to this jar. However I keep getting errors even when I just try > to create an instance of EmbeddedSolrServer: > > > > */code/ > > *String solr

Re: EmbeddedSolrServer problem when using one-jar-with-dependency including solr

2016-08-02 Thread Steve Rowe
i Zhang wrote: > > Hi, I am using Solr, Solrj 6.1, and Maven to manage my project. I use maven > to build a jar-with-dependency and run a java program pointing its classpath > to this jar. However I keep getting errors even when I just try to create an > instance of EmbeddedSolrSe

EmbeddedSolrServer problem when using one-jar-with-dependency including solr

2016-08-02 Thread Ziqi Zhang
Hi, I am using Solr, Solrj 6.1, and Maven to manage my project. I use maven to build a jar-with-dependency and run a java program pointing its classpath to this jar. However I keep getting errors even when I just try to create an instance of EmbeddedSolrServer: */code/ *String

Re: EmbeddedSolrServer Loading Core Containers Solr 4.3.1

2016-05-03 Thread Erick Erickson
OLR wrote: > Hi Team - > I am using Solr 4.3.1. > > We are using this EmbeddedSolrServer to load Core Containers in one of the > java application. > > This is setup as a cron job for every 1 hour to load the new data on to the > containers. > > Otherwise - the new data

EmbeddedSolrServer Loading Core Containers Solr 4.3.1

2016-05-02 Thread SRINI SOLR
Hi Team - I am using Solr 4.3.1. We are using this EmbeddedSolrServer to load Core Containers in one of the java application. This is setup as a cron job for every 1 hour to load the new data on to the containers. Otherwise - the new data is not getting loaded on the containers , if we access

Re: testing with EmbeddedSolrServer

2015-09-01 Thread Mikhail Khludnev
fig I can suggest you look at the short org.apache.solr.handler.dataimport.TestNestedChildren and use it as a sample to start from. On Tue, Sep 1, 2015 at 11:54 AM, Moen Endre wrote: > Mikhail, > > The purpose of using EmbeddedSolrServer is for testing, not for running as > main(

RE: testing with EmbeddedSolrServer

2015-09-01 Thread Moen Endre
Mikhail, The purpose of using EmbeddedSolrServer is for testing, not for running as main(). Is there a best practice for doing integration-testing of solr? Or of validating that queries to solr returns the expected result? E.g. I have this bit of production code: private String

Re: testing with EmbeddedSolrServer

2015-08-31 Thread Mikhail Khludnev
Endre, As I suggested before, consider to avoid test framework, just put all code interacting with EmbeddedSolrServer into main() method. On Mon, Aug 31, 2015 at 12:15 PM, Moen Endre wrote: > Hi Mikhail, > > Im trying to read 7-8 xml files of data that contain realistic data f

RE: testing with EmbeddedSolrServer

2015-08-31 Thread Moen Endre
Hi Mikhail, Im trying to read 7-8 xml files of data that contain realistic data from our production server. Then I would like to read this data into EmbeddedSolrServer to test for edge cases for our custom date search. The use of EmbeddedSolrServer is purely to separate the data testing from

Re: testing with EmbeddedSolrServer

2015-08-25 Thread Mikhail Khludnev
Hello, I'm trying to guess what are you doing. It's not clear so far. I found http://stackoverflow.com/questions/11951695/embedded-solr-dih My conclusion, if you play with DIH and EmbeddedSolrServer you'd better to avoid the third beast, you don't need to bother with tests. I

testing with EmbeddedSolrServer

2015-08-25 Thread Moen Endre
Is there an example of integration-testing with EmbeddedSolrServer that loads data from a data importhandler - then queries the data? Ive tried doing this based on org.apache.solr.client.solrj.embedded.TestEmbeddedSolrServerConstructors. But no data is being imported. Here is the test-class

RE: EmbeddedSolrServer No such core: collection1

2015-07-08 Thread Chaushu, Shani
Hi, My problem was that I didn't had core.properties file, so it couldn't create the core. Thanks for the help Shani -Original Message- From: Upayavira [mailto:u...@odoko.co.uk] Sent: Sunday, July 05, 2015 18:25 To: solr-user@lucene.apache.org Subject: Re: EmbeddedSolrServ

Re: EmbeddedSolrServer No such core: collection1

2015-07-05 Thread Upayavira
e.properties"), "name=" + coreName); // Create CoreContainer and EmbeddedSolrServer File solrXml = new File(solrHome, "solr.xml"); CoreContainer coreContainer = CoreContainer.createAndLoad(solrHome, solrXml); EmbeddedSolrServer newServer = new EmbeddedSolr

EmbeddedSolrServer No such core: collection1

2015-07-05 Thread Chaushu, Shani
Hi, I'm using EmbeddedSolrServer for testing the solr. I went step by step in this instuctions (for solr 4) https://wiki.searchtechnologies.com/index.php/Unit_Testing_with_Embedded_Solr I can see that the config loaded, but when I try to put document, the error I g

Re: Error while initializing EmbeddedSolrServer

2014-11-23 Thread Danesh Kuruppu
file > META-INF/services/org.apache.lucene.codecs.Codec > (you'll see it in the lucene-core jar) can't be found > > -Mike > > > On 11/22/2014 10:14 PM, Danesh Kuruppu wrote: > >> Hi all, >> >> I am using solr version 4.7.2. I need to use EmbeddedSolrServer. I am >&

Re: Error while initializing EmbeddedSolrServer

2014-11-23 Thread Michael Sokolov
be found -Mike On 11/22/2014 10:14 PM, Danesh Kuruppu wrote: Hi all, I am using solr version 4.7.2. I need to use EmbeddedSolrServer. I am getting following error while initializing the coreContainer Exception in thread "Thread-15" java.lang.NoClassDefFoundErro

Re: Error while initializing EmbeddedSolrServer

2014-11-23 Thread Mikhail Khludnev
all, > > I am using solr version 4.7.2. I need to use EmbeddedSolrServer. I am > getting following error while initializing the coreContainer > > Exception in thread "Thread-15" java.lang.NoClassDefFoundError: Could not > > initialize class org.apa

Error while initializing EmbeddedSolrServer

2014-11-22 Thread Danesh Kuruppu
Hi all, I am using solr version 4.7.2. I need to use EmbeddedSolrServer. I am getting following error while initializing the coreContainer Exception in thread "Thread-15" java.lang.NoClassDefFoundError: Could not > initialize class org.apache.lucene.codecs.C

Re: [Schema API] EmbeddedSolrServer Test

2014-07-11 Thread Alessandro Benedetti
hema', '/schema/', and '/schema/whatever...' > createJettyAndHarness(TEST_HOME(), "solrconfig.xml", > "schema-rest.xml", "/solr", true, extraServlets); I have some exception init solrRestApi param, let's see if i can fix them. Cheers 2014

Re: [Schema API] EmbeddedSolrServer Test

2014-07-10 Thread Chris Hostetter
EmbeddedSolrServer is really just for dealing with embedded SolrCore objects. It doesn't have ay of the other HTTP related plumbing assocaited with it -- which is why it can't be used for replication and/or cloud features, let alone the RESTLet based endpoints. if you want to wr

[Schema API] EmbeddedSolrServer Test

2014-07-10 Thread Alessandro Benedetti
Hi guys, I'm struggling testing schemaAPI REST endpoints thourgh EmbeddedSolrServer. Out of the box the Embedded Solr Server is not able to recognize the schema request handler. So I was trying to follow an approach like this : public static void init() throws Exception { > final S

Calling Shutdown Method of EmbeddedSolrServer with a RAMDirectoryFactory

2013-11-16 Thread Furkan KAMACI
I use EmbeddedSolrServer with a RAMDirectoryFactory at my test classes. Should I call shutdown() method at @AfterClass method? What is the usage for shutdown() methods of SolrServer's (especially in my case)?

Why EmbeddedSolrServer with a RAMDirectoryFactory Needs a Data Directory?

2013-11-16 Thread Furkan KAMACI
I am trying test frameworks of Solr and I've used AbstractSolrTestCase at my custom test codes. I do not test my Solr instance, I just test my custom application's interaction with Solr. I think that using an EmbeddedSolrServer with a RAMDirectoryFactory is a fast (everything happens

Re: Using EmbeddedSolrServer in Solr 4.4.0

2013-08-12 Thread Delip Rao
nd then > reproduce problems there first, before getting too deep into "embedded". > > -- Jack Krupansky > > -Original Message- From: Delip Rao > Sent: Monday, August 12, 2013 4:58 PM > To: solr-user@lucene.apache.org > Subject: Using EmbeddedSolrServer in S

Re: Using EmbeddedSolrServer in Solr 4.4.0

2013-08-12 Thread Jack Krupansky
ay, August 12, 2013 4:58 PM To: solr-user@lucene.apache.org Subject: Using EmbeddedSolrServer in Solr 4.4.0 Hello, I'm trying to teach myself how to use EmbeddedSolrServer for indexing and querying. I wrote a simple program -- Index a bunch of documents and query all documents. I'm using S

Using EmbeddedSolrServer in Solr 4.4.0

2013-08-12 Thread Delip Rao
Hello, I'm trying to teach myself how to use EmbeddedSolrServer for indexing and querying. I wrote a simple program -- Index a bunch of documents and query all documents. I'm using Solr 4.4.0 jars and I can't see any output from the query, i.e. I get 0 hits. 13/08/12 12:41:17 INF

Re: EmbeddedSolrServer Solr 4.4.0 bug?

2013-07-31 Thread Luis Cappa Banda
ably need to put something in CHANGES.txt to point this out... > > Alan Woodward > www.flax.co.uk > > > On 31 Jul 2013, at 08:53, Luis Cappa Banda wrote: > > > Hello guys, > > > > Since I upgrade from 4.1.0 to 4.4.0 version I've noticed that > > Em

Re: EmbeddedSolrServer Solr 4.4.0 bug?

2013-07-31 Thread Alan Woodward
... Alan Woodward www.flax.co.uk On 31 Jul 2013, at 08:53, Luis Cappa Banda wrote: > Hello guys, > > Since I upgrade from 4.1.0 to 4.4.0 version I've noticed that > EmbeddedSolrServer has changed a little the way of construction: > > *Solr 4.1.0 style:* > > Core

EmbeddedSolrServer Solr 4.4.0 bug?

2013-07-31 Thread Luis Cappa Banda
Hello guys, Since I upgrade from 4.1.0 to 4.4.0 version I've noticed that EmbeddedSolrServer has changed a little the way of construction: *Solr 4.1.0 style:* CoreContainer coreContainer = new CoreContainer(*solrHome, new File(solrHome+"/solr.xml"*)); EmbeddedSolrServer localS

Re: EmbeddedSolrServer for indexing

2013-07-03 Thread Alexandre Rafalovitch
t;> I'm experimenting with indexing using the EmbeddedSolrServer. Just to be > >> sure, as I understand it, I do not need a running instance of solr to > use > >> this, it literally is a running instance of solr. > > > > You are correct, EmbeddedSolrServer

Re: EmbeddedSolrServer for indexing

2013-07-03 Thread Brendan Grainger
Awesome thanks. What about indexing in a different core then renaming it once its done? Thanks Brendan On Jul 3, 2013, at 6:48 PM, Shawn Heisey wrote: > On 7/3/2013 2:45 PM, Brendan Grainger wrote: >> I'm experimenting with indexing using the EmbeddedSolrServer. Just to be

Re: EmbeddedSolrServer for indexing

2013-07-03 Thread Shawn Heisey
On 7/3/2013 2:45 PM, Brendan Grainger wrote: > I'm experimenting with indexing using the EmbeddedSolrServer. Just to be > sure, as I understand it, I do not need a running instance of solr to use > this, it literally is a running instance of solr. You are correct, EmbeddedSolrS

EmbeddedSolrServer for indexing

2013-07-03 Thread Brendan Grainger
Hi, I'm experimenting with indexing using the EmbeddedSolrServer. Just to be sure, as I understand it, I do not need a running instance of solr to use this, it literally is a running instance of solr. Given the above, how safe is it to use an EmbeddedSolrServer for indexing an index that

RE: EmbeddedSolrServer reference

2013-06-10 Thread Alex Sarco
Michael, thank you for your answer. You mean using HttpCommonsSolrServer? I thought of that, but I don't see the point of going through the network when I'm running in the same JVM/box as the main Solr server. I still would like a solution to my issue, since so far EmbeddedSolrSer

Re: EmbeddedSolrServer reference

2013-06-10 Thread Michael Della Bitta
Hi Alex, Why not just use two webapps and not use EmbeddedSolrServer, but do all your indexing as requests from your application to the Solr context next door? One advantage of doing it this way is that EmbeddedSolrServer has been deemphasized by the Solr team, so you might not get the

EmbeddedSolrServer reference

2013-06-10 Thread Alex Sarco
Hi, I'm running Solr 4.3 embedded in Tomcat, so there's a Solr server starting when Tomcat starts. In the same webapp, I also have a process to recreate the Lucene index when Solr starts. To do this, I have a singleton instance of EmbeddedSolrServer provided by Spring. This same i

Re: EmbeddedSolrServer

2013-05-02 Thread Shawn Heisey
On 5/2/2013 8:07 PM, Peri Subrahmanya wrote: > I actually have a maven project with a declared solrj dependency (4.2.1); Do > I need anything extra to get rid of the Zookeeper exception? I didn't see > jars specific to zookeeper in the list below that I would need. Any more > ideas please? Solr

Re: EmbeddedSolrServer

2013-05-02 Thread Peri Subrahmanya
all of the functionality of > my application, and I do not require the other jars found in > dist/solrj-lib, including zookeeper. When I add functionality in the > future, if I run into a class not found exception, I will add the > appropriate jar. > > If I were using CloudSolrServer, z

Re: EmbeddedSolrServer

2013-05-02 Thread Shawn Heisey
e future, if I run into a class not found exception, I will add the appropriate jar. If I were using CloudSolrServer, zookeeper would be required. With EmbeddedSolrServer, more Lucene and Solr jars are required, because that starts the Solr server itself within your application. Thanks, Shawn

Re: EmbeddedSolrServer

2013-05-02 Thread Alexandre Rafalovitch
1, 2013 at 7:51 AM, Peri Subrahmanya > wrote: >> I m trying to use the EmbeddedSolrServer and here is my sample code: >> >> CoreContainer.Initializer initializer = new CoreContainer.Initializer(); >> CoreContainer coreContainer = initializer.initialize(); >> EmbeddedSol

Re: EmbeddedSolrServer

2013-05-02 Thread Erick Erickson
Peri Subrahmanya wrote: > I m trying to use the EmbeddedSolrServer and here is my sample code: > > CoreContainer.Initializer initializer = new CoreContainer.Initializer(); > CoreContainer coreContainer = initializer.initialize(); > EmbeddedSolrServer server = new EmbeddedSolr

EmbeddedSolrServer

2013-05-01 Thread Peri Subrahmanya
I m trying to use the EmbeddedSolrServer and here is my sample code: CoreContainer.Initializer initializer = new CoreContainer.Initializer(); CoreContainer coreContainer = initializer.initialize(); EmbeddedSolrServer server = new EmbeddedSolrServer(coreContainer, ""); Upon running

Re: How do I make Soft Commits thru' EmbeddedSolrServer visible to Searcher?

2012-10-15 Thread solr_user_999
After a bit of research; I realized that if I am using EmbeddedSolrServer then I need to also do a hard commit in the Searcher (which runs in a separate jvm). So I tried that; but am getting a LockException. Looks like the EmbeddedSolrServer locks the Solr index for writing & when I try to

EmbeddedSolrServer and missing/unfound core

2012-08-12 Thread deniz
Hi all, I have been playing with Solr 4.0 and was trying to run some tutorials. >From the EmbeddedSolrServer example here http://wiki.apache.org/solr/Solrj, I was trying to get something similar Below is my code for that: package solrj.embedded; imp

Re: soft commits in EmbeddedSolrServer

2012-06-28 Thread Raimon Bosch
Yes, This worked for me: //Solr Server initialization System.setProperty("solr.solr.home", solrHome); CoreContainer.Initializer initializer = new CoreContainer.Initializer(); coreContainer = initializer.initialize(); server = new EmbeddedSolrServer(coreContainer, "your_corename&qu

Re: soft commits in EmbeddedSolrServer

2012-06-25 Thread Mark Miller
Yes - just pass the param same as you would if not using embedded On Jun 25, 2012, at 4:40 PM, Raimon Bosch wrote: > Old question but I'm still wondering if this is possible. I'm using Solr > 4.0. > > Can I use the EmbeddedSolrServer to perform soft commits? >

Re: soft commits in EmbeddedSolrServer

2012-06-25 Thread Raimon Bosch
Old question but I'm still wondering if this is possible. I'm using Solr 4.0. Can I use the EmbeddedSolrServer to perform soft commits? 2011/9/16 Raimon Bosch > Hi all, > > I'm checking how to do soft commits with the new version of Solr. I'm > using EmbeddedS

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-05-03 Thread pcrao
Hi, Can someone officially confirm that it is not supported by current Solr version to use both EmbeddedSolrServer(For Full indexing) and StreamingUpdateSolrServer(For Incremental indexing ) to update the same index? How can I request for enhancement in the next version? I think that this

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-26 Thread pcrao
Hi Ryan, I see. Yes, for incremental indexing(Hourly) we use StreamingUpdateSolrServer and it is faster than EmbeddedSolrServer. We are also using, Embedded server for full indexing on a daily basis and it is efficient for full indexing as it can handle large number of documents in a better way

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-26 Thread Ryan McKinley
In general -- i would not suggest mixing EmbeddedSolrServer with a different style (unless the other instances are read only). If you have multiple instances writing to the same files on disk you are asking for problems. Have you tried just using StreamingUpdateSolrServer for daily update? I

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-25 Thread pcrao
Hi, Any more thoughts?? Thanks, PC Rao. -- View this message in context: http://lucene.472066.n3.nabble.com/EmbeddedSolrServer-and-StreamingUpdateSolrServer-tp3889073p3940383.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-22 Thread pcrao
Hi Mikhail Khludnev, THank you for your help. Let me explain you the scenario about JVM. The JVM in which tomcat is running will not be restarted every time the StreamingUpdateSolrServer is running where as the EmbeddedSolrServer is a fresh JVM instance(new process) every time. In this scenario

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-22 Thread Mikhail Khludnev
Thanks, > PC Rao > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/EmbeddedSolrServer-and-StreamingUpdateSolrServer-tp3889073p3925014.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Sincerely yours Mikhail Khludnev ge...@yandex.ru <http://www.griddynamics.com>

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-19 Thread pcrao
Hi, Any update? Thanks, PC Rao -- View this message in context: http://lucene.472066.n3.nabble.com/EmbeddedSolrServer-and-StreamingUpdateSolrServer-tp3889073p3925014.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-17 Thread pcrao
Please let me know your thoughts. Thanks, PC Rao. -- View this message in context: http://lucene.472066.n3.nabble.com/EmbeddedSolrServer-and-StreamingUpdateSolrServer-tp3889073p3916521.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-13 Thread Mikhail Khludnev
is message in context: > http://lucene.472066.n3.nabble.com/EmbeddedSolrServer-and-StreamingUpdateSolrServer-tp3889073p3907223.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Sincerely yours Mikhail Khludnev ge...@yandex.ru <http://www.griddynamics.com>

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-12 Thread pcrao
Hi Shawn, Thanks for sharing your opinion. Mikhail Khludnev, what do you think of Shawn's opinion? Thanks, PC Rao. -- View this message in context: http://lucene.472066.n3.nabble.com/EmbeddedSolrServer-and-StreamingUpdateSolrServer-tp3889073p3907223.html Sent from the Solr - User mailing

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-12 Thread Shawn Heisey
On 4/12/2012 4:52 AM, pcrao wrote: I think the index is getting corrupted because StreamingUpdateSolrServer is keeping reference to some index files that are being deleted by EmbeddedSolrServer during commit/optimize process. As a result when I Index(Full) using EmbeddedSolrServer and then do

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-12 Thread pcrao
Hi Mikhail Khludnev, Thank you for the reply. I think the index is getting corrupted because StreamingUpdateSolrServer is keeping reference to some index files that are being deleted by EmbeddedSolrServer during commit/optimize process. As a result when I Index(Full) using EmbeddedSolrServer and

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-11 Thread Mikhail Khludnev
his. > > Thanks, > PC Rao. > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/EmbeddedSolrServer-and-StreamingUpdateSolrServer-tp3889073p3902171.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Sincerely yours Mikhail Khludnev ge...@yandex.ru <http://www.griddynamics.com>

Re: EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-11 Thread pcrao
Hi, Any update on this? Please let me know if you need additional information on this. Thanks, PC Rao. -- View this message in context: http://lucene.472066.n3.nabble.com/EmbeddedSolrServer-and-StreamingUpdateSolrServer-tp3889073p3902171.html Sent from the Solr - User mailing list archive at

EmbeddedSolrServer and StreamingUpdateSolrServer

2012-04-05 Thread pcrao
Hi, I am using EmbeddedSolrServer for full indexing (Multi core) and StreamingUpdateSolrServer for incremental indexing. The steps involved are mentioned below. Full indexing (Daily) 1) Start EmbeddedSolrServer 2) Delete all docs 3) Add all docs 4) Commit and optimize collection 5) Stop

[SOLVED] [MORE OR LESS] "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
r two. :-) Phil On Thu, Jan 5, 2012 at 7:45 PM, Phillip Rhodes wrote: > Hi all, I'm having an issue that I hope someone can shed some light on. > > I have a Groovy program, using Solr 3.5, where I am attempting to use > EmbeddedSolrServer using the instructions shown here: &

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 11:28 AM, Christopher Childs wrote: > Multicore does work with EmbeddedSolrServer. It's what we use in our > application. > > solr.xml is also relevant for configuring the cores. We do not do it in quite > the same manner that Phillip is des

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Christopher Childs
Multicore does work with EmbeddedSolrServer. It's what we use in our application. solr.xml is also relevant for configuring the cores. We do not do it in quite the same manner that Phillip is describing, though. Our CoreContainer is initialized by SolrDispatchFilter. After the core cont

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 11:03 AM, Erik Hatcher wrote: > > Again, EmbeddedSolrServer (unless I'm gravely mistaken!) doesn't do > multicore.  It's for a single core.  If you want multiple cores > supported... created multiple EmbeddedSolrServer instances.   You point th

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
I've also tried it the other way mentioned on the wiki, where you do this: File home = new File( "/path/to/solr/home" ); File f = new File( home, "solr.xml" ); CoreContainer container = new CoreContainer(); container.load( "/path/to/solr/home", f ); Embe

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Erik Hatcher
ves the same error (with the core name appended) such >> as "no such core: collection1" > > That probably means the home is not set properly, so it can't find solr.xml > Again, EmbeddedSolrServer (unless I'm gravely mistaken!) doesn't do multicore. It'

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Yury Kats
On 1/6/2012 10:19 AM, Phillip Rhodes wrote: > 2012/1/6 Yury Kats : >> >> Have you tried passing core name (collection1) to the c'tor, instead >> of the empty string? > > Yep, but that gives the same error (with the core name appended) such > as "no such core: collection1" That probably means the

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
2012/1/6 Yury Kats : > > Have you tried passing core name (collection1) to the c'tor, instead > of the empty string? Yep, but that gives the same error (with the core name appended) such as "no such core: collection1" Phil

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Yury Kats
resolved, and now I can launch Solr as a process, and use the > SolrJ implementation that talks http to it - from my program - and > everything works as expected. But still no joy with the > EmbeddedSolrServer. :-( Have you tried passing core name (collection1) to the c'tor, instead of the empty string?

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 8:06 AM, Erik Hatcher wrote: > Also note that an EmbeddedSolrServer is for a specific core, not for all > cores (and thus solr.xml is not used).  My hunch is that you > need to point > to the core's home directory, not to the parent of solr.xml. Oh,

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
http to it - from my program - and everything works as expected. But still no joy with the EmbeddedSolrServer. :-( If nothing obvious jumps out at anybody, I guess I'll just put a breakpoint in the code that initializes the EmbeddedSolrServer and start stepping through it and see if I ca

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Erik Hatcher
Also note that an EmbeddedSolrServer is for a specific core, not for all cores (and thus solr.xml is not used). My hunch is that you need to point to the core's home directory, not to the parent of solr.xml. Erik On Jan 6, 2012, at 03:06 , Sven Maurmann wrote: > Hi, >

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Sven Maurmann
um 01:45 schrieb Phillip Rhodes: > Hi all, I'm having an issue that I hope someone can shed some light on. > > I have a Groovy program, using Solr 3.5, where I am attempting to use > EmbeddedSolrServer using the instructions shown here: > > http://wiki.apache.org/solr/S

"no such core" error with EmbeddedSolrServer

2012-01-05 Thread Phillip Rhodes
Hi all, I'm having an issue that I hope someone can shed some light on. I have a Groovy program, using Solr 3.5, where I am attempting to use EmbeddedSolrServer using the instructions shown here: http://wiki.apache.org/solr/Solrj#EmbeddedSolrServer to that end, I have code setup like

soft commits in EmbeddedSolrServer

2011-09-16 Thread Raimon Bosch
Hi all, I'm checking how to do soft commits with the new version of Solr. I'm using EmbeddedSolrServer to add documents to my index. How can I perform a soft commit using this class? Is it possible? Or should I use the trunk? http://wiki.apache.org/solr/NearRealtimeS

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-18 Thread Erick Erickson
You've probably seen this page: http://wiki.apache.org/solr/HowToContribute, but here it is for reference Go ahead and open a JIRA at https://issues.apache.org/jira/browse/SOLR (you need to create an account) and attach your changes as a patch. That gets it into the system and folks can start

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-18 Thread Gabriele Kahlout
Thinking more about it, I can solve my immediate problem by just copy-pasting the classes I need into my own project packages (KISS like here ). I'd however suggest to refactor Solr code structure to be much more defaults-compliant making it easier fo

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
http://stackoverflow.com/questions/6034513/can-i-avoid-a-dependency-cycle-with-one-edge-being-a-test-dependency On Tue, May 17, 2011 at 6:49 PM, Gabriele Kahlout wrote: > > > > On Tue, May 17, 2011 at 3:52 PM, Gabriele Kahlout < > gabri...@mysimpatico.com> wrote: > >> >> >> On Tue, May 17, 2011 a

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
On Tue, May 17, 2011 at 3:52 PM, Gabriele Kahlout wrote: > > > On Tue, May 17, 2011 at 3:44 PM, Steven A Rowe wrote: > >> Hi Gabriele, >> >> On 5/17/2011 at 9:34 AM, Gabriele Kahlout wrote: >> > Solr Core should declare a test dependency on Solr Test Framework. >> >> I agree: >> >> - Solr Core sh

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
On Tue, May 17, 2011 at 3:44 PM, Steven A Rowe wrote: > Hi Gabriele, > > On 5/17/2011 at 9:34 AM, Gabriele Kahlout wrote: > > Solr Core should declare a test dependency on Solr Test Framework. > > I agree: > > - Solr Core should have a test-scope dependency on Solr Test Framework. > - Solr Test F

RE: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Steven A Rowe
Hi Gabriele, On 5/17/2011 at 9:34 AM, Gabriele Kahlout wrote: > Solr Core should declare a test dependency on Solr Test Framework. I agree: - Solr Core should have a test-scope dependency on Solr Test Framework. - Solr Test Framework should have a compile-scope dependency on Solr Core. But Mave

  1   2   3   >