Near-Realtime-Search, CommitWithin and AtomicUpdates

2020-06-16 Thread Mirko Sertic
yntax, including updates and deletes. These changes are commited using the commitWithin configuration every 30 seconds.   Now I want to use AtomicUpdates on MultiValue'd fields, so I post the "add" commands for these fields only. Sometimes I have to post multiple Solr commands affecti

Re: Does commitWithin override autoSoftCommit?

2019-07-18 Thread Benjamin Mellish
nd adjusting my commitWithin time down to about 1 second. I'm getting pretty good results this way. Is there another suggestion about how I might get a single field with a state out of a doc in NRT without adjusting these fields? I forgot to mention I'm using 4.10. On Thu, Jul 18, 2019, 8:

Re: Does commitWithin override autoSoftCommit?

2019-07-18 Thread Shawn Heisey
On 7/18/2019 9:37 AM, Benjamin Mellish wrote: I have a solrconfig.xml file as follows: 2000 2 false ${solr.ulog.dir:} But I also submit records with a 'commitWithin' of 10 seconds. It seems that my documen

Does commitWithin override autoSoftCommit?

2019-07-18 Thread Benjamin Mellish
I have a solrconfig.xml file as follows: 2000 2 false ${solr.ulog.dir:} But I also submit records with a 'commitWithin' of 10 seconds. It seems that my documents are not searchable with the soft commit every second,

Re: In which order are commitwithin delete/add executed?

2017-10-30 Thread David Svånå
Perfect! Thanks Erick. On Mon, Oct 30, 2017 at 3:57 PM, Erick Erickson wrote: > Solr executes the deletes and adds in the order they are received. > Commitwithin isn't relevant to the execution order. > > commitWithin just controls when the accumulated changes are flushed

Re: In which order are commitwithin delete/add executed?

2017-10-30 Thread Erick Erickson
Solr executes the deletes and adds in the order they are received. Commitwithin isn't relevant to the execution order. commitWithin just controls when the accumulated changes are flushed to a new index segment and is global, not per request. Let's say Solr gets a request with commit

In which order are commitwithin delete/add executed?

2017-10-30 Thread David Svånå
Hi, If I send multiple instructions /update with a bunch of deletes and adds, all having commitWithin specified, how can I make sure that the instructions are executed in the same order as I send them in? For example, if both a delete and an add is sent for the same ID, I want to be able to

Re: no replication using commitWithin via curl?

2014-12-30 Thread Brendan Humphreys
re are any hints as to > whats going on. > > Cheers, > -Brendan > > > > On 30 December 2014 at 12:57, Shawn Heisey wrote: > >> On 12/29/2014 4:11 PM, Brendan Humphreys wrote: >> > We've noticed that when we send deletes to our SolrCloud cluster via >>

Re: no replication using commitWithin via curl?

2014-12-29 Thread Brendan Humphreys
n. Cheers, -Brendan On 30 December 2014 at 12:57, Shawn Heisey wrote: > On 12/29/2014 4:11 PM, Brendan Humphreys wrote: > > We've noticed that when we send deletes to our SolrCloud cluster via curl > > with the param commitWithin=1 specified, the deletes are applied and

Re: no replication using commitWithin via curl?

2014-12-29 Thread Shawn Heisey
On 12/29/2014 4:11 PM, Brendan Humphreys wrote: > We've noticed that when we send deletes to our SolrCloud cluster via curl > with the param commitWithin=1 specified, the deletes are applied and > are visible to the leader node, but aren't replicated to other nodes. >

Re: no replication using commitWithin via curl?

2014-12-29 Thread Brendan Humphreys
I've confirmed this is also happens with deletes via SolrJ with commitWithin - the document is deleted from the leader but the delete is not replicated to other nodes. Document updates are replicated fine. Any help in debugging this behaviour would be much appreciated. Cheers, -Brendan

no replication using commitWithin via curl?

2014-12-29 Thread Brendan Humphreys
Hi, We've noticed that when we send deletes to our SolrCloud cluster via curl with the param commitWithin=1 specified, the deletes are applied and are visible to the leader node, but aren't replicated to other nodes. The problem can be worked around by issuing an explicit (har

Re: Solr perfromance with commitWithin seesm too good to be true. I am afraid I am missing something

2014-02-12 Thread Jack Krupansky
time could well be more than enough for the short-interval autoCommit or commitWithin to run in the background and in parallel with the request return to your app and the submission by your app of the subsequent request. The magic of asynchronous operation in a parallel and distributed

Re: Solr perfromance with commitWithin seesm too good to be true. I am afraid I am missing something

2014-02-12 Thread Erick Erickson
; According to this wiki: > > https://wiki.apache.org/solr/NearRealtimeSearch > > the commitWithin is a soft-commit by default. Soft-commits are very > efficient in terms of making the added documents immediately searchable. > But! They are not on the disk yet. That means the document

Re: Solr perfromance with commitWithin seesm too good to be true. I am afraid I am missing something

2014-02-12 Thread Dmitry Kan
Cross-posting my answer from SO: According to this wiki: https://wiki.apache.org/solr/NearRealtimeSearch the commitWithin is a soft-commit by default. Soft-commits are very efficient in terms of making the added documents immediately searchable. But! They are not on the disk yet. That means the

RE: Solr perfromance with commitWithin seesm too good to be true. I am afraid I am missing something

2014-02-12 Thread Pisarev, Vitaliy
making a commit- from a functional perspective. Seeing that there is no magic in the world, I am trying to understand what is the price I am actually paying when using the commitWithin feature, on the one hand it commits almost immediately, on the other hand, it performs wonderfully. Where is

Re: Solr perfromance with commitWithin seesm too good to be true. I am afraid I am missing something

2014-02-12 Thread Joel Bernstein
Yes, committing after each document will greatly degrade performance. I typically use autoCommit and autoSoftCommit to set the time interval between commits, but commitWithin should have a similar effect.. I often see performance of 2000+ docs per second on the load using auto commits. When

Re: Solr perfromance with commitWithin seesm too good to be true. I am afraid I am missing something

2014-02-12 Thread Mark Miller
Doing a standard commit after every document is a Solr anti-pattern. commitWithin is a “near-realtime” commit in recent versions of Solr and not a standard commit. https://cwiki.apache.org/confluence/display/solr/Near+Real+Time+Searching - Mark http://about.me/markrmiller On Feb 12, 2014, at

Solr perfromance with commitWithin seesm too good to be true. I am afraid I am missing something

2014-02-12 Thread Pisarev, Vitaliy
documents 2. Indexing included - commit after each add. ~8 minutes (!) to post and index 2000 documents 3. Indexing included - commitWithin 1ms ~55 seconds (!) to post and index 2000 documents The 3rd result does not make any sense, I would expect the behavior to be similar to the one in point 2

Re: Possible regression for Solr 4.6.0 - commitWithin does not work with replicas

2014-01-29 Thread Elodie Sannier
I have this configuration for test servers (the order of the instance start leads to this conf.) not for production. Elodie On 01/23/2014 04:35 PM, Shawn Heisey wrote: On 12/11/2013 2:41 AM, Elodie Sannier wrote: collection fr_blue: - shard1 -> server-01 (replica1), server-01 (replica2) - shar

Re: Possible regression for Solr 4.6.0 - commitWithin does not work with replicas

2014-01-23 Thread Shawn Heisey
On 12/11/2013 2:41 AM, Elodie Sannier wrote: > collection fr_blue: > - shard1 -> server-01 (replica1), server-01 (replica2) > - shard2 -> server-02 (replica1), server-02 (replica2) > > collection fr_green: > - shard1 -> server-01 (replica1), server-01 (replica2) > - shard2 -> server-02 (replica1),

Re: Possible regression for Solr 4.6.0 - commitWithin does not work with replicas

2014-01-23 Thread Varun Thacker
; - shard2 -> server-02 (replica1), server-02 (replica2) > > I add documents using solrj CloudSolrServer and using commitWithin feature > : > int commitWithinMs = 3; > SolrServer server = new CloudSolrServer(zkHost); > server.add(doc, commitWithinMs); > > When I query

Possible regression for Solr 4.6.0 - commitWithin does not work with replicas

2013-12-11 Thread Elodie Sannier
server-01 (replica2) - shard2 -> server-02 (replica1), server-02 (replica2) I add documents using solrj CloudSolrServer and using commitWithin feature : int commitWithinMs = 3; SolrServer server = new CloudSolrServer(zkHost); server.add(doc, commitWithinMs); When I query an instance, f

Re: JSON update request handler & commitWithin

2013-09-05 Thread Ryan, Brent
Ya, looks like this is a bug in Datastax Enterprise 3.1.2. I'm using their enterprise cluster search product which is built on SOLR 4. :( On 9/5/13 11:24 AM, "Jack Krupansky" wrote: >I just tried commitWithin with the standard Solr example in Solr 4.4 and >it w

Re: JSON update request handler & commitWithin

2013-09-05 Thread Jason Hellman
;Ryan, Brent" wrote: > Ya, looks like this is a bug in Datastax Enterprise 3.1.2. I'm using > their enterprise cluster search product which is built on SOLR 4. > > :( > > > > On 9/5/13 11:24 AM, "Jack Krupansky" wrote: > >> I just tried c

Re: JSON update request handler & commitWithin

2013-09-05 Thread Jack Krupansky
I just tried commitWithin with the standard Solr example in Solr 4.4 and it works fine. Can you reproduce your problem using the standard Solr example in Solr 4.4? -- Jack Krupansky From: Ryan, Brent Sent: Thursday, September 05, 2013 10:39 AM To: solr-user@lucene.apache.org Subject: JSON

JSON update request handler & commitWithin

2013-09-05 Thread Ryan, Brent
I'm prototyping a search product for us and I was trying to use the "commitWithin" parameter for posting updated JSON documents like so: curl -v 'http://localhost:8983/solr/proposal.solr/update/json?commitWithin=1' --data-binary @rfp.json -H 'Content-type:a

Re: deleteById commitWithin question

2012-07-05 Thread Jamie Johnson
; replicas). I indexed the example docs, then queried both shards to > verify the doc existed on both. Then I deleted the doc through the > non-leader via: > curl "http://localhost:7574/solr/update?commitWithin=6"; -H > 'Content-type:application/json' -d &#x

Re: deleteById commitWithin question

2012-07-05 Thread Yonik Seeley
verify the doc existed on both. Then I deleted the doc through the non-leader via: curl "http://localhost:7574/solr/update?commitWithin=6"; -H 'Content-type:application/json' -d '{"delete": { "id":"SOLR1000"}}' This was to test both t

Re: deleteById commitWithin question

2012-07-05 Thread Jamie Johnson
gt; > On Thu, Jul 5, 2012 at 4:47 PM, Yonik Seeley > wrote: >> On Thu, Jul 5, 2012 at 4:29 PM, Jamie Johnson wrote: >>> I am running off of a snapshot taken 5/3/2012 of solr 4.0 and am >>> noticing some issues around deleteById when a commitWithin parameter >>>

Re: deleteById commitWithin question

2012-07-05 Thread Jamie Johnson
; noticing some issues around deleteById when a commitWithin parameter >> is included using SolrJ > > Oh wait... I just realized you were talking about SolrJ specifically - > so the issue may be there. > > -Yonik > http://lucidimagination.com

Re: deleteById commitWithin question

2012-07-05 Thread Yonik Seeley
On Thu, Jul 5, 2012 at 4:29 PM, Jamie Johnson wrote: > I am running off of a snapshot taken 5/3/2012 of solr 4.0 and am > noticing some issues around deleteById when a commitWithin parameter > is included using SolrJ Oh wait... I just realized you were talking about SolrJ specifically

Re: deleteById commitWithin question

2012-07-05 Thread Yonik Seeley
On Thu, Jul 5, 2012 at 4:29 PM, Jamie Johnson wrote: > I am running off of a snapshot taken 5/3/2012 of solr 4.0 and am > noticing some issues around deleteById when a commitWithin parameter > is included using SolrJ, specifically commit isn't executed.  If I > later just call c

deleteById commitWithin question

2012-07-05 Thread Jamie Johnson
I am running off of a snapshot taken 5/3/2012 of solr 4.0 and am noticing some issues around deleteById when a commitWithin parameter is included using SolrJ, specifically commit isn't executed. If I later just call commit on the solr instance I see the item is deleted though. Is anyone awa

Re: Commitwithin

2012-04-04 Thread Mark Miller
Solr version? I think that for a while now, deletes where not triggering commitWithin. I think this was recently fixed - if I remember right it will be part of 3.6 and then 4. - Mark Miller lucidimagination.com On Apr 4, 2012, at 10:12 AM, Jens Ellenberg wrote: > Hello, > > I am

Commitwithin

2012-04-04 Thread Jens Ellenberg
Hello, I am trying to use commitwithin in Java but there seams to be no commit at all with this option. 1. Example Code: UpdateRequest request = new UpdateRequest(); request.deleteByQuery("fild:value"); request.setCommitWithin(1); System.o

Re: SOLRJ commitWithin inconsistent

2011-11-10 Thread Mark Miller
Always best to give the version of Solr you are using out of the gate. How large is your index? It may be that sometimes background merges are triggered, and sometimes they are not. Also, some bugs around the autocommit code (commitWithin shares a lot of code with autocommit) have recently

Re: SOLRJ commitWithin inconsistent

2011-11-10 Thread Jan Høydahl
nov. 2011, at 04:40, Vijay Sampath wrote: > Hi, > > I'm using CommitWithin for immediate commit. The response times are > inconsistent. Sometimes it's less than a second. Sometimes more than 25 > seconds. I'm not sending concurrent requests. Any idea? > >

Re: SOLRJ commitWithin inconsistent

2011-11-03 Thread Nagendra Nagarajayya
.x You can download Solr 3.3/3.4.0 with RankingAlgorithm 1.3 from here: http://solr-ra.tgels.org Regards, - Nagendra Nagarajayya http://solr-ra.tgels.org http://rankingalgorithm.tgels.org On 11/2/2011 8:40 PM, Vijay Sampath wrote: Hi, I'm using CommitWithin for immediate commit.

SOLRJ commitWithin inconsistent

2011-11-02 Thread Vijay Sampath
Hi, I'm using CommitWithin for immediate commit. The response times are inconsistent. Sometimes it's less than a second. Sometimes more than 25 seconds. I'm not sending concurrent requests. Any idea? http://wiki.apache.org/solr/CommitWithin Snippet: UpdateRe

StreamingUpdateSolrServer and commitWithin

2011-10-04 Thread Leonardo Souza
Hi, I'm confused about using StreamingUpdateSolrServer and commitWithin parameter in conjuction with waitSearcher and waitFlush. Does it make sense a request like this? UpdateRequest updateRequest = new UpdateRequest(); updateRequest.setCommitWithin(12); updateRequest.setWaitSearcher(

Re: commitWithin + SolrJ

2011-09-03 Thread Jan Høydahl
Many customers have asked me how to do this, so it's not easy enough. Therefore I opened SOLR-2742 to add even more convenience :) -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com On 25. aug. 2011, at 01:38, Chris Hostetter wrote: >

Re: commitWithin + SolrJ

2011-08-24 Thread Chris Hostetter
: I ended up doing this with request.process(server) on an UpdateRequest : class. right ... if you peek under the covers of SolrServer most of it's methods are are just convinience methods for constructing a Request, setting some attributes/streams on it, and then processing it via that Server

Re: commitWithin + SolrJ

2011-08-24 Thread Daniel Skiles
I ended up doing this with request.process(server) on an UpdateRequest class. On Wed, Aug 24, 2011 at 2:07 PM, Daniel Skiles wrote: > What is the cleanest way to use the commitWithin directive with SolrJ? > AbstractUpdateRequest has a setCommitWithin() method, but I don't see how to

commitWithin + SolrJ

2011-08-24 Thread Daniel Skiles
What is the cleanest way to use the commitWithin directive with SolrJ? AbstractUpdateRequest has a setCommitWithin() method, but I don't see how to hook that into SolrServer.add(SolrInputDocument doc). Do I need to use SolrServer.request(), or do I need to use some other method? Thanks.

ExtractingRequestHandler commitWithin

2009-11-23 Thread j philoon
Any chance of getting the ExtractingRequestHandler to use the commitWithin parameter? -- View this message in context: http://old.nabble.com/ExtractingRequestHandler-commitWithin-tp26478144p26478144.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: commitWithin question

2009-10-21 Thread Yonik Seeley
. > > The documentation for the commitWithin leaves some room for interpretation. > Does setting commitWithin=1000 mean that only this update will be committed > within 1s, or that all pending documents will be committed within 1s? The update that contains the commitWithin=1000 will be committ

commitWithin question

2009-10-21 Thread Jacob Elder
Our application involves lots of live index updates with mixed priority. A few updates are very important and need to be in the index promptly, while we also have a great deal of updates which can be dealt with lazily. The documentation for the commitWithin leaves some room for interpretation