right - jython runs in-process within the same VM as solr and provides direct access to any java api's that solr exposes. jython generally provides a nice, modern scripting language ( python of course) on top of the entire java/jvm infrastructure. i've written a couple of neat apps leveraging that in the enterprise world :)
but it sounds like you really don't need to go down that route since solr exposes a rest interface. or are you looking for a non-network/tighter integration? with pyLucene you will have to go through jni which can also work. but directly running in-process and using the java api's directly will be faster and more portable. cheers, nimret On Sun, Oct 16, 2011 at 10:17 AM, Christopher Bare < [email protected]> wrote: > Hi Nimret, > > Thanks Nimret. I hadn't thought of using Jython. I guess you're saying > I could run Lucene in-process and just call it from within the Jython > code. Looks like you can also do the inverse and embed Lucene within > normal Python with PyLucene. > > Options, options, options. > > - Chris > > > > On Sat, Oct 15, 2011 at 1:25 PM, Nimret Sandhu <[email protected]> wrote: > > have you looked at using http://jython.org/ ? write python but generate > jvm > > bytecode .. perhaps it might work easier? > > -- > > Nimret Sandhu > > http://www.nimret.org > > > > On Sat, Oct 15, 2011 at 10:53 AM, Christopher Bare > > <[email protected]> wrote: > >> > >> Hi Pythonistas, > >> > >> Does anyone have experience accessing a Solr search engine from > >> Python? There are several bindings out there, so if anyone has a > >> recommendation, I'd appreciate it. > >> > >> Our needs are probably on the lighter end of the spectrum: moderate > >> traffic, tens of thousands building to hundreds of thousands of search > >> terms over time. Infrequent updates, accesses are mostly read. > >> > >> I looked briefly at Haystack and wasn't too excited by it. Too much > >> "automagic" stuff going on. Plus, I like the idea of defining my own > >> Solr schema, rather than directly mapping Django models into Solr. > >> Sunburt looks pretty good, at first glance. > >> > >> Any hints would be appreciated. Thanks! > >> > >> - Chris > > > > > > > > > > >
