Using DirectConnection or EmbeddedSolrServer, within a component

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Using DirectConnection or EmbeddedSolrServer, within a component

Matt Mitchell
Hi,

I'm experimenting with Solr components. I'd like to be able to use a
nice-high-level querying interface like the DirectSolrConnection or
EmbeddedSolrServer provides. Would it be considered absolutely insane to use
one of those *within a component* (using the same core instance)?

Matt
Reply | Threaded
Open this post in threaded view
|

Re: Using DirectConnection or EmbeddedSolrServer, within a component

Shalin Shekhar Mangar
On Sat, Jul 11, 2009 at 2:00 AM, Matt Mitchell <[hidden email]> wrote:

>
> I'm experimenting with Solr components. I'd like to be able to use a
> nice-high-level querying interface like the DirectSolrConnection or
> EmbeddedSolrServer provides. Would it be considered absolutely insane to
> use
> one of those *within a component* (using the same core instance)?
>

I don't see a reason why it won't work. The only thing is that you may lose
some flexibility/efficiency because you won't be dealing with low level
structures.

However, if it is something that can be done with EmbeddedSolrServer, it can
be done on the client too, no?
--
Regards,
Shalin Shekhar Mangar.
Reply | Threaded
Open this post in threaded view
|

Re: Using DirectConnection or EmbeddedSolrServer, within a component

Matt Mitchell
Hey Shalin,

My thought was to build a component using DSC, but not for the actual
client. The client (for this application) would still be using an HTTP
connection. I'm happy to hear this approach is valid. If I need efficiency,
I can still use the lower level objects.

Do you or anyone else know of any tutorials for building Solr components?
I've been making my way through the stock component's source, but a
step-by-step tutorial would be really nice!

Thanks,

Matt


On Mon, Jul 13, 2009 at 4:56 AM, Shalin Shekhar Mangar <
[hidden email]> wrote:

> On Sat, Jul 11, 2009 at 2:00 AM, Matt Mitchell <[hidden email]>
> wrote:
>
> >
> > I'm experimenting with Solr components. I'd like to be able to use a
> > nice-high-level querying interface like the DirectSolrConnection or
> > EmbeddedSolrServer provides. Would it be considered absolutely insane to
> > use
> > one of those *within a component* (using the same core instance)?
> >
>
> I don't see a reason why it won't work. The only thing is that you may lose
> some flexibility/efficiency because you won't be dealing with low level
> structures.
>
> However, if it is something that can be done with EmbeddedSolrServer, it
> can
> be done on the client too, no?
> --
> Regards,
> Shalin Shekhar Mangar.
>