Anyone experience on using multiple core at the same time with solrnet?

349 views
Skip to first unread message

earthharp

unread,
Aug 15, 2009, 3:49:43 AM8/15/09
to SolrNet
Thanks for sharing.

Mauricio Scheffer

unread,
Aug 15, 2009, 2:36:31 PM8/15/09
to SolrNet
I haven't tried multi-core but it should work without much effort.
Please share more information about your environment, are you using
Windsor or the built-in container, what have you tried, what errors do
you get, etc.

On Aug 15, 4:49 am, earthharp <earthh...@gmail.com> wrote:
> Thanks for sharing.

earthharp

unread,
Aug 16, 2009, 4:24:29 AM8/16/09
to SolrNet
I'm using SolrNet Facility for Castle.

I think it should be a global solrnet server url configuration for all
Solr operations, right?

On 8月16日, 上午2时36分, Mauricio Scheffer <mauricioschef...@gmail.com>
wrote:

Mauricio Scheffer

unread,
Aug 16, 2009, 2:47:08 PM8/16/09
to SolrNet
No, each core has its own url.

You have to add another SolrConnection to the container pointing to
the core1 url, then override all core1 components that depend
directly on ISolrConnection to use the core1 SolrConnection.

Here's a sample: http://code.google.com/p/solrnet/source/detail?r=440

I just created an issue to improve this: http://code.google.com/p/solrnet/issues/detail?id=70

earthharp

unread,
Aug 17, 2009, 3:09:54 AM8/17/09
to SolrNet
Great!

Thanks for the sample, let me have a try on it.

On Aug 17, 2:47 am, Mauricio Scheffer <mauricioschef...@gmail.com>
wrote:
> > > > Thanks for sharing.- Hide quoted text -
>
> - Show quoted text -

Mauricio Scheffer

unread,
Feb 12, 2013, 10:44:02 AM2/12/13
to sol...@googlegroups.com


--
Mauricio


On Tue, Feb 12, 2013 at 12:30 PM, Simone Finotti <lase...@gmail.com> wrote:

Your sample link is 404. Do you have a working url? 

thank you in advance.
S

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

Simone Finotti

unread,
Feb 12, 2013, 11:25:10 AM2/12/13
to sol...@googlegroups.com
Thank you, I hoped it would have solved my issues but to no avail.

Let me explain my issue: I use SolrNet 0.3 with a multi-core configuration via Castle Windsor, so I am creating a SolrNetFacility and adding core to it. This thing works like a charm.

The problem is that I'm trying to register a decorator for ISolrConnection, a class X that implements ISolrConnection and accept as a unique ctor parameter an ISolrConnection instance.

Is this feasible? Does it mess with the fact that SolrNet component registration is named?

Mauricio Scheffer

unread,
Feb 12, 2013, 6:57:00 PM2/12/13
to sol...@googlegroups.com
I'm quite sure this was asked before, but I can't seem to find it...
Since multi-core uses named component registration, it's a bit harder to introduce your decorators. You might want to try something like a ComponentModel construction contributor to get around that: http://docs.castleproject.org/Windsor.ComponentModel-construction-contributors.ashx

Cheers


--
Mauricio
Reply all
Reply to author
Forward
0 new messages