Page 1 of 1

Standalone Solr

Posted: Tue Jul 21, 2015 12:47 am
by junnel.tiglao
Hello there.

I'm a newbie here. May i know what is the purpose of the Reindex core on Standalone solr. In this link. http://www.broadleafcommerce.com/docs/c ... tand-alone

Thanks inadvance ::)

Re: Standalone Solr

Posted: Mon Jul 27, 2015 4:52 am
by phillipuniverse
This is so that users can still search/browse the site while a reindex takes place. Solr can have multiple cores and in this case 1 is the active core that searching is based off of. When a reindex kicks off, the reindex always occurs against a different core. Once the reindexing is done, then the cores are swapped and now user requests hit a new active, updated index.

Re: Standalone Solr

Posted: Mon Jul 27, 2015 9:32 pm
by junnel.tiglao
@phillipuniverse Thanks for the response. Ah I see. So which one of the cores being populated first in the initial start? Primary or Reindex core?

And may i know what is the admin core server in the embedded and standalone solr? Is the admin core is same as the primary and reindex core ? But when i access the url of the admin core it is the dashboard for solr on standalone.

Thank you.

Re: Standalone Solr

Posted: Tue Jul 28, 2015 9:39 am
by phillipuniverse
Primary.

The admin core isn't actually a core at all, that's kind of a misnomer. The admin URL is the base URL for where Solr is located. For instance, if you have a local standalone Solr instance then it deploys an application at the /solr context. So these are the 3 URLs you need:

Code: Select all

solr.url.primary=http://localhost:8983/solr/primary
solr.url.reindex=http://localhost:8983/solr/reindex
solr.url.admin=http://localhost:8983/solr

Re: Standalone Solr

Posted: Tue Jul 28, 2015 11:57 pm
by junnel.tiglao
@phillipuniverse - Ah ok Thank you very much. (Y)

Re: Standalone Solr

Posted: Wed Sep 02, 2015 8:01 pm
by junnel.tiglao
Hello.

I'm a bit confused about the primary core. On the initial start the primary core is being populated but the dir or file on the solr is on the reindex core. It the primary is the always active on the store ?


Thank you I want to clarify it. please help me.

Re: Standalone Solr

Posted: Tue Sep 15, 2015 8:21 am
by phillipuniverse
It's because the aliases are swapped as soon as the index is rebuilt. The index actually gets originally built on the reindex core and then there is a core swap. Solr's implementation of that is to just make the name point to the new directory.

Re: Standalone Solr

Posted: Tue Sep 15, 2015 8:03 pm
by junnel.tiglao
thank you again phillip.