You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Vadim Kisselmann (JIRA)" <ji...@apache.org> on 2011/08/11 16:17:27 UTC

[jira] [Issue Comment Edited] (SOLR-2565) Prevent IW#close and cut over to IW#commit

    [ https://issues.apache.org/jira/browse/SOLR-2565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13083094#comment-13083094 ] 

Vadim Kisselmann edited comment on SOLR-2565 at 8/11/11 2:16 PM:
-----------------------------------------------------------------

I tested the nightly build #1595 with an new patch (2565), but NRT doesn't work in my case.

I index 10 docs/sec, it takes 1-30sec. to see the results.
same behavior when i update an existing document.

My addedDate is an timestamp (default="NOW"). In worst case i can see what the document which i indexed is already more when 30
seconds in my index, but i can't see it.

My Settings:
<autoCommit>
<maxDocs>1000</maxDocs>
<maxTime>60000</maxTime>
</autoCommit>

<autoSoftCommit>
<maxDocs>1</maxDocs>
<maxTime>1000</maxTime>
</autoSoftCommit>

Are my settings wrong or need you more details?
Should i use the coldSearcher (default=false)? Or set maxWarmingSearchers higher than 2?

      was (Author: ldb):
    I tested the nightly build #1595 with an new patch (2565), but NRT doesn't work in my case.

I index 10 docs/sec, it takes 1-30sec. to see the results.
same behavior when i update an existing document.

My addedDate is an timestamp (default="NOW"). In worst case i can see what the document which i indexed is already more when 30
seconds in my index, but i can't see it.

My Settings:
<autoCommit>
<maxDocs>1000</maxDocs>
<maxTime>60000</maxTime>
</autoCommit>

<autoSoftCommit>
<maxDocs>1</maxDocs>
<maxTime>1000</maxTime>
</autoSoftCommit>

Are my settings wrong or need you more details?
  
> Prevent IW#close and cut over to IW#commit
> ------------------------------------------
>
>                 Key: SOLR-2565
>                 URL: https://issues.apache.org/jira/browse/SOLR-2565
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Mark Miller
>             Fix For: 4.0
>
>         Attachments: SOLR-2565.patch, SOLR-2565.patch
>
>
> Spinnoff from SOLR-2193. We already have a branch to work on this issue here https://svn.apache.org/repos/asf/lucene/dev/branches/solr2193 
> The main goal here is to prevent solr from closing the IW and use IW#commit instead. AFAIK the main issues here are:
> The update handler needs an overhaul.
> A few goals I think we might want to look at:
> 1. Expose the SolrIndexWriter in the api or add the proper abstractions to get done what we now do with special casing:
> 2. Stop closing the IndexWriter and start using commit (still lazy IW init though).
> 3. Drop iwAccess, iwCommit locks and sync mostly at the Lucene level.
> 4. Address the current issues we face because multiple original/'reloaded' cores can have a different IndexWriter on the same index.
> Eventually this is a preparation for NRT support in Solr which I will create a followup issue for.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org