Fwd: how to patch solr-236 in mac os

2010-05-12 Thread Jonty Rhods
please help me.. I am stuck..
I tried different way using terminal but still not finding way to patch...



-- Forwarded message --
From: Jonty Rhods 
Date: Wed, May 12, 2010 at 11:56 AM
Subject: Re: how to patch solr-236 in mac os
To: solr-user@lucene.apache.org


I tried to patch from diffrent src folder but asking for file name to
patch..
and I think some dependent patch also required..
please guide me to patch SOLR-236.patch (with dependent patch if any).
If it will require then I will again download the src code from trunk..

thanks


On Wed, May 12, 2010 at 11:53 AM, Jonty Rhods  wrote:

> hi
>
> I tried to patch by following command on console
>
> patch -p0 < SOLR-236-trunk.patch
> patching file
> solr/src/java/org/apache/solr/handler/component/CollapseComponent.java
> patching file
> solr/src/test/test-files/solr/conf/solrconfig-fieldcollapse.xml
> patching file
> solr/src/java/org/apache/solr/search/fieldcollapse/collector/DocumentGroupCountCollapseCollectorFactory.java
> patching file
> solr/src/java/org/apache/solr/search/fieldcollapse/collector/FieldValueCountCollapseCollectorFactory.java
> can't find file to patch at input line 995
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --
> |Index: solr/src/java/org/apache/solr/search/DocSetHitCollector.java
> |===
> |--- solr/src/java/org/apache/solr/search/DocSetHitCollector.java (revision
> 922957)
> |+++ solr/src/java/org/apache/solr/search/DocSetHitCollector.java (revision
> )
> --
> File to patch:
>
> Asking for filename, I check the but the file not exist..
> please help...
>
>
> On Tue, May 11, 2010 at 11:29 PM, Erick Erickson 
> wrote:
>
>> In Eclipse (you *may* need to have the subclipse plugin installed), just
>> right-click on the project>>team>>apply patch and follow the wizard
>>
>> HTH
>> Erick
>>
>> On Tue, May 11, 2010 at 12:50 PM, Jonty Rhods 
>> wrote:
>>
>> > hi David,
>> > thanks for quick reply..
>> > please give me full command. so I can patch. what is meaning of [level].
>> > As I write I had downloaded latest src from trunk.. So please also tell
>> > that, in terminal what will be command and from where I can run..
>> > should I try
>> > >patch -p[level] < name_of_patch.patch
>> >
>> > thanks
>> >
>> > On Tue, May 11, 2010 at 10:02 PM, David Stuart <
>> > david.stu...@progressivealliance.co.uk> wrote:
>> >
>> > > Hey,
>> > >
>> > > In osx you shoud be able to patch in the same way as on liux patch
>> > > -p[level] < name_of_patch.patch. You can do this from the shell
>> including
>> > on
>> > > the mac.
>> > >
>> > > David Stuart
>> > >
>> > >
>> > > On 11 May 2010, at 17:15, Jonty Rhods  wrote:
>> > >
>> > >  hi all,
>> > >>
>> > >> I am very new to solr.
>> > >> Now I required to patch solr (patch no 236).
>> > >> I download the latest src code and patch, but unable to finde
>> suitable
>> > way
>> > >> to patch.
>> > >> I have eclipse installed.
>> > >>
>> > >> please guide me..
>> > >>
>> > >
>> >
>>
>
>


Re: how to patch solr-236 in mac os

2010-05-11 Thread Jonty Rhods
I tried to patch from diffrent src folder but asking for file name to
patch..
and I think some dependent patch also required..
please guide me to patch SOLR-236.patch (with dependent patch if any).
If it will require then I will again download the src code from trunk..

thanks

On Wed, May 12, 2010 at 11:53 AM, Jonty Rhods  wrote:

> hi
>
> I tried to patch by following command on console
>
> patch -p0 < SOLR-236-trunk.patch
> patching file
> solr/src/java/org/apache/solr/handler/component/CollapseComponent.java
> patching file
> solr/src/test/test-files/solr/conf/solrconfig-fieldcollapse.xml
> patching file
> solr/src/java/org/apache/solr/search/fieldcollapse/collector/DocumentGroupCountCollapseCollectorFactory.java
> patching file
> solr/src/java/org/apache/solr/search/fieldcollapse/collector/FieldValueCountCollapseCollectorFactory.java
> can't find file to patch at input line 995
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --
> |Index: solr/src/java/org/apache/solr/search/DocSetHitCollector.java
> |===
> |--- solr/src/java/org/apache/solr/search/DocSetHitCollector.java (revision
> 922957)
> |+++ solr/src/java/org/apache/solr/search/DocSetHitCollector.java (revision
> )
> --
> File to patch:
>
> Asking for filename, I check the but the file not exist..
> please help...
>
>
> On Tue, May 11, 2010 at 11:29 PM, Erick Erickson 
> wrote:
>
>> In Eclipse (you *may* need to have the subclipse plugin installed), just
>> right-click on the project>>team>>apply patch and follow the wizard
>>
>> HTH
>> Erick
>>
>> On Tue, May 11, 2010 at 12:50 PM, Jonty Rhods 
>> wrote:
>>
>> > hi David,
>> > thanks for quick reply..
>> > please give me full command. so I can patch. what is meaning of [level].
>> > As I write I had downloaded latest src from trunk.. So please also tell
>> > that, in terminal what will be command and from where I can run..
>> > should I try
>> > >patch -p[level] < name_of_patch.patch
>> >
>> > thanks
>> >
>> > On Tue, May 11, 2010 at 10:02 PM, David Stuart <
>> > david.stu...@progressivealliance.co.uk> wrote:
>> >
>> > > Hey,
>> > >
>> > > In osx you shoud be able to patch in the same way as on liux patch
>> > > -p[level] < name_of_patch.patch. You can do this from the shell
>> including
>> > on
>> > > the mac.
>> > >
>> > > David Stuart
>> > >
>> > >
>> > > On 11 May 2010, at 17:15, Jonty Rhods  wrote:
>> > >
>> > >  hi all,
>> > >>
>> > >> I am very new to solr.
>> > >> Now I required to patch solr (patch no 236).
>> > >> I download the latest src code and patch, but unable to finde
>> suitable
>> > way
>> > >> to patch.
>> > >> I have eclipse installed.
>> > >>
>> > >> please guide me..
>> > >>
>> > >
>> >
>>
>
>


Re: how to patch solr-236 in mac os

2010-05-11 Thread Jonty Rhods
hi

I tried to patch by following command on console

patch -p0 < SOLR-236-trunk.patch
patching file
solr/src/java/org/apache/solr/handler/component/CollapseComponent.java
patching file
solr/src/test/test-files/solr/conf/solrconfig-fieldcollapse.xml
patching file
solr/src/java/org/apache/solr/search/fieldcollapse/collector/DocumentGroupCountCollapseCollectorFactory.java
patching file
solr/src/java/org/apache/solr/search/fieldcollapse/collector/FieldValueCountCollapseCollectorFactory.java
can't find file to patch at input line 995
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|Index: solr/src/java/org/apache/solr/search/DocSetHitCollector.java
|===
|--- solr/src/java/org/apache/solr/search/DocSetHitCollector.java (revision
922957)
|+++ solr/src/java/org/apache/solr/search/DocSetHitCollector.java (revision
)
--
File to patch:

Asking for filename, I check the but the file not exist..
please help...


On Tue, May 11, 2010 at 11:29 PM, Erick Erickson wrote:

> In Eclipse (you *may* need to have the subclipse plugin installed), just
> right-click on the project>>team>>apply patch and follow the wizard
>
> HTH
> Erick
>
> On Tue, May 11, 2010 at 12:50 PM, Jonty Rhods 
> wrote:
>
> > hi David,
> > thanks for quick reply..
> > please give me full command. so I can patch. what is meaning of [level].
> > As I write I had downloaded latest src from trunk.. So please also tell
> > that, in terminal what will be command and from where I can run..
> > should I try
> > >patch -p[level] < name_of_patch.patch
> >
> > thanks
> >
> > On Tue, May 11, 2010 at 10:02 PM, David Stuart <
> > david.stu...@progressivealliance.co.uk> wrote:
> >
> > > Hey,
> > >
> > > In osx you shoud be able to patch in the same way as on liux patch
> > > -p[level] < name_of_patch.patch. You can do this from the shell
> including
> > on
> > > the mac.
> > >
> > > David Stuart
> > >
> > >
> > > On 11 May 2010, at 17:15, Jonty Rhods  wrote:
> > >
> > >  hi all,
> > >>
> > >> I am very new to solr.
> > >> Now I required to patch solr (patch no 236).
> > >> I download the latest src code and patch, but unable to finde suitable
> > way
> > >> to patch.
> > >> I have eclipse installed.
> > >>
> > >> please guide me..
> > >>
> > >
> >
>


Re: how to patch solr-236 in mac os

2010-05-11 Thread Erick Erickson
In Eclipse (you *may* need to have the subclipse plugin installed), just
right-click on the project>>team>>apply patch and follow the wizard

HTH
Erick

On Tue, May 11, 2010 at 12:50 PM, Jonty Rhods  wrote:

> hi David,
> thanks for quick reply..
> please give me full command. so I can patch. what is meaning of [level].
> As I write I had downloaded latest src from trunk.. So please also tell
> that, in terminal what will be command and from where I can run..
> should I try
> >patch -p[level] < name_of_patch.patch
>
> thanks
>
> On Tue, May 11, 2010 at 10:02 PM, David Stuart <
> david.stu...@progressivealliance.co.uk> wrote:
>
> > Hey,
> >
> > In osx you shoud be able to patch in the same way as on liux patch
> > -p[level] < name_of_patch.patch. You can do this from the shell including
> on
> > the mac.
> >
> > David Stuart
> >
> >
> > On 11 May 2010, at 17:15, Jonty Rhods  wrote:
> >
> >  hi all,
> >>
> >> I am very new to solr.
> >> Now I required to patch solr (patch no 236).
> >> I download the latest src code and patch, but unable to finde suitable
> way
> >> to patch.
> >> I have eclipse installed.
> >>
> >> please guide me..
> >>
> >
>


Re: how to patch solr-236 in mac os

2010-05-11 Thread David Stuart



Hi jonty,

In then root directory of the src run

patch -p0 < name_of_patch.patch


David Stuart

On 11 May 2010, at 17:50, Jonty Rhods  wrote:


hi David,
thanks for quick reply..
please give me full command. so I can patch. what is meaning of  
[level].
As I write I had downloaded latest src from trunk.. So please also  
tell

that, in terminal what will be command and from where I can run..
should I try

patch -p[level] < name_of_patch.patch


thanks

On Tue, May 11, 2010 at 10:02 PM, David Stuart <
david.stu...@progressivealliance.co.uk> wrote:


Hey,

In osx you shoud be able to patch in the same way as on liux patch
-p[level] < name_of_patch.patch. You can do this from the shell  
including on

the mac.

David Stuart


On 11 May 2010, at 17:15, Jonty Rhods  wrote:

hi all,


I am very new to solr.
Now I required to patch solr (patch no 236).
I download the latest src code and patch, but unable to finde  
suitable way

to patch.
I have eclipse installed.

please guide me..





Re: how to patch solr-236 in mac os

2010-05-11 Thread Jonty Rhods
hi David,
thanks for quick reply..
please give me full command. so I can patch. what is meaning of [level].
As I write I had downloaded latest src from trunk.. So please also tell
that, in terminal what will be command and from where I can run..
should I try
>patch -p[level] < name_of_patch.patch

thanks

On Tue, May 11, 2010 at 10:02 PM, David Stuart <
david.stu...@progressivealliance.co.uk> wrote:

> Hey,
>
> In osx you shoud be able to patch in the same way as on liux patch
> -p[level] < name_of_patch.patch. You can do this from the shell including on
> the mac.
>
> David Stuart
>
>
> On 11 May 2010, at 17:15, Jonty Rhods  wrote:
>
>  hi all,
>>
>> I am very new to solr.
>> Now I required to patch solr (patch no 236).
>> I download the latest src code and patch, but unable to finde suitable way
>> to patch.
>> I have eclipse installed.
>>
>> please guide me..
>>
>


Re: how to patch solr-236 in mac os

2010-05-11 Thread David Stuart

Hey,

In osx you shoud be able to patch in the same way as on liux patch -p 
[level] < name_of_patch.patch. You can do this from the shell  
including on the mac.


David Stuart

On 11 May 2010, at 17:15, Jonty Rhods  wrote:


hi all,

I am very new to solr.
Now I required to patch solr (patch no 236).
I download the latest src code and patch, but unable to finde  
suitable way

to patch.
I have eclipse installed.

please guide me..


how to patch solr-236 in mac os

2010-05-11 Thread Jonty Rhods
hi all,

I am very new to solr.
Now I required to patch solr (patch no 236).
I download the latest src code and patch, but unable to finde suitable way
to patch.
I have eclipse installed.

please guide me..