mergeindexes action does not seem to be merging cores.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

mergeindexes action does not seem to be merging cores.

Piyush Kumar Nayak
Hi,

I don't seem to be able to get the merge core feature to work with Solr 7.2.1.
I'm using the srcCore parameter method documented at https://lucene.apache.org/solr/guide/6_6/coreadmin-api.html#CoreAdminAPI-MERGEINDEXES

I am making the following GET HTTP call using a browser:
http://localhost:8991/solr/admin/cores?action=mergeindexes&core=mcol&srcCore=col1&srcCore=col2
In the call above the following cores are referenced:
merged core name: mcol
core 1 name : fc1
core 2 name : fc1
All 3 cores preexist.

The response content I get is :
{
  "responseHeader":{
    "status":0,
    "QTime":57}}

I see the following in the logs:
747532 [qtp2028017635-17] INFO  org.apache.solr.servlet.HttpSolrCall  - [admin] webapp=null path=/admin/cores params={core=mcx&action=mergeindexes&srcCore=fcl1&srcCore=fc2} status=400 QTime=2
756577 [qtp2028017635-18] INFO  org.apache.solr.update.DirectUpdateHandler2  - start mergeIndexes{NRTCachingDirectory(MMapDirectory@C:\collections\fc1\data\index lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7c53c896; maxCacheMB=48.0 maxMergeSizeMB=4.0),NRTCachingDirectory(MMapDirectory@C:\collections\fc2\data\index lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@3e2255a5; maxCacheMB=48.0 maxMergeSizeMB=4.0)}
756602 [qtp2028017635-18] INFO  org.apache.solr.update.DirectUpdateHandler2  - end_mergeIndexes

But the number of docs in the merged core do not increase post merge operation. Search for keywords that exist in the core1 do not return results with merged core.
Am I missing something?


Best regards,
Piyush.
Reply | Threaded
Open this post in threaded view
|

Re: mergeindexes action does not seem to be merging cores.

Erick Erickson
Did you commit afterwards?

> On May 14, 2019, at 8:04 AM, Piyush Kumar Nayak <[hidden email]> wrote:
>
> Hi,
>
> I don't seem to be able to get the merge core feature to work with Solr 7.2.1.
> I'm using the srcCore parameter method documented at https://lucene.apache.org/solr/guide/6_6/coreadmin-api.html#CoreAdminAPI-MERGEINDEXES
>
> I am making the following GET HTTP call using a browser:
> http://localhost:8991/solr/admin/cores?action=mergeindexes&core=mcol&srcCore=col1&srcCore=col2
> In the call above the following cores are referenced:
> merged core name: mcol
> core 1 name : fc1
> core 2 name : fc1
> All 3 cores preexist.
>
> The response content I get is :
> {
>  "responseHeader":{
>    "status":0,
>    "QTime":57}}
>
> I see the following in the logs:
> 747532 [qtp2028017635-17] INFO  org.apache.solr.servlet.HttpSolrCall  - [admin] webapp=null path=/admin/cores params={core=mcx&action=mergeindexes&srcCore=fcl1&srcCore=fc2} status=400 QTime=2
> 756577 [qtp2028017635-18] INFO  org.apache.solr.update.DirectUpdateHandler2  - start mergeIndexes{NRTCachingDirectory(MMapDirectory@C:\collections\fc1\data\index lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7c53c896; maxCacheMB=48.0 maxMergeSizeMB=4.0),NRTCachingDirectory(MMapDirectory@C:\collections\fc2\data\index lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@3e2255a5; maxCacheMB=48.0 maxMergeSizeMB=4.0)}
> 756602 [qtp2028017635-18] INFO  org.apache.solr.update.DirectUpdateHandler2  - end_mergeIndexes
>
> But the number of docs in the merged core do not increase post merge operation. Search for keywords that exist in the core1 do not return results with merged core.
> Am I missing something?
>
>
> Best regards,
> Piyush.

Reply | Threaded
Open this post in threaded view
|

RE: mergeindexes action does not seem to be merging cores.

Piyush Kumar Nayak
Yes that worked.
Thanks Erick, for your help.


-----Original Message-----
From: Erick Erickson <[hidden email]>
Sent: Tuesday, May 14, 2019 7:09 PM
To: [hidden email]
Subject: Re: mergeindexes action does not seem to be merging cores.

Did you commit afterwards?

> On May 14, 2019, at 8:04 AM, Piyush Kumar Nayak <[hidden email]> wrote:
>
> Hi,
>
> I don't seem to be able to get the merge core feature to work with Solr 7.2.1.
> I'm using the srcCore parameter method documented at
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fluce
> ne.apache.org%2Fsolr%2Fguide%2F6_6%2Fcoreadmin-api.html%23CoreAdminAPI
> -MERGEINDEXES&amp;data=02%7C01%7Cpnayak%40adobe.com%7Cf5b4b1e2204749c7
> e8a208d6d871969d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63693437
> 9703364465&amp;sdata=sJ05%2Fm63PMNaaH3%2BHZXIw31xCFEPDuppIC2B4xe5rwQ%3
> D&amp;reserved=0
>
> I am making the following GET HTTP call using a browser:
> http://localhost:8991/solr/admin/cores?action=mergeindexes&core=mcol&s
> rcCore=col1&srcCore=col2 In the call above the following cores are
> referenced:
> merged core name: mcol
> core 1 name : fc1
> core 2 name : fc1
> All 3 cores preexist.
>
> The response content I get is :
> {
>  "responseHeader":{
>    "status":0,
>    "QTime":57}}
>
> I see the following in the logs:
> 747532 [qtp2028017635-17] INFO  org.apache.solr.servlet.HttpSolrCall  
> - [admin] webapp=null path=/admin/cores
> params={core=mcx&action=mergeindexes&srcCore=fcl1&srcCore=fc2}
> status=400 QTime=2
> 756577 [qtp2028017635-18] INFO  
> org.apache.solr.update.DirectUpdateHandler2  - start
> mergeIndexes{NRTCachingDirectory(MMapDirectory@C:\collections\fc1\data
> \index
> lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7c53c896
> ; maxCacheMB=48.0
> maxMergeSizeMB=4.0),NRTCachingDirectory(MMapDirectory@C:\collections\f
> c2\data\index
> lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@3e2255a5
> ; maxCacheMB=48.0 maxMergeSizeMB=4.0)}
> 756602 [qtp2028017635-18] INFO  
> org.apache.solr.update.DirectUpdateHandler2  - end_mergeIndexes
>
> But the number of docs in the merged core do not increase post merge operation. Search for keywords that exist in the core1 do not return results with merged core.
> Am I missing something?
>
>
> Best regards,
> Piyush.