lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ludovic Boutros (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3476) Create a Solr Core with a given commit point
Date Wed, 23 May 2012 09:43:40 GMT

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

ludovic Boutros commented on SOLR-3476:
---------------------------------------

some examples of usages :

- Create a new core with a given commit point generation :

bq. http://localhost:8084/solr/admin/cores?action=CREATE&name=core4&commitPointGeneration=4&instanceDir=test

- Get the status of this core :

bq. http://localhost:8084/solr/admin/cores?action=STATUS&core=core4

{code:xml}
<response>
  <lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">2692</int>
  </lst>
  <lst name="status">
    <lst name="core4">
      <str name="name">core4</str>
      <str name="instanceDir">D:\temp\bases\testCores\test\</str>
      <str name="dataDir">D:\temp\bases\testCores\test\data\</str>
      <date name="startTime">2012-05-23T09:31:50.483Z</date>
      <long name="uptime">149054</long>
      <long name="indexCommitGeneration">4</long>
      <lst name="indexCommitList">
        <long name="generation">1</long>
        <long name="generation">2</long>
        <long name="generation">3</long>
        <long name="generation">4</long>
        <long name="generation">5</long>
        <long name="generation">6</long>
        <long name="generation">7</long>
      </lst>
      <lst name="index">
        <int name="numDocs">3</int>
        <int name="maxDoc">3</int>
        <long name="version">1337759534761</long>
        <int name="segmentCount">3</int>
        <bool name="current">false</bool>
        <bool name="hasDeletions">false</bool>
        <str name="directory">org.apache.lucene.store.SimpleFSDirectory:org.apache.lucene.store.SimpleFSDirectory@D:\temp\bases\testCores\test\data\index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@1c24b45</str>
        <date name="lastModified">2012-05-23T09:22:10.713Z</date>
      </lst>
    </lst>
  </lst>
</response>
{code}

We can see the current commit point generation and the available commit point list.

- Now the solr.xml file :

{code:xml}
<solr sharedLib="lib" persistent="true">
  <cores adminPath="/admin/cores">
    <core name="core4" instanceDir="test\" commitPointGeneration="4"/>
  </cores>
</solr>
{code}


                
> Create a Solr Core with a given commit point
> --------------------------------------------
>
>                 Key: SOLR-3476
>                 URL: https://issues.apache.org/jira/browse/SOLR-3476
>             Project: Solr
>          Issue Type: New Feature
>          Components: multicore
>    Affects Versions: 3.6
>            Reporter: ludovic Boutros
>         Attachments: commitPoint.patch
>
>
> In some configurations, we need to open new cores with a given commit point.
> For instance, when the publication of new documents must be controlled (legal obligations)
in a master-slave configuration there are two cores on the same instanceDir and dataDir which
are using two "versions" of the index.
> The switch of the two cores is done manually.
> The problem is that when the replication is done one day before the switch, if any problem
occurs, and we need to restart tomcat, the new documents are published.
> With this functionality, we could ensure that the index generation used by the core used
for querying is always the good one. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


Mime
View raw message