Re: Mapping Solr Exceptions to Error Code while using SolrJ

2016-02-24 Thread Debraj Manna
Hi, Any help or pointers in this issue? Thanks, On Wed, Feb 24, 2016 at 12:44 PM, Debraj Manna wrote: > Hi, > > I am using Solrj 5.1 to talk add & delete docs from solr. Whenever there > is some exception while doing addition or deletion. Solr is throwing > SolrServerExcep

Mapping Solr Exceptions to Error Code while using SolrJ

2016-02-23 Thread Debraj Manna
Hi, I am using Solrj 5.1 to talk add & delete docs from solr. Whenever there is some exception while doing addition or deletion. Solr is throwing SolrServerException with the error message in the exception. I am trying to map each error to an error code. For example if I am getting an exception m

Re: Knowing which doc failed to get added in solr during bulk addition in Solr 5.2

2016-02-10 Thread Debraj Manna
his has been a long standing issue, Hoss is doing some current work on it > see: > https://issues.apache.org/jira/browse/SOLR-445 > > But the short form is "no, not yet". > > Best, > Erick > > On Tue, Feb 9, 2016 at 8:19 AM, Debraj Manna > wrote: > &

Knowing which doc failed to get added in solr during bulk addition in Solr 5.2

2016-02-09 Thread Debraj Manna
Hi, I have a Document Centric Versioning Constraints added in solr schema:- false doc_version I am adding multiple documents in solr in a single call using SolrJ 5.2. The code fragment looks something like below :- try { UpdateResponse resp = solrClient.add(docs.getDocCollectio

Re: Providing own _version field in solr doc

2015-12-23 Thread Debraj Manna
Thanks Shawn :) . On Dec 24, 2015 1:12 AM, "Shawn Heisey" wrote: > On 12/23/2015 12:25 PM, Debraj Manna wrote: > > Thanks Shawn. But after making the below changes (making > versionable_chain > > as default) all my update,inserts & deleteByQuery are failing with t

Re: Providing own _version field in solr doc

2015-12-23 Thread Debraj Manna
sor must follow DocBasedVersionConstraintsProcessor*" doc_version false On Thu, Dec 24, 2015 at 12:06 AM, Shawn Heisey wrote: > On 12/23/2015 10:30 AM, Debraj Manna wrote: > > For my use case I tried document centric versioning as mentioned here > > <

Re: Best practices on monitoring Solr

2015-12-23 Thread Debraj Manna
We use datadog . On Thu, Dec 24, 2015 at 12:44 AM, Ahmet Arslan wrote: > > > Hi, > > http://newrelic.com is another option. > > Ahmet > > On Wednesday, December 23, 2015 4:26 PM, Florian Gleixner > wrote: > > > > On 12/22/2015 08:15 PM, Tiwari, Shailendra wrote: > >

Re: Providing own _version field in solr doc

2015-12-23 Thread Debraj Manna
e, Dec 22, 2015 at 9:29 PM, Debraj Manna wrote: > Hi Alex, > > Can you let us know what do you mean by > > *"timestamps" are truly atomic and not local clock-based." ?* > > *Thanks,* > > On Mon, Dec 14, 2015 at 10:53 PM, Alexandre Rafalovitch < > ara

Re: Increasing Solr5 time out from 30 seconds while starting solr

2015-12-23 Thread Debraj Manna
:01 AM, "Susheel Kumar" wrote: > Hi Debraj, > > From the log i can't see any issue/error. Do you mind running solr with -f > and see on console if you get any error otherwise launch Solr from browser > ( > http://localhost:8983/solr) > > Thnx > > On

Re: Providing own _version field in solr doc

2015-12-22 Thread Debraj Manna
> > Newsletter and resources for Solr beginners and intermediates: > http://www.solr-start.com/ > > > On 14 December 2015 at 12:17, Debraj Manna > wrote: > > We have a use case in which there are multiple clients writing > concurrently > > to solr. Each of t

Re: Replacing a document in Solr5

2015-12-20 Thread Debraj Manna
ate of a local transfer object (the SolrInputDocument instance). > Before sending that to Solr using solrClient.add(SolrInputDocument) you can > do whatever you want with that instance (i.e. removing, adding, setting > values). The "document" representation that Solr will see

Re: Replacing a document in Solr5

2015-12-18 Thread Debraj Manna
th an existing (i.e. already indexed) id > and the document (on Solr) will be replaced. > > Andrea > > 2015-12-19 8:16 GMT+01:00 Debraj Manna : > > > Can someone let me know how can I replace a document on each update in > Solr > > 5.2.1 using SolrJ? I don;t want t

Replacing a document in Solr5

2015-12-18 Thread Debraj Manna
Can someone let me know how can I replace a document on each update in Solr 5.2.1 using SolrJ? I don;t want to update parts of the document. On doing update it should replace the entire document.

Re: Providing own _version field in solr doc

2015-12-14 Thread Debraj Manna
ki.apache.org/confluence/display/solr/Updating+Parts+of+Documents#UpdatingPartsofDocuments-DocumentCentricVersioningConstraints > > http://lucene.apache.org/solr/5_4_0/solr-core/org/apache/solr/update/processor/DocBasedVersionConstraintsProcessorFactory.html > > > > : Date: Mon, 14 Dec 2015 22:47:43

Providing own _version field in solr doc

2015-12-14 Thread Debraj Manna
We have a use case in which there are multiple clients writing concurrently to solr. Each of the doc is having an 'timestamp' field which indicates when these docs were generated. We also have to ensure that any old doc doesn't overwrite any new doc in solr. So to achieve this we were thinking if

Re: Getting a document version back after updating

2015-12-14 Thread Debraj Manna
Is there any seperate api available in solrj 5.2.1 for setting version=true while adding or updating a solr doc? On Dec 13, 2015 8:03 AM, "Debraj Manna" wrote: > Thanks Alex. This is what I was looking for. One more query how to set > this from solrj while calling add() ? Do

Re: Getting a document version back after updating

2015-12-12 Thread Debraj Manna
artsofDocuments-OptimisticConcurrency > > > > Regards, > >Alex. > > > > Newsletter and resources for Solr beginners and intermediates: > > http://www.solr-start.com/ > > > > > > On 12 December 2015 at 11:35, Debraj Manna > wrote: > &g

Re: Getting a document version back after updating

2015-12-12 Thread Debraj Manna
-get with the unique key of the > document you added/updated. In Solr 5.1+ you can go > client.getById(String id) to get this information. > > On Sat, Dec 12, 2015 at 10:19 AM, Debraj Manna > wrote: > > Is there a way I can get the version of a document back in response after &

Getting a document version back after updating

2015-12-11 Thread Debraj Manna
Is there a way I can get the version of a document back in response after adding or updating the document via Solrj 5.2.1?

Re: Increasing Solr5 time out from 30 seconds while starting solr

2015-12-10 Thread Debraj Manna
les as Eric suggested or run with -f and see > the startup error on the console. Kill any existing instance or remove any > old PID file before starting with -f. > > Thnx > > On Wed, Dec 9, 2015 at 12:46 PM, Erick Erickson > wrote: > > > What does the Solr log file sa

Re: Increasing Solr5 time out from 30 seconds while starting solr

2015-12-08 Thread Debraj Manna
amesh" wrote: > Hi Debraj, > I dont think increasing the timeout will help. Are you sure solr/ any other > program is not running on 8789? Please check the output of lsof -i :8789 . > > Regards, > Rahul > > On Tue, Dec 8, 2015 at 11:58 PM, Debraj Manna > wrote: > >

Re: Increasing Solr5 time out from 30 seconds while starting solr

2015-12-08 Thread Debraj Manna
Can someone help me on this? On Dec 7, 2015 7:55 PM, "D" wrote: > Hi, > > Many time while starting solr I see the below message and then the solr is > not reachable. > > debraj@boutique3:~/solr5$ sudo bin/solr start -p 8789 > Waiting to see Solr listening on port 8789 [-] Still not seeing Solr