tamaramata / solrnet

Automatically exported from code.google.com/p/solrnet
0 stars 0 forks source link

Authentication in XML config #192

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
<facilities>
    <facility id='solr'>
        <solrURL>http://localhost:8983/solr/defaultCore</solrURL>
        <cores>
            <core id='core0-id'>
                <documentType>Namespace.To.Product, MyAssembly</documentType>
                <url>http://localhost:8983/solr/product</url>
            </core>
            <core id='core1-id'>
                <documentType>Namespace.To.Product, MyAssembly</documentType>
                <url>http://localhost:8983/solr/product2</url>
            </core>
            <core>
                <documentType>Namespace.To.Person, MyAssembly</documentType>
                <url>http://localhost:8983/solr/person</url>
            </core>
        </cores>
    </facility>
</facilities>
I am using above config.xml file to initializing solr component but it is not 
working with authentication. is this possible we can directly mention user and 
password in xml?.  

Original issue reported on code.google.com by pandey.s...@gmail.com on 17 Sep 2012 at 7:07

GoogleCodeExporter commented 8 years ago
Authentication is not currently configurable through XML. See 
http://code.google.com/p/solrnet/issues/detail?id=66 for information on 
configuring authentication. Please use the google group ( 
https://groups.google.com/forum/#!forum/solrnet ) if you have questions about 
it.

Original comment by mauricio...@gmail.com on 18 Sep 2012 at 1:11

GoogleCodeExporter commented 8 years ago
I'm deprecating the XML config for the Windsor facility. Windsor itself has 
sort of deprecated its XML config. This means that authentication has to be 
configured in code. The benefits of this are: 1. less code to maintain in 
SolrNet. 2. less unnecessary moving parts in your application.

Original comment by mauricio...@gmail.com on 9 Sep 2013 at 8:02