lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramkumar R. Aiyengar" <andyetitmo...@gmail.com>
Subject Re: Easiest way to embed solr in a desktop application
Date Fri, 16 Jan 2015 10:05:24 GMT
That's correct, even though it should still be possible to embed Jetty,
that could change in the future, and that's why support for pluggable
containers is being taken away.

If you need to deal with the index at a lower level, there's always Lucene
you can use as a library instead of Solr.

But I am assuming you need to use the search engine at a higher level than
that and hence you ask for Solr. In which case, I urge you to think through
if you really can't run this out of process, may be this is an XY problem.
Keep in mind that Solr has the ability to provide higher level
functionality because it can control almost the entirety of the application
(which is the philosophical reason behind removal of the war as well), and
that's the reason something like EmbeddedSolrServer will always have
caveats.
On 15 Jan 2015 15:09, "Robert Krüger" <krueger@lesspain.de> wrote:

> I was considering the programmatic Jetty option but then I read that Solr 5
> no longer supports being run with an external servlet container but maybe
> they still support programmatic jetty use in some way. atm I am using solr
> 4.x, so this would work. No idea if this gets messy classloader-wise in any
> way.
>
> I have been using exactly the approach you described in the past, i.e. I
> built a really, really simple swing dialogue to input queries and display
> results in a table but was just guessing that the built-in ui was far
> superior but maybe I should just live with it for the time being.
>
> On Thu, Jan 15, 2015 at 3:56 PM, Erik Hatcher <erik.hatcher@gmail.com>
> wrote:
>
> > It’d certainly be easiest to just embed Jetty into your application.  You
> > don’t need to have Jetty as a separate process, you could launch it
> through
> > it’s friendly Java API, configured to use solr.war.
> >
> > If all you needed was to make HTTP(-like) queries to Solr instead of the
> > full admin UI, your application could stick to using EmbeddedSolrServer
> and
> > also provide a UI that takes in a Solr query string (or builds one up)
> and
> > then sends it to the embedded Solr and displays the result.
> >
> >         Erik
> >
> > > On Jan 15, 2015, at 9:44 AM, Robert Krüger <krueger@lesspain.de>
> wrote:
> > >
> > > Hi Andrea,
> > >
> > > you are assuming correctly. It is a local, non-distributed index that
> is
> > > only accessed by the containing desktop application. Do you know if
> there
> > > is a possibility to run the Solr admin UI on top of an embedded
> instance
> > > somehow?
> > >
> > > Thanks a lot,
> > >
> > > Robert
> > >
> > > On Thu, Jan 15, 2015 at 3:17 PM, Andrea Gazzarini <
> a.gazzarini@gmail.com
> > >
> > > wrote:
> > >
> > >> Hi Robert,
> > >> I've used the EmbeddedSolrServer in a scenario like that and I never
> had
> > >> problems.
> > >> I assume you're talking about a standalone application, where the
> whole
> > >> index resides locally and you don't need any cluster / cloud /
> > distributed
> > >> feature.
> > >>
> > >> I think the usage of EmbeddedSolrServer is discouraged in a
> > (distributed)
> > >> service scenario, because it is a direct connection to a SolrCore
> > >> instance...but this is not a problem in the situation you described
> (as
> > far
> > >> as I know)
> > >>
> > >> Best,
> > >> Andrea
> > >>
> > >>
> > >> On 01/15/2015 03:10 PM, Robert Krüger wrote:
> > >>
> > >>> Hi,
> > >>>
> > >>> I have been using an embedded instance of solr in my desktop
> > application
> > >>> for a long time and it works fine. At the time when I made that
> > decision
> > >>> (vs. firing up a solr web application within my swing application)
I
> > got
> > >>> the impression embedded use is somewhat unsupported and I should
> expect
> > >>> problems.
> > >>>
> > >>> My first question is, is this still the case now (4 years later),
> that
> > >>> embedded solr is discouraged?
> > >>>
> > >>> The one limitation I am running into is that I cannot use the solr
> > admin
> > >>> UI
> > >>> for debugging purposes (mainly for running queries). Is there any
> other
> > >>> way
> > >>> to do this other than no longer using embedded solr and
> > programmatically
> > >>> firing up a web application (e.g. using jetty)? Should I do the
> latter
> > >>> anyway?
> > >>>
> > >>> Any insights/advice greatly appreciated.
> > >>>
> > >>> Best regards,
> > >>>
> > >>> Robert
> > >>>
> > >>>
> > >>
> > >
> > >
> > > --
> > > Robert Krüger
> > > Managing Partner
> > > Lesspain GmbH & Co. KG
> > >
> > > www.lesspain-software.com
> >
> >
>
>
> --
> Robert Krüger
> Managing Partner
> Lesspain GmbH & Co. KG
>
> www.lesspain-software.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message