Re: SolrJ 503 Error

2013-12-21 Thread Shawn Heisey
On 12/21/2013 12:33 PM, S.L wrote: > I am running a single Solr instance with version 4.4 with Apache > Tomcat 7.0.42 ,I am aslo running a Nutch instance with about 20 > threads and each thread is committing a document in the Solr index > using the Solrj API , the version of Solrj API I > > use is

Re: Re-Indexing without downtime (using collection aliasing)

2013-12-21 Thread Shawn Heisey
On 12/21/2013 11:58 AM, Zahoor Mohamed wrote: > I want to do this without bringing production down... > by using collection aliases > >- Create a new index in production with date as collection name >- once done change the alias to point to the new collection >- remove/unload the old c

Re: indexing .docx using solrj

2013-12-21 Thread Ahmet Arslan
It looks like class path jars are mixed. Make clean fresh installation from scratch is recommended.  On Saturday, December 21, 2013 11:52 PM, sweety wrote: yes,i copied all jars from contrib/extraction to solr/lib. It is not getting the poi jar now, as mentioned in above post of mine, new err

Re: indexing .docx using solrj

2013-12-21 Thread sweety
yes,i copied all jars from contrib/extraction to solr/lib. It is not getting the poi jar now, as mentioned in above post of mine, new error it shows now. -- View this message in context: http://lucene.472066.n3.nabble.com/indexing-docx-using-solrj-tp4107737p4107758.html Sent from the Solr - Use

Re: indexing .docx using solrj

2013-12-21 Thread Ahmet Arslan
Hi, Did you add jar files under contrib/extraction/lib too? Since you are already using solrJ consider using  http://searchhub.org/2012/02/14/indexing-with-solrj/ On Saturday, December 21, 2013 11:29 PM, sweety wrote: solr: 4.2 tomcat: 7.0 jdk1.7.0.45 i have created solr home in c:\solr as

Re: indexing .docx using solrj

2013-12-21 Thread sweety
It is working now,i just restarted computer. But i dont still get the reason for the error. Thank you though,for your efforts. -- View this message in context: http://lucene.472066.n3.nabble.com/indexing-docx-using-solrj-tp4107737p4107755.html Sent from the Solr - User mailing list archive at N

Re: program termination in solrj

2013-12-21 Thread sweety
okay, i did a mistake, i did not refresh the stats,so the stats after running java program: commits:1 autocommits:0 soft autocommits:0 optimizes:0 rollbacks:0 expungeDeletes:0 docsPending:0 adds:0 deletesById:0 deletesByQuery:0 errors:0 cumulative_adds:1 cumulative_deletesById:0 cumulative_deletes

Re: program termination in solrj

2013-12-21 Thread sweety
also my default search handler has no dismax. explicit 20 * contents 2.1 -- View this message in context: http://lucene.472066.n3.nabble.com/program-termination-in-solrj-tp4107706p4107753.html Sent from the Solr - User mailing li

Re: indexing .docx using solrj

2013-12-21 Thread sweety
solr: 4.2 tomcat: 7.0 jdk1.7.0.45 i have created solr home in c:\solr as in java options: -Dsolr.solr.home=C:\solr c:solr/lib contains: tika jars, actually i pasted all the jars from the solr 4.2 dist,contrib folders in c:solr/lib tomcat/lib contains: all the jars when installed. -- View t

Re: SolrJ 503 Error

2013-12-21 Thread S.L
I have a 8GB machine , and I commit for each and every document that is added to Solr, not sure if I am missing anything here , but it seems I could use auto commit from your response , in that case do I not need to call the commit call , can you please point me to a resource that explains this ? T

Re: indexing .docx using solrj

2013-12-21 Thread Andrea Gazzarini
Ok, then please tell us a bit more about your context: - versions (solr / java / tomcat) - where are tika libs? In solr.home lib or in tomcat lib? On 21 Dec 2013 21:15, "sweety" wrote: > I have added that jar,in the build path. > but the same error,i get. > Why is eclipse not recognising that ja

Re: program termination in solrj

2013-12-21 Thread sweety
Before and after running client,stats remain same only, class:org.apache.solr.update.DirectUpdateHandler2 version:1.0 description:Update handler that efficiently directly updates the on-disk main lucene index src:$URL: https:/​/​svn.apache.org/​repos/​asf/​lucene/​dev/​branches/​branch_4x/​solr/​c

Re: indexing .docx using solrj

2013-12-21 Thread sweety
Jar is already there in the lib folder of solr home. -- View this message in context: http://lucene.472066.n3.nabble.com/indexing-docx-using-solrj-tp4107737p4107748.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: indexing .docx using solrj

2013-12-21 Thread Andrea Gazzarini
That is not a jar for your (eclipse) compiler but for tomcat. You should have that jar available in tomcat or (better) in lib folder of your solr.home Eclipse doesn't need to rcognise that On 21 Dec 2013 21:15, "sweety" wrote: > I have added that jar,in the build path. > but the same error,i get

Re: indexing .docx using solrj

2013-12-21 Thread sweety
I have added that jar,in the build path. but the same error,i get. Why is eclipse not recognising that jar?? Logs also show this, Caused by: java.lang.NoClassDefFoundError: org/apache/xml/serialize/BaseMarkupSerializer at org.apache.solr.handler.extraction.ExtractingRequestHandler.newLoad

Re: program termination in solrj

2013-12-21 Thread Andrea Gazzarini
No you don't need to do that. Nutan, Andrea told me that is going to raise the white flag :D Another question: Is possible that your default search handler uses dismax / edismax and therefore the query id:23 is not "valid" and returns 0 docs? Another question: could you try to - get and post th

Re: SolrJ 503 Error

2013-12-21 Thread Andrea Gazzarini
Not sure if we have the same scenario but I got the same error code when I was tryjng to do a lot of requests (updates and queries) with 10 secs of (hard) autocommit to a SOLR instance running in servlet engine (tomcat) with few resources (if I remember no more than 1GB of ram) Andrea Hi All, I a

Re: indexing .docx using solrj

2013-12-21 Thread Andrea Gazzarini
That class seems to be in xercesImpl jar...probably is a dependency of tika or a required lib of the underlying parser used for that kind of document Andrea On 21 Dec 2013 20:07, "sweety" wrote: > i am trying to index .docx file using solrj, i referred this link: > http://wiki.apache.org/solr/Co

SolrJ 503 Error

2013-12-21 Thread S.L
Hi All, I am running a single Solr instance with version 4.4 with Apache Tomcat 7.0.42 ,I am aslo running a Nutch instance with about 20 threads and each thread is committing a document in the Solr index using the Solrj API , the version of Solrj API I use is 4.3.1 , can anyone please let me know

Re: Prevent indexing of several phrases

2013-12-21 Thread Andrea Gazzarini
I would do that on client side or in an UpdateRequestProcessor Andrea On 21 Dec 2013 09:06, "Jorge Luis Betancourt González" wrote: > Right now we have a custom use case: Basically we are using a separated > solr core to store/suggest queries made by our users in our frontend app > (writtern y S

indexing .docx using solrj

2013-12-21 Thread sweety
i am trying to index .docx file using solrj, i referred this link: http://wiki.apache.org/solr/ContentStreamUpdateRequestExample My code is : import java.io.File; import java.io.IOException; import org.apache.solr.client.solrj.SolrServer; import org.apache.solr.client.solrj.SolrServerException;

Re-Indexing without downtime (using collection aliasing)

2013-12-21 Thread Zahoor Mohamed
Hi Iam using Solr 4.4 We re-Index our data every week... Right now the process has a down time - Create new index in staging - Bring production solr down - Copy the index to production - Start the production I want to do this without bringing production down... by using collection aliase

Re: Prevent indexing of several phrases

2013-12-21 Thread Jack Krupansky
Wouldn't it be better or at least easier to simply filter out the unacceptable phrases before you send them to Solr for indexing? -- Jack Krupansky -Original Message- From: Jorge Luis BetancourtGonzález Sent: Saturday, December 21, 2013 3:05 AM To: solr-user@lucene.apache.org Subject:

Re: program termination in solrj

2013-12-21 Thread Nutan
do i need to create a new schema.xml ? -- View this message in context: http://lucene.472066.n3.nabble.com/program-termination-in-solrj-tp4107706p4107734.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: program termination in solrj

2013-12-21 Thread Nutan
thru curl, pdf indexing, curl "http://localhost:8080/solr/document/update/extract?literal.id=12&commit=true"; -F"myfile=@C:\solr\document\src\test1\Coding.pdf" -- View this message in context: http://lucene.472066.n3.nabble.com/program-termination-in-solrj-tp4107706p4107730.html Sent from the

Re: program termination in solrj

2013-12-21 Thread Andrea Gazzarini
How did you get those 14 docs indexed? Could you please post the default search handler config? On 21 Dec 2013 15:53, "Nutan" wrote: > i check as with query: q=id:23, > response is : numfound=0, > > Statictics is: > > Last Modified:16 minutes ago > Num Docs:14 > Max Doc:16 > Deleted Docs:2 > Ver

Re: Configurable collectors for custom ranking

2013-12-21 Thread Joel Bernstein
Hi Peter, The fastest approach to doing this would to keep parallel hppc FloatArrayList for the scores and IntArrayList for the docs. Just add the docs and scores at collect time and iterate them in the finish. You'll be using more memory, but if you're looking for best possible performance then t

Re: program termination in solrj

2013-12-21 Thread Nutan
i check as with query: q=id:23, response is : numfound=0, Statictics is: Last Modified:16 minutes ago Num Docs:14 Max Doc:16 Deleted Docs:2 Version:495 Segment Count:5 Also for q=*:* , numfound=14 -- View this message in context: http://lucene.472066.n3.nabble.com/program-termination-in-sol

Re: program termination in solrj

2013-12-21 Thread Andrea Gazzarini
Source not found is not a problem and most important thing has nothing to do with solr Where did you see there are no doc in solr? Did you run a query? If so, - what query? - What was the response? - What is the config of the corresponding search handler? - Could you please verify that info in th

Re: program termination in solrj

2013-12-21 Thread Nutan
So is it only because of the sources not found, that the docs dont get indexed??? -- View this message in context: http://lucene.472066.n3.nabble.com/program-termination-in-solrj-tp4107706p4107719.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: program termination in solrj

2013-12-21 Thread Andrea Gazzarini
But those are not errors...the first is red because is write on eclipse stderr...but you can see the INFO level The second is Eclipse debugger that tells you about sources not found...but is not an error...just click on the button, locate sources (if you have) and you will able to debug tjose clas

Re: program termination in solrj

2013-12-21 Thread Nutan
I dont see docs in the solr. -- View this message in context: http://lucene.472066.n3.nabble.com/program-termination-in-solrj-tp4107706p4107717.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: program termination in solrj

2013-12-21 Thread Nutan
When i run the console output is this : Which shows that program got terminated. And from logs i am not able to find the solution. When debugged, at many places it shows that:

Re: program termination in solrj

2013-12-21 Thread Andrea Gazzarini
Hi Nutan, Is not really clear (at least to me) what your problem is. After you client program ends, are you seeing the doc in SOLR? because the piece of code you pasted I assume is (directly or indirectly) called from a main method...and therefore that program *normally* terminates once did its wor

Re: program termination in solrj

2013-12-21 Thread Nutan
I put the breakpoint at line : SolrInputDocument doc1 = new SolrInputDocument(); It initially showed source not found for Launcher.class,HTTPSolrServer.class. But now even for URLClassPath.class ,the path to this class is the src.jar in the jdk directory. -- View this message in context: http:

Re: program termination in solrj

2013-12-21 Thread Furkan KAMACI
Hi; What do you mean with: abnormal termination? Could you explain your situation a bit more? On the other hand do not look at the end of your log file, check the previous lines or open the Solr admin panel and look whether a warning or error exists. Thanks; Furkan KAMACI 21 Aralık 2013 Cumartes

Re: program termination in solrj

2013-12-21 Thread Andrea Gazzarini
Where's the error? On 21 Dec 2013 14:31, "Nutan" wrote: > @Manish: i did add() but still the same error. > > *Logs* shows this: > > INFO: [document] webapp=/solr path=/update params={wt=javabin&version=2} > {add=[23 (1455037990928646144)]} 0 5 > Dec 21, 2013 6:56:01 PM org.apache.solr.update.Dire

Re: program termination in solrj

2013-12-21 Thread Nutan
@Manish: i did add() but still the same error. *Logs* shows this: INFO: [document] webapp=/solr path=/update params={wt=javabin&version=2} {add=[23 (1455037990928646144)]} 0 5 Dec 21, 2013 6:56:01 PM org.apache.solr.update.DirectUpdateHandler2 commit INFO: start commit{,optimize=false,openSearche

Re: program termination in solrj

2013-12-21 Thread Manish Kumar
I think you are missing a call to *add * (Collection http://lucene.apache.org/solr/4_1_0/so

program termination in solrj

2013-12-21 Thread Nutan
i am trying to index documents with solrj, this is my code, import org.apache.solr.client.solrj.SolrServerException; import org.apache.solr.client.solrj.impl.*; import org.apache.solr.common.SolrInputDocument; import java.io.IOException; public class index { public static void main(String[] args

DataImportHandler and NoSuchMethodError : SolrCore.getSchema()

2013-12-21 Thread Puneet Pawaia
Hi all, I am using Solr 4.6 on Windows 7 64bit. I have everything setup including DataImportHandler using jetty. This works fine. However, when I transfer the entire example folder to Windows Server 2012 64bit, I start getting a NoSuchMethodError for SolrCore.getSchema(). I Both machines run the

Prevent indexing of several phrases

2013-12-21 Thread Jorge Luis Betancourt González
Right now we have a custom use case: Basically we are using a separated solr core to store/suggest queries made by our users in our frontend app (writtern y Symfony2+Solarium). So basically each time a user hits our search box the query goes into this particular core. The thing is that there are