Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to integrate solr cloud? #20

Open
nitinsinghit opened this issue Mar 22, 2021 · 1 comment
Open

How to integrate solr cloud? #20

nitinsinghit opened this issue Mar 22, 2021 · 1 comment

Comments

@nitinsinghit
Copy link

Hi All,

I have Norconex HTTP collector configured with Solr Committer. But I updated standalone solr with solr cloud and not sure how I can connect? Below is the xml file where solr committer is configured. Please guide

<committer class="com.norconex.committer.solr.SolrCommitter">
            <!-- <solrClientType>CloudSolrClient</solrClientType>  -->
            <solrURL>https://my-standalone-solr:8984/solr/sample_techproducts_configs/</solrURL>
            <sourceReferenceField keep="false">document.reference</sourceReferenceField>
            <targetReferenceField>id</targetReferenceField>
            <targetContentField>content</targetContentField>
            <solrUpdateURLParams>
              <param name="fm.ds">927df36b4c51625714</param>
            </solrUpdateURLParams>
            
          </committer>

Thanks

@essiembre
Copy link
Contributor

That would be a bug with <solrClientType>CloudSolrClient</solrClientType> not having an option to specify a collection name.

Don't worry, until it's fixed, you can still use the Committer with SolrCloud. Specifying Zookeeper nodes with CloudSolrClient is only for first detecting the Solr endpoints available. After the initial detection, it uses the same Solr URLs you would have configured using the default LB_HTTP. See Solr JavaDoc for more context: https://solr.apache.org/docs/8_1_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrClient.html

So using the default client type with Solr URLs (comma-separated) instead of Zookeeper nodes will do the same.

Specifying Zookeeper endpoints is an advantage if you know they are more stable and/or do not change as often as the Solr ones, but not a mandated way to connect with SolrCloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants