Multi Core Acess with Ninject

155 views
Skip to first unread message

Tadeu Maia

unread,
Jan 29, 2012, 9:18:58 AM1/29/12
to SolrNet
Is it possible to configure solrnet using ninject to access multiple
Solr cores?

I'm seeing no way to do so with SolrNetModule =(


Thanks

Mauricio Scheffer

unread,
Jan 29, 2012, 10:10:33 AM1/29/12
to sol...@googlegroups.com
Nope, the Ninject module and built-in container are the only ones that still don't support multicore.
I encourage you to implement it, based on any of the other integrations :)

Cheers,
Mauricio



--
You received this message because you are subscribed to the Google Groups "SolrNet" group.
To post to this group, send email to sol...@googlegroups.com.
To unsubscribe from this group, send email to solrnet+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/solrnet?hl=en.


Tadeu Maia

unread,
Feb 2, 2012, 5:32:22 PM2/2/12
to SolrNet
I'll see what I can do, not an expert with ninject.

Thanks!

On Jan 29, 1:10 pm, Mauricio Scheffer <mauricioschef...@gmail.com>
wrote:

Paige Cook

unread,
Feb 14, 2012, 8:32:05 AM2/14/12
to SolrNet
Hi Tadeu,

I am also in need of supporting multiple cores in SolrNet with Ninject
and wanted to see if you had made any progress on implementing this
feature?


Thanks,
Paige

Paige Cook

unread,
Feb 16, 2012, 2:26:27 PM2/16/12
to SolrNet
I have modified SolrNet Ninject Integration to support multiple core/
instances in my fork of Solrnet at https://github.com/paigecook/SolrNet
and also submitted a Pull request to Mauricio. Hopefully Mauricio
won't find too many issues with code and it will be integrated into
the official SolrNet project soon.

Jerry Wang

unread,
Apr 18, 2012, 5:34:21 PM4/18/12
to sol...@googlegroups.com
I was using the ninject module in a project and I needed to unbind the ISolrConnection so I could inject a different URL from a settings repository that was resolved later.

For some reason I could not get the named bindings in ninject to unbind. kernel.Unbind<ISolrConnection> didn't seem to work on the named bindings.

I changed the code to resolve the ISolrConnection based on the DocumentType rather than the core names.

I'm not sure if this is the best solution but maybe you guys can take a look and let me know. It still doesn't work with mutli cores of the same document type.

> > > > solrnet+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages