Sorry for coming back to this topic:
You (Erick) mention "By and large, do not issue commits from any client 
indexing to Solr"

In ordert o achieve NRT, I for example test
     <autoCommit>
       <maxTime>180000</maxTime> <!-- 3min -->
       <openSearcher>true</openSearcher>
     </autoCommit>
      <autoSoftCommit>
        <maxTime>10000</maxTime> <!-- 10sec -->
      </autoSoftCommit>

For (unit)testing purposes
     <autoCommit>
       <maxTime>1000</maxTime> <!-- 1sec -->
       <openSearcher>true</openSearcher>
     </autoCommit>
      <autoSoftCommit>
        <maxTime>500</maxTime> <!-- 500ms -->
      </autoSoftCommit>

Suggestions are re-built on commit
...
<str name="buildOnCommit">true</str>
...

(Almost) all my unit tests pass. Except for my docDeletion-test: it looks like 
expungeDeletes is never "issued" and suggestions of deleted docs are returned.
When I explicitly issue an "expunging-soft-commit"

UpdateRequest rq = new UpdateRequest();
rq.setAction( UpdateRequest.ACTION.COMMIT, false, false, 100, true, true );
rq.process( solrClient );

the test passes and no false suggestions are returned. What am I facing?

-----Ursprüngliche Nachricht-----
Von: Erick Erickson [mailto:erickerick...@gmail.com] 
Gesendet: Montag, 4. Januar 2016 17:36
An: solr-user
Betreff: Re: Hard commits, soft commits and transaction logs

As far as I know. If you see anything different, let me know and we'll see if 
we can update it.

Best,
Erick

On Mon, Jan 4, 2016 at 1:34 AM, Clemens Wyss DEV <clemens...@mysign.ch> wrote:
> [Happy New Year to all]
>
> Is all herein
> https://lucidworks.com/blog/2013/08/23/understanding-transaction-logs-
> softcommit-and-commit-in-sorlcloud/
> mentioned/recommended still valid for Solr 5.x?
>
> - Clemens

Reply via email to