You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kalpana <ks...@portalsolutions.net> on 2016/07/06 23:02:14 UTC

Solr Merge Index

Hello

I have two sources - Sitecore web index (core 1) and a database table (core
2). I have created core 3 which is a merge of core1 and core 2. 

http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core3&srcCore=sitecore_web_index&srcCore=core2

But when someone publishes a page on Sitecore, the sitecore web index gets
updated but not the merged core. How can get the real time data with the
merge? Is there a way?

Thanks
Kalpana



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Merge-Index-tp4286081.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr Merge Index

Posted by Kalpana <ks...@portalsolutions.net>.
Thanks for your reply.
I am using Solrnet to set up the search object. Is it possible to use the same for sharding?





On Jul 7, 2016, at 4:11 AM, Shalin Shekhar Mangar [via Lucene] <ml...@n3.nabble.com>> wrote:

Why do you need the merged core? If the underlying data is changing then
obviously the merged core won't automatically update it self. And another
merge will introduce duplicate data. So this is a bad solution.

You can just keep the two cores and do a distributed search across both of
them? You can specify shards=http://localhost:8983/solr/
<http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core3&srcCore=sitecore_web_index&srcCore=core2>
core1,http://localhost:8983/solr/
<http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core3&srcCore=sitecore_web_index&srcCore=core2>core2
as a parameter to your search requests.

On Thu, Jul 7, 2016 at 4:32 AM, Kalpana <[hidden email]</user/SendEmail.jtp?type=node&node=4286130&i=0>>
wrote:

> Hello
>
> I have two sources - Sitecore web index (core 1) and a database table (core
> 2). I have created core 3 which is a merge of core1 and core 2.
>
>
> http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core3&srcCore=sitecore_web_index&srcCore=core2
>
> But when someone publishes a page on Sitecore, the sitecore web index gets
> updated but not the merged core. How can get the real time data with the
> merge? Is there a way?
>
> Thanks
> Kalpana
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-Merge-Index-tp4286081.html
> Sent from the Solr - User mailing list archive at Nabble.com<http://Nabble.com>.
>



--
Regards,
Shalin Shekhar Mangar.


________________________________
If you reply to this email, your message will be added to the discussion below:
http://lucene.472066.n3.nabble.com/Solr-Merge-Index-tp4286081p4286130.html
To unsubscribe from Solr Merge Index, click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4286081&code=a3NpdmFuYW5kYW5AcG9ydGFsc29sdXRpb25zLm5ldHw0Mjg2MDgxfDE0MzYwODg4Mjk=>.
NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Merge-Index-tp4286081p4286153.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr Merge Index

Posted by Kalpana <ks...@portalsolutions.net>.
This did the trick

<requestHandler name="/select" class="solr.SearchHandler"> 
 
<lst name="defaults"> 
<str
name="shards">localhost:8983/solr/sitecore_web_index,localhost:8983/solr/SharePo‌​int_All</str>
</lst> 
</requestHandler>

Thanks



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Merge-Index-tp4286081p4286272.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr Merge Index

Posted by Kalpana <ks...@portalsolutions.net>.
Some more info:

I am using Solrnet in my MVC project for search results:

var urlHealthInfo = ConfigurationManager.AppSettings["solrSPHealthInfo"] !=
null ?
ConfigurationManager.AppSettings["solrSitecoreSPHealthInfo"].ToString() :
"http://localhost:8983/solr/Sitecore_SharePoint_HealthInformation";

var solrServers = new SolrServers {
new SolrServerElement {
                    Id = "solrHealthInfo",
                    Url = urlHealthInfo,
                    DocumentType = typeof
(SPHealthInfoSearchResultsViewModel).AssemblyQualifiedName
                }
}

Will I be able to use Shards?

Thanks



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Merge-Index-tp4286081p4286251.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr Merge Index

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Why do you need the merged core? If the underlying data is changing then
obviously the merged core won't automatically update it self. And another
merge will introduce duplicate data. So this is a bad solution.

You can just keep the two cores and do a distributed search across both of
them? You can specify shards=http://localhost:8983/solr/
<http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core3&srcCore=sitecore_web_index&srcCore=core2>
core1,http://localhost:8983/solr/
<http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core3&srcCore=sitecore_web_index&srcCore=core2>core2
as a parameter to your search requests.

On Thu, Jul 7, 2016 at 4:32 AM, Kalpana <ks...@portalsolutions.net>
wrote:

> Hello
>
> I have two sources - Sitecore web index (core 1) and a database table (core
> 2). I have created core 3 which is a merge of core1 and core 2.
>
>
> http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core3&srcCore=sitecore_web_index&srcCore=core2
>
> But when someone publishes a page on Sitecore, the sitecore web index gets
> updated but not the merged core. How can get the real time data with the
> merge? Is there a way?
>
> Thanks
> Kalpana
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-Merge-Index-tp4286081.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Regards,
Shalin Shekhar Mangar.