You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2008/11/15 06:01:47 UTC

[jira] Commented: (SOLR-859) solr-ruby rewrite, jruby support

    [ https://issues.apache.org/jira/browse/SOLR-859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647799#action_12647799 ] 

Noble Paul commented on SOLR-859:
---------------------------------

Why cant the JRuby version wrap SolrJ ? That way we get the performance benefits of wt=javabin

> solr-ruby rewrite, jruby support
> --------------------------------
>
>                 Key: SOLR-859
>                 URL: https://issues.apache.org/jira/browse/SOLR-859
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - ruby - flare
>    Affects Versions: 1.3
>            Reporter: Matt Mitchell
>         Attachments: rewrite.1.patch
>
>
> Here is a re-write of the solr ruby client library. This is a simplified set of features, but really only missing the mapper/indexer code that's present in the current solr-ruby. Bringing those in will be the next step.
> Tests are in test. Please read the README, there are instructions for running the tests.
> A Solr 1.3 distribution is including for tests.
> * find patch in file uploads "rewrite.1.patch"
> - Matt Mitchell

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (SOLR-859) solr-ruby rewrite, jruby support

Posted by Matt Mitchell <go...@gmail.com>.
OK, I'm checking out EmbeddedSolrServer and am able to use wt=javabin. The
reason I started using DirectSolrConnection instead though, is that I can't
seem to get EmbeddedSolrServer to point to my real solr directory. When I
start it up, the core creates a directory in the same directory I'm
working-in called, "solr". Here's what I have going (jruby):

container = CoreContainer.new
descriptor = CoreDescriptor.new(container, "mycore", solr_home)
core = container.create(descriptor)
container.register("mycore", core, false)

solr_home doesn't seem to change anything. Anything obviously wrong here?

Matt

On Sat, Nov 15, 2008 at 10:19 AM, Matt Mitchell <go...@gmail.com> wrote:

> I tried querying using SolrDirectConnection with a wt=javabin and only get
> an error. Something like, "This is a binary writer, cannot write to a
> character stream." Is there something obvious I'm doing wrong? Does the
> SolrDirectConnection support wt=javabin?
>
> Matt
>
>
>
>
> On Sat, Nov 15, 2008 at 12:01 AM, Noble Paul (JIRA) <ji...@apache.org>wrote:
>
>>
>>    [
>> https://issues.apache.org/jira/browse/SOLR-859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647799#action_12647799]
>>
>> Noble Paul commented on SOLR-859:
>> ---------------------------------
>>
>> Why cant the JRuby version wrap SolrJ ? That way we get the performance
>> benefits of wt=javabin
>>
>> > solr-ruby rewrite, jruby support
>> > --------------------------------
>> >
>> >                 Key: SOLR-859
>> >                 URL: https://issues.apache.org/jira/browse/SOLR-859
>> >             Project: Solr
>> >          Issue Type: Improvement
>> >          Components: clients - ruby - flare
>> >    Affects Versions: 1.3
>> >            Reporter: Matt Mitchell
>> >         Attachments: rewrite.1.patch
>> >
>> >
>> > Here is a re-write of the solr ruby client library. This is a simplified
>> set of features, but really only missing the mapper/indexer code that's
>> present in the current solr-ruby. Bringing those in will be the next step.
>> > Tests are in test. Please read the README, there are instructions for
>> running the tests.
>> > A Solr 1.3 distribution is including for tests.
>> > * find patch in file uploads "rewrite.1.patch"
>> > - Matt Mitchell
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
>

Re: [jira] Commented: (SOLR-859) solr-ruby rewrite, jruby support

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com>.
Only SolrDispatchFilter has the code to invoke the right method on the
ResponseWriter. DirectSolrConnection does not have that code .

--Noble
On Sat, Nov 15, 2008 at 8:49 PM, Matt Mitchell <go...@gmail.com> wrote:
> I tried querying using SolrDirectConnection with a wt=javabin and only get
> an error. Something like, "This is a binary writer, cannot write to a
> character stream." Is there something obvious I'm doing wrong? Does the
> SolrDirectConnection support wt=javabin?
>
> Matt
>
>
>
> On Sat, Nov 15, 2008 at 12:01 AM, Noble Paul (JIRA) <ji...@apache.org> wrote:
>
>>
>>    [
>> https://issues.apache.org/jira/browse/SOLR-859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647799#action_12647799]
>>
>> Noble Paul commented on SOLR-859:
>> ---------------------------------
>>
>> Why cant the JRuby version wrap SolrJ ? That way we get the performance
>> benefits of wt=javabin
>>
>> > solr-ruby rewrite, jruby support
>> > --------------------------------
>> >
>> >                 Key: SOLR-859
>> >                 URL: https://issues.apache.org/jira/browse/SOLR-859
>> >             Project: Solr
>> >          Issue Type: Improvement
>> >          Components: clients - ruby - flare
>> >    Affects Versions: 1.3
>> >            Reporter: Matt Mitchell
>> >         Attachments: rewrite.1.patch
>> >
>> >
>> > Here is a re-write of the solr ruby client library. This is a simplified
>> set of features, but really only missing the mapper/indexer code that's
>> present in the current solr-ruby. Bringing those in will be the next step.
>> > Tests are in test. Please read the README, there are instructions for
>> running the tests.
>> > A Solr 1.3 distribution is including for tests.
>> > * find patch in file uploads "rewrite.1.patch"
>> > - Matt Mitchell
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
>



-- 
--Noble Paul

Re: [jira] Commented: (SOLR-859) solr-ruby rewrite, jruby support

Posted by Matt Mitchell <go...@gmail.com>.
I tried querying using SolrDirectConnection with a wt=javabin and only get
an error. Something like, "This is a binary writer, cannot write to a
character stream." Is there something obvious I'm doing wrong? Does the
SolrDirectConnection support wt=javabin?

Matt



On Sat, Nov 15, 2008 at 12:01 AM, Noble Paul (JIRA) <ji...@apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/SOLR-859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647799#action_12647799]
>
> Noble Paul commented on SOLR-859:
> ---------------------------------
>
> Why cant the JRuby version wrap SolrJ ? That way we get the performance
> benefits of wt=javabin
>
> > solr-ruby rewrite, jruby support
> > --------------------------------
> >
> >                 Key: SOLR-859
> >                 URL: https://issues.apache.org/jira/browse/SOLR-859
> >             Project: Solr
> >          Issue Type: Improvement
> >          Components: clients - ruby - flare
> >    Affects Versions: 1.3
> >            Reporter: Matt Mitchell
> >         Attachments: rewrite.1.patch
> >
> >
> > Here is a re-write of the solr ruby client library. This is a simplified
> set of features, but really only missing the mapper/indexer code that's
> present in the current solr-ruby. Bringing those in will be the next step.
> > Tests are in test. Please read the README, there are instructions for
> running the tests.
> > A Solr 1.3 distribution is including for tests.
> > * find patch in file uploads "rewrite.1.patch"
> > - Matt Mitchell
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>