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 <subharaj.ma...@gmail.com> wrote: > Hi, > > I am using Solrj 5.1 to talk add & delete docs from solr. Whenever there > is some exception while doing addition or dele

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

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

2016-02-10 Thread Debraj Manna
ick...@gmail.com> wrote: > This 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, D

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 =

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

2015-12-23 Thread Debraj Manna
tp://localhost:8983/solr) > > Thnx > > On Thu, Dec 10, 2015 at 10:39 AM, Debraj Manna <subharaj.ma...@gmail.com> > wrote: > > > The logs that I am seeing:- > > > > jabong@jabong1143:~/Downloads/software/dev/solr5$ sudo bin/solr start -p > > > &g

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

Re: Providing own _version field in solr doc

2015-12-23 Thread Debraj Manna
e, Dec 22, 2015 at 9:29 PM, Debraj Manna <subharaj.ma...@gmail.com> 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 P

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 <apa...@elyograg.org> wrote: > On 12/23/2015 10:30 AM, Debraj Manna wrote: > > For my use case I tried document centric version

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" <apa...@elyograg.org> 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,i

Re: Providing own _version field in solr doc

2015-12-22 Thread Debraj Manna
; Regards, >Alex. > > Newsletter and resources for Solr beginners and intermediates: > http://www.solr-start.com/ > > > On 14 December 2015 at 12:17, Debraj Manna <subharaj.ma...@gmail.com> > wrote: > > We have a use case in which there are multiple clien

Re: Replacing a document in Solr5

2015-12-20 Thread Debraj Manna
re changing > the state 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" representat

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: Replacing a document in Solr5

2015-12-18 Thread Debraj Manna
> Just send a SolrInputDocument with 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 <subharaj.ma...@gmail.com>: > > > Can someone let me know how can I replace a document on each upda

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" <subharaj.ma...@gmail.com> wrote: > Thanks Alex. This is what I was looking for. One more query how to set > this from s

Re: Providing own _version field in solr doc

2015-12-14 Thread Debraj Manna
> https://cwiki.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, 1

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-12 Thread Debraj Manna
ill have to request a real-time-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 <subharaj.ma...@gmail.com> > wrote: > > Is there

Re: Getting a document version back after updating

2015-12-12 Thread Debraj Manna
display/solr/Updating+Parts+of+Documents#UpdatingPartsofDocuments-OptimisticConcurrency > > > > Regards, > >Alex. > > > > Newsletter and resources for Solr beginners and intermediates: > > http://www.solr-start.com/ > > > > > > On 1

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
t; >> 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, > &g

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

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

2015-12-08 Thread Debraj Manna
amesh" <rr.ii...@gmail.com> 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