Some questions about solr source code

2019-06-18 Thread ??????????
Dear Solr Developer,
I am a Chinese Software developer and I having been using solr for nearly 
4years.First Thank u for your continuous effort on improving solr.  Recently I 
began to read the source code because I am very curious about how it works. But 
I encountered many questions which I spend much time to thinkd about but 
failed.I hope u can explain for me.I list the question below.I am using solr 
6.6.0.Please parden me for my poor English.
1.In the method boolean handleVersions(ShardResponse srsp) of the class 
org.apache.solr.update.PeerSync,I can not understand the variant 'boolean 
completeList = otherVersions.size() < nUpdates;  ',I think it is just the 
opposite.Maybe I misunderstand the whole passage
2.Also in the class org.apache.solr.update.PeerSync,the method 
'handleVersionsWithRanges'??I think there is a bug in line 555 
while ((otherUpdatesIndex < otherVersions.size()) && 
(Math.abs(otherVersions.get(otherUpdatesIndex)) < 
Math.abs(ourUpdates.get(ourUpdatesIndex {
x
}
otherUpdatesIndex are always < otherVersions.size(),because it starts with 
otherVersions.size() -1 and it never get bigger,so there no point in checking 
this.I think it should be replaced with 'otherUpdatesIndex >= 0'
   I am not an expert of Solr.May be I misunderstand the whole class or method 
so please tell me directly if I am wrong.
   Please parden me again for my poor English.I am looking forward for your 
replay. Thank u again for your great effort to develop and improve Solr.


Best Regards
Guohua Wu

Re: Navigating through Solr Source Code

2018-05-24 Thread Christine Poerschke (BLOOMBERG/ LONDON)
Hello.

Emir mentioned about starting from the feature/concept. If you haven't come 
across it yet then the slides and/or recording of Hoss's "Lifecycle of a Solr 
Search Request" talk may be of interest - http://home.apache.org/~hossman/ has 
links.

Erick mentioned about getting a sense via unit tests. The 
HelloWorldSolrCloudTestCase could be a starting point for that - 
https://github.com/apache/lucene-solr/blob/releases/lucene-solr/7.3.1/solr/core/src/test/org/apache/solr/HelloWorldSolrCloudTestCase.java
 is a link to it.

Regards,
Christine

- Original Message -
From: solr-user@lucene.apache.org
To: apa...@elyograg.org, solr-user@lucene.apache.org
At: 05/21/18 17:08:10

Thanks for your responses.

Best Regards!


On 21 May 2018 at 16:40:10, Shawn Heisey (apa...@elyograg.org) wrote:

On 5/21/2018 4:35 AM, Greenhorn Techie wrote:
> As the documentation around Solr is limited, I am thinking to go through
> the source code and understand the various bits and pieces. However, I am
a
> bit confused on where to start as I my developing skills are a bit
limited.
>
> Any thoughts on how best to start / where to start looking into Solr
source
> code?

As Erick has said, the rabbit hole is very deep.I've been looking into
it for a few years now.  There are parts of it that are a complete mystery.

Depending on exactly what you're looking for, one approach is to examine
the SolrDispatchFilter class.  This is the entry point from the servlet
container for most HTTP requests, and a lot of Solr's startup
initialization is found there.

The solr/webapp/web/WEB-INF/web.xml file in the source code checkout is
what loads SolrDispatchFilter and a few other classes when Solr starts.

Thanks,
Shawn



Re: Navigating through Solr Source Code

2018-05-21 Thread Greenhorn Techie
Thanks for your responses.

Best Regards!


On 21 May 2018 at 16:40:10, Shawn Heisey (apa...@elyograg.org) wrote:

On 5/21/2018 4:35 AM, Greenhorn Techie wrote:
> As the documentation around Solr is limited, I am thinking to go through
> the source code and understand the various bits and pieces. However, I am
a
> bit confused on where to start as I my developing skills are a bit
limited.
>
> Any thoughts on how best to start / where to start looking into Solr
source
> code?

As Erick has said, the rabbit hole is very deep.I've been looking into
it for a few years now.  There are parts of it that are a complete mystery.

Depending on exactly what you're looking for, one approach is to examine
the SolrDispatchFilter class.  This is the entry point from the servlet
container for most HTTP requests, and a lot of Solr's startup
initialization is found there.

The solr/webapp/web/WEB-INF/web.xml file in the source code checkout is
what loads SolrDispatchFilter and a few other classes when Solr starts.

Thanks,
Shawn


Re: Navigating through Solr Source Code

2018-05-21 Thread Shawn Heisey

On 5/21/2018 4:35 AM, Greenhorn Techie wrote:

As the documentation around Solr is limited, I am thinking to go through
the source code and understand the various bits and pieces. However, I am a
bit confused on where to start as I my developing skills are a bit limited.

Any thoughts on how best to start / where to start looking into Solr source
code?


As Erick has said, the rabbit hole is very deep.I've been looking into 
it for a few years now.  There are parts of it that are a complete mystery.


Depending on exactly what you're looking for, one approach is to examine 
the SolrDispatchFilter class.  This is the entry point from the servlet 
container for most HTTP requests, and a lot of Solr's startup 
initialization is found there.


The solr/webapp/web/WEB-INF/web.xml file in the source code checkout is 
what loads SolrDispatchFilter and a few other classes when Solr starts.


Thanks,
Shawn



Re: Navigating through Solr Source Code

2018-05-21 Thread Deepak Goel
If you can find out how Solr evolved over the years, you can perhaps follow
that same path

On Mon, 21 May 2018, 18:35 Erick Erickson,  wrote:

> Another useful trick is the class hierarchy displays most modern IDE's
> have available to get a sense of what class is where. And I second
> Emir's comment about picking some feature. _Nobody_ knows all the Solr
> code, and that's not even including Lucene. It's big, very big. So
> pick a feature you want to understand and/or improve and stick to that
> or you'll go nuts.
>
> And a great way to get a sense of how a feature works is to find the
> unit test that exercises it and just step through it in the debugger.
> And if there's no unit test, another great way to do things would be
> to _create_ a unit test. Or fix some of the BadApple tests, but those
> will be pretty hairy
>
> Best,
> Erick
>
> On Mon, May 21, 2018 at 7:18 AM, Emir Arnautović
>  wrote:
> > Hi,
> > I would start from the feature/concept that I find documentation to be
> vague. If you think that everything is like that, I would not start with
> code just yet and would focus on understanding high level concepts first.
> Also, you need to figure out if some feature is Solr or Lucene and if it is
> Solr if cloud mode is involved or not. I would suggest that you start
> simple tog get familiar with Solr concepts. Set up local dev env, put some
> break point and start following it.
> >
> > Good luck,
> > Emir
> > --
> > Monitoring - Log Management - Alerting - Anomaly Detection
> > Solr & Elasticsearch Consulting Support Training - http://sematext.com/
> >
> >
> >
> >> On 21 May 2018, at 12:35, Greenhorn Techie 
> wrote:
> >>
> >> Hi,
> >>
> >> As the documentation around Solr is limited, I am thinking to go through
> >> the source code and understand the various bits and pieces. However, I
> am a
> >> bit confused on where to start as I my developing skills are a bit
> limited.
> >>
> >> Any thoughts on how best to start / where to start looking into Solr
> source
> >> code?
> >>
> >> Thanks
> >
>


Re: Navigating through Solr Source Code

2018-05-21 Thread Erick Erickson
Another useful trick is the class hierarchy displays most modern IDE's
have available to get a sense of what class is where. And I second
Emir's comment about picking some feature. _Nobody_ knows all the Solr
code, and that's not even including Lucene. It's big, very big. So
pick a feature you want to understand and/or improve and stick to that
or you'll go nuts.

And a great way to get a sense of how a feature works is to find the
unit test that exercises it and just step through it in the debugger.
And if there's no unit test, another great way to do things would be
to _create_ a unit test. Or fix some of the BadApple tests, but those
will be pretty hairy

Best,
Erick

On Mon, May 21, 2018 at 7:18 AM, Emir Arnautović
 wrote:
> Hi,
> I would start from the feature/concept that I find documentation to be vague. 
> If you think that everything is like that, I would not start with code just 
> yet and would focus on understanding high level concepts first. Also, you 
> need to figure out if some feature is Solr or Lucene and if it is Solr if 
> cloud mode is involved or not. I would suggest that you start simple tog get 
> familiar with Solr concepts. Set up local dev env, put some break point and 
> start following it.
>
> Good luck,
> Emir
> --
> Monitoring - Log Management - Alerting - Anomaly Detection
> Solr & Elasticsearch Consulting Support Training - http://sematext.com/
>
>
>
>> On 21 May 2018, at 12:35, Greenhorn Techie  wrote:
>>
>> Hi,
>>
>> As the documentation around Solr is limited, I am thinking to go through
>> the source code and understand the various bits and pieces. However, I am a
>> bit confused on where to start as I my developing skills are a bit limited.
>>
>> Any thoughts on how best to start / where to start looking into Solr source
>> code?
>>
>> Thanks
>


Re: Navigating through Solr Source Code

2018-05-21 Thread Emir Arnautović
Hi,
I would start from the feature/concept that I find documentation to be vague. 
If you think that everything is like that, I would not start with code just yet 
and would focus on understanding high level concepts first. Also, you need to 
figure out if some feature is Solr or Lucene and if it is Solr if cloud mode is 
involved or not. I would suggest that you start simple tog get familiar with 
Solr concepts. Set up local dev env, put some break point and start following 
it.

Good luck,
Emir
--
Monitoring - Log Management - Alerting - Anomaly Detection
Solr & Elasticsearch Consulting Support Training - http://sematext.com/



> On 21 May 2018, at 12:35, Greenhorn Techie  wrote:
> 
> Hi,
> 
> As the documentation around Solr is limited, I am thinking to go through
> the source code and understand the various bits and pieces. However, I am a
> bit confused on where to start as I my developing skills are a bit limited.
> 
> Any thoughts on how best to start / where to start looking into Solr source
> code?
> 
> Thanks



Navigating through Solr Source Code

2018-05-21 Thread Greenhorn Techie
Hi,

As the documentation around Solr is limited, I am thinking to go through
the source code and understand the various bits and pieces. However, I am a
bit confused on where to start as I my developing skills are a bit limited.

Any thoughts on how best to start / where to start looking into Solr source
code?

Thanks


Re: com.ibm.icu dependency errors when building solr source code

2017-06-22 Thread Amrit Sarkar
Running "ant eclipse" or "ant test" in verbose mode will provide you the
exact lib in ivy2 cache which is corrupt. Delete that particular lib and
run "ant" again. Also don't try to get out / exit  "ant" commands via
Ctrl+C or Ctrl+V while it is downloading the libraries to ivy2 folder.


Re: com.ibm.icu dependency errors when building solr source code

2017-06-22 Thread Erick Erickson
Sometimes I've seen something like this when the ivy cache is corrupt. It's
a pain since it takes a while to re-download things, but you might try to
remove that entire cache. On my mac it's 'rm -rf ~.ivy2/cache'

Erick

On Thu, Jun 22, 2017 at 3:39 AM, Susheel Kumar 
wrote:

> Hello,
>
> Am i missing something or the source code is broken.  Took latest code from
> master and when doing "ant eclipse" or "ant test",  getting below error.
>
> ivy-configure:
>
> [ivy:configure] :: loading settings :: file =
> /Users/kumars5/src/git/code/lucene-solr/lucene/top-level-ivy-settings.xml
>
>
> resolve:
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: problems summary ::
>
> [ivy:retrieve]  WARNINGS
>
> [ivy:retrieve] ::
>
> [ivy:retrieve] ::  UNRESOLVED DEPENDENCIES ::
>
> [ivy:retrieve] ::
>
> [ivy:retrieve] :: com.ibm.icu#icu4j;59.1: configuration not found in
> com.ibm.icu#icu4j;59.1: 'master'. It was required from
> org.apache.lucene#analyzers-icu;working@ROSELCDV0001LJC compile
>
> [ivy:retrieve] ::
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>
>
> BUILD FAILED
>
> /Users/kumars5/src/git/code/lucene-solr/build.xml:300: The following error
> occurred while executing this line:
>
> /Users/kumars5/src/git/code/lucene-solr/lucene/build.xml:130: The
> following
> error occurred while executing this line:
>
> /Users/kumars5/src/git/code/lucene-solr/lucene/common-build.xml:2179: The
> following error occurred while executing this line:
>
> /Users/kumars5/src/git/code/lucene-solr/lucene/analysis/build.xml:91: The
> following error occurred while executing this line:
>
> /Users/kumars5/src/git/code/lucene-solr/lucene/analysis/build.xml:38: The
> following error occurred while executing this line:
>
> /Users/kumars5/src/git/code/lucene-solr/lucene/common-build.xml:409:
> impossible to resolve dependencies:
>
> resolve failed - see output for details
>


com.ibm.icu dependency errors when building solr source code

2017-06-22 Thread Susheel Kumar
Hello,

Am i missing something or the source code is broken.  Took latest code from
master and when doing "ant eclipse" or "ant test",  getting below error.

ivy-configure:

[ivy:configure] :: loading settings :: file =
/Users/kumars5/src/git/code/lucene-solr/lucene/top-level-ivy-settings.xml


resolve:

[ivy:retrieve]

[ivy:retrieve] :: problems summary ::

[ivy:retrieve]  WARNINGS

[ivy:retrieve] ::

[ivy:retrieve] ::  UNRESOLVED DEPENDENCIES ::

[ivy:retrieve] ::

[ivy:retrieve] :: com.ibm.icu#icu4j;59.1: configuration not found in
com.ibm.icu#icu4j;59.1: 'master'. It was required from
org.apache.lucene#analyzers-icu;working@ROSELCDV0001LJC compile

[ivy:retrieve] ::

[ivy:retrieve]

[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS


BUILD FAILED

/Users/kumars5/src/git/code/lucene-solr/build.xml:300: The following error
occurred while executing this line:

/Users/kumars5/src/git/code/lucene-solr/lucene/build.xml:130: The following
error occurred while executing this line:

/Users/kumars5/src/git/code/lucene-solr/lucene/common-build.xml:2179: The
following error occurred while executing this line:

/Users/kumars5/src/git/code/lucene-solr/lucene/analysis/build.xml:91: The
following error occurred while executing this line:

/Users/kumars5/src/git/code/lucene-solr/lucene/analysis/build.xml:38: The
following error occurred while executing this line:

/Users/kumars5/src/git/code/lucene-solr/lucene/common-build.xml:409:
impossible to resolve dependencies:

resolve failed - see output for details


Re: Want to modify Solr Source Code

2015-03-17 Thread Andrea Gazzarini

Hi,
if you followed what is written in the link that Gora suggested, you 
should have a workspace without errors.
Eclipse compiler allows for incremental builds, that is, all code is 
incrementally compiled as soon as you finish typing.


So if you inserted those lines and you don't see any error then that 
means they have been successfully compiled.


Best,
Andrea

On 03/17/2015 01:52 PM, Nitin Solanki wrote:

Hi all,
I have configured solr source code with eclipse. Now, I have
written a print statement in between the SolrSpellChecker.java. Now, I want
to compile this file. How to do that ?
Any help please...

On Tue, Mar 17, 2015 at 2:27 PM, Gora Mohanty  wrote:


On 17 March 2015 at 13:38, Nitin Solanki  wrote:

Hi Gora,
  Thanks again. Do you have any link/ article of Wiki article?
Please send me.

Sent the link in my very first follow-up:

http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc29

Regards,
Gora





Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi all,
   How to set breakpoints throughout the Solr code, step through
code ?

On Tue, Mar 17, 2015 at 6:22 PM, Nitin Solanki  wrote:

> Hi all,
>I have configured solr source code with eclipse. Now, I have
> written a print statement in between the SolrSpellChecker.java. Now, I want
> to compile this file. How to do that ?
> Any help please...
>
> On Tue, Mar 17, 2015 at 2:27 PM, Gora Mohanty  wrote:
>
>> On 17 March 2015 at 13:38, Nitin Solanki  wrote:
>> > Hi Gora,
>> >  Thanks again. Do you have any link/ article of Wiki
>> article?
>> > Please send me.
>>
>> Sent the link in my very first follow-up:
>>
>> http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc29
>>
>> Regards,
>> Gora
>>
>
>


Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi all,
   I have configured solr source code with eclipse. Now, I have
written a print statement in between the SolrSpellChecker.java. Now, I want
to compile this file. How to do that ?
Any help please...

On Tue, Mar 17, 2015 at 2:27 PM, Gora Mohanty  wrote:

> On 17 March 2015 at 13:38, Nitin Solanki  wrote:
> > Hi Gora,
> >  Thanks again. Do you have any link/ article of Wiki article?
> > Please send me.
>
> Sent the link in my very first follow-up:
>
> http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc29
>
> Regards,
> Gora
>


Re: Want to modify Solr Source Code

2015-03-17 Thread Gora Mohanty
On 17 March 2015 at 13:38, Nitin Solanki  wrote:
> Hi Gora,
>  Thanks again. Do you have any link/ article of Wiki article?
> Please send me.

Sent the link in my very first follow-up:
http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc29

Regards,
Gora


Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi Gora,
 Thanks again. Do you have any link/ article of Wiki article?
Please send me.

On Tue, Mar 17, 2015 at 1:30 PM, Gora Mohanty  wrote:

> On 17 March 2015 at 13:21, Nitin Solanki  wrote:
>
> > I have already downloaded
> > http://archive.apache.org/dist/lucene/solr/4.10.2/solr-4.10.2.tgz. Now,
> > How
> > to view or edit the source code of any file? I don't have any idea about
> > it.. Your help is appreciated..
> > Please guide my step by step..
> > Thanks again..
> >
>
> You need to learn the basics of putting together a development setup
> yourself, or from a local mentor. A .tgz is a gzip-compressed tar file that
> can be unarchived with tar, or most unarchivers. You are probably best off
> to use a Java IDE, such as Eclipse, to edit the source code. The Wiki
> article covers how to compile the code, and run the built-in tests.
>
> Regards,
> Gora
>


Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi Anshum,
  The reason behind to edit source code is that I am using
spell check component on solr. I have implemented it and it is working
fine..
But something suggestion frequency goes vary. I have explain that it into
this -
http://stackoverflow.com/questions/28857915/original-frequency-is-not-matching-with-suggestion-frequency-in-solr.
Please check it..
And now, I am thinking that if I will able to add hitcount instead of freq
in suggestion then I will be helpful for my purpose.

On Tue, Mar 17, 2015 at 1:23 PM, Anshum Gupta 
wrote:

> Hi Nitin,
>
> Do you intend to browse the code? If you really want to modify the code,
> can you tell us about what exactly is it that you're trying to achieve?
> Can you clarify on how you want to test Solr? If so, do you plan on running
> the tests that Solr ships with or do you have your own tests?
>
>
> All said and done, if you don't want to use svn but still want to download
> the Solr source, you can download the same (for Solr 5.0.0) from any of the
> mirrors listed here:
>
> http://www.apache.org/dyn/closer.cgi/lucene/solr/5.0.0
>
>
>
> On Tue, Mar 17, 2015 at 12:42 AM, Nitin Solanki 
> wrote:
>
> > Hi Gora,
> >Hi, I want to make changes only into my machine without
> svn.
> > I want to do test on source code. How ? Any steps to do so ? Please
> help..
> >
> > On Tue, Mar 17, 2015 at 1:01 PM, Gora Mohanty 
> wrote:
> >
> > > On 17 March 2015 at 12:22, Nitin Solanki  wrote:
> > > >
> > > > Hi,
> > > >  I want to modify the solr source code. I don't have any idea
> > > where
> > > > source code is available. I want to edit source code. How can I do ?
> > > > Any help please...
> > >
> > > Please start with:
> > >
> > >
> >
> http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc29
> > >
> > > Regards,
> > > Gora
> > >
> >
>
>
>
> --
> Anshum Gupta
>


Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi Ramkumar,
 Sorry but svn will create cumbersome for me and I
don't want to use it right now. I want to do anything on local machine
without using svn.
As you said to download -src.tgz. I have download solr-4.10.2-src.tar.gz.
Now able to see source code. Now how to configure it and compile any file,
if I will change?
Any help please..

On Tue, Mar 17, 2015 at 1:21 PM, Ramkumar R. Aiyengar <
andyetitmo...@gmail.com> wrote:

> Is your concern that you want to be able to modify source code just on your
> machine or that  you can't for some reason install svn?
>
> If it's the former, even if you checkout using svn, you can't modify
> anything outside the machine as changes can be checked in only by the
> committers of the project. You will need to raise a JIRA for the changes to
> go back in as described by the wiki page.
>
> If the latter, try downloading the source code using the downloads section
> in https://lucene.apache.org/solr and choose the download which ends as
> -src.tgz, that has the source bundled as a single file.
> On 17 Mar 2015 07:42, "Nitin Solanki"  wrote:
>
> > Hi Gora,
> >Hi, I want to make changes only into my machine without
> svn.
> > I want to do test on source code. How ? Any steps to do so ? Please
> help..
> >
> > On Tue, Mar 17, 2015 at 1:01 PM, Gora Mohanty 
> wrote:
> >
> > > On 17 March 2015 at 12:22, Nitin Solanki  wrote:
> > > >
> > > > Hi,
> > > >  I want to modify the solr source code. I don't have any idea
> > > where
> > > > source code is available. I want to edit source code. How can I do ?
> > > > Any help please...
> > >
> > > Please start with:
> > >
> > >
> >
> http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc29
> > >
> > > Regards,
> > > Gora
> > >
> >
>


Re: Want to modify Solr Source Code

2015-03-17 Thread Gora Mohanty
On 17 March 2015 at 13:21, Nitin Solanki  wrote:

> I have already downloaded
> http://archive.apache.org/dist/lucene/solr/4.10.2/solr-4.10.2.tgz. Now,
> How
> to view or edit the source code of any file? I don't have any idea about
> it.. Your help is appreciated..
> Please guide my step by step..
> Thanks again..
>

You need to learn the basics of putting together a development setup
yourself, or from a local mentor. A .tgz is a gzip-compressed tar file that
can be unarchived with tar, or most unarchivers. You are probably best off
to use a Java IDE, such as Eclipse, to edit the source code. The Wiki
article covers how to compile the code, and run the built-in tests.

Regards,
Gora


Re: Want to modify Solr Source Code

2015-03-17 Thread Anshum Gupta
Hi Nitin,

Do you intend to browse the code? If you really want to modify the code,
can you tell us about what exactly is it that you're trying to achieve?
Can you clarify on how you want to test Solr? If so, do you plan on running
the tests that Solr ships with or do you have your own tests?


All said and done, if you don't want to use svn but still want to download
the Solr source, you can download the same (for Solr 5.0.0) from any of the
mirrors listed here:

http://www.apache.org/dyn/closer.cgi/lucene/solr/5.0.0



On Tue, Mar 17, 2015 at 12:42 AM, Nitin Solanki 
wrote:

> Hi Gora,
>Hi, I want to make changes only into my machine without svn.
> I want to do test on source code. How ? Any steps to do so ? Please help..
>
> On Tue, Mar 17, 2015 at 1:01 PM, Gora Mohanty  wrote:
>
> > On 17 March 2015 at 12:22, Nitin Solanki  wrote:
> > >
> > > Hi,
> > >  I want to modify the solr source code. I don't have any idea
> > where
> > > source code is available. I want to edit source code. How can I do ?
> > > Any help please...
> >
> > Please start with:
> >
> >
> http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc29
> >
> > Regards,
> > Gora
> >
>



-- 
Anshum Gupta


Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
I have already downloaded
http://archive.apache.org/dist/lucene/solr/4.10.2/solr-4.10.2.tgz. Now, How
to view or edit the source code of any file? I don't have any idea about
it.. Your help is appreciated..
Please guide my step by step..
Thanks again..


On Tue, Mar 17, 2015 at 1:16 PM, Gora Mohanty  wrote:

> On 17 March 2015 at 13:12, Nitin Solanki  wrote:
> > Hi Gora,
> >Hi, I want to make changes only into my machine without
> svn.
> > I want to do test on source code. How ? Any steps to do so ? Please
> help..
>
> You could still use SVN for a local repository. Else, you can download
> a tar.gz of a Solr distribution from under the Download link at the
> top right of http://lucene.apache.org/solr/
>
> Regards,
> Gora
>


Re: Want to modify Solr Source Code

2015-03-17 Thread Ramkumar R. Aiyengar
Is your concern that you want to be able to modify source code just on your
machine or that  you can't for some reason install svn?

If it's the former, even if you checkout using svn, you can't modify
anything outside the machine as changes can be checked in only by the
committers of the project. You will need to raise a JIRA for the changes to
go back in as described by the wiki page.

If the latter, try downloading the source code using the downloads section
in https://lucene.apache.org/solr and choose the download which ends as
-src.tgz, that has the source bundled as a single file.
On 17 Mar 2015 07:42, "Nitin Solanki"  wrote:

> Hi Gora,
>Hi, I want to make changes only into my machine without svn.
> I want to do test on source code. How ? Any steps to do so ? Please help..
>
> On Tue, Mar 17, 2015 at 1:01 PM, Gora Mohanty  wrote:
>
> > On 17 March 2015 at 12:22, Nitin Solanki  wrote:
> > >
> > > Hi,
> > >  I want to modify the solr source code. I don't have any idea
> > where
> > > source code is available. I want to edit source code. How can I do ?
> > > Any help please...
> >
> > Please start with:
> >
> >
> http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc29
> >
> > Regards,
> > Gora
> >
>


Re: Want to modify Solr Source Code

2015-03-17 Thread Gora Mohanty
On 17 March 2015 at 13:12, Nitin Solanki  wrote:
> Hi Gora,
>Hi, I want to make changes only into my machine without svn.
> I want to do test on source code. How ? Any steps to do so ? Please help..

You could still use SVN for a local repository. Else, you can download
a tar.gz of a Solr distribution from under the Download link at the
top right of http://lucene.apache.org/solr/

Regards,
Gora


Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi Gora,
   Hi, I want to make changes only into my machine without svn.
I want to do test on source code. How ? Any steps to do so ? Please help..

On Tue, Mar 17, 2015 at 1:01 PM, Gora Mohanty  wrote:

> On 17 March 2015 at 12:22, Nitin Solanki  wrote:
> >
> > Hi,
> >  I want to modify the solr source code. I don't have any idea
> where
> > source code is available. I want to edit source code. How can I do ?
> > Any help please...
>
> Please start with:
>
> http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc29
>
> Regards,
> Gora
>


Re: Want to modify Solr Source Code

2015-03-17 Thread Gora Mohanty
On 17 March 2015 at 12:22, Nitin Solanki  wrote:
>
> Hi,
>  I want to modify the solr source code. I don't have any idea where
> source code is available. I want to edit source code. How can I do ?
> Any help please...

Please start with:
http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc29

Regards,
Gora


Want to modify Solr Source Code

2015-03-16 Thread Nitin Solanki
Hi,
 I want to modify the solr source code. I don't have any idea where
source code is available. I want to edit source code. How can I do ?
Any help please...


Re: Solr source code

2014-09-02 Thread Shawn Heisey
On 9/2/2014 8:27 AM, Shay Sofer wrote:
> What is the process regarding modify Solr source code (legal part)?
>
> In addition, who should I update for this bug and fix so Solr team will 
> consider using it.

The Lucene/Solr project is licensed under the Apache License, version 2.0.

http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/foundation/license-faq.html#WhatDoesItMEAN

The generally accepted way to contribute a bugfix to the project is to
find (or create) the appropriate issue in Jira, then attach your patch
to it.  Ideally you will check out the trunk branch from SVN and create
your patch against that with the "svn diff" tool, but the stable branch
(branch_4x currently) will do just as well.  Just be sure there's enough
info accompanying the patch for us to identify the exact branch/revision
used to build it.

http://wiki.apache.org/solr/HowToContribute

There are other methods, like the mailing list, a pull request for the
github mirror, etc... but Jira and a patch from SVN are the best way.

Thanks,
Shawn



Solr source code

2014-09-02 Thread Shay Sofer
Hi,

What is the process regarding modify Solr source code (legal part)?

In addition, who should I update for this bug and fix so Solr team will 
consider using it.

Thanks,
Shay.


Re: How to edit / compile the SOLR source code

2011-01-26 Thread Erick Erickson
Jonathan:

If you're working off trunk (and 3x), btw, there's a *great* addition
especially if you use IntelliJ (I haven't personally worked with the
Eclipse, there's a target for that too). Just get the source. Go to the top
level (e.g. apache-trunk). Execute "ant idea". Open IntelliJ and point it at
the directory via "open project".

Go into project settings and set your compiler. Wait for Idea to finish
indexing, etc. Run tests. Use ^N to find classes. Step through the code by
debugging unit tests.

Apart from the one trick of "opening project" on the folder rather than a
cute little IntelliJ icon (select the root directory), the *only* thing you
have to do is set your compiler. After having to spend *days* setting up the
IDE on some projects this is a dream. Apart from getting the source and
waiting for Idea to do its first-pass indexing, I can set up a new IDE
instance in, maybe, 5 minutes. Sweet!

And, BTW, the IntelliJ "community edition" is free and open-source now.

Best
Erick

On Wed, Jan 26, 2011 at 4:41 PM, Jonathan Rochkind  wrote:

> [Btw, this is great, thank you so much to Solr devs for providing simple
> ant-based compilation, and not making me install specific development tools
> and/or figure out how to use maven to compile, like certain other java
> projects. Just make sure ant is installed and 'ant dist', I can do that!  I
> more or less know how to write Java, at least for simple things,  but I
> still have trouble getting the right brew of required Java dev tools working
> properly to compile some projects! ]
>
>
> On 1/26/2011 4:19 PM, Erick Erickson wrote:
>
>> Sure, at the top level (above src) you should be able to just type
>> "ant dist", then look in the "dist" directory ant there should be a
>> solr.war
>>
>> Best
>> Erick
>>
>> On Wed, Jan 26, 2011 at 11:43 AM, Anurag
>>  wrote:
>>
>>  Actually i also want to edit Source Files of Solr.Does that mean i will
>>> have
>>> to go in "Src" directory of Solr and then rebuild using ant? I need not
>>> compile them or Ant will  do the whole compiling as well as updating the
>>> jar
>>> files?
>>> i have the following files in Solr-1.3.0 directory
>>>
>>> /home/anurag/apache-solr-1.3.0/build
>>> /home/anurag/apache-solr-1.3.0/client
>>> /home/anurag/apache-solr-1.3.0/contrib
>>> /home/anurag/apache-solr-1.3.0/dist
>>> /home/anurag/apache-solr-1.3.0/docs
>>> /home/anurag/apache-solr-1.3.0/example
>>> /home/anurag/apache-solr-1.3.0/lib
>>> /home/anurag/apache-solr-1.3.0/src
>>> /home/anurag/apache-solr-1.3.0/build.xml
>>> /home/anurag/apache-solr-1.3.0/CHANGES.txt
>>> /home/anurag/apache-solr-1.3.0/common-build.xml
>>> /home/anurag/apache-solr-1.3.0/KEYS.txt
>>> /home/anurag/apache-solr-1.3.0/LICENSE.txt
>>> /home/anurag/apache-solr-1.3.0/NOTICE.txt
>>> /home/anurag/apache-solr-1.3.0/README.txt
>>>
>>> and i want to edit the source code to implement my things. How should i
>>> proceed?
>>>
>>> -
>>> Kumar Anurag
>>>
>>> --
>>> View this message in context:
>>>
>>> http://lucene.472066.n3.nabble.com/How-to-edit-compile-the-SOLR-source-code-tp477584p2355270.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>>>


Re: How to edit / compile the SOLR source code

2011-01-26 Thread Jonathan Rochkind
[Btw, this is great, thank you so much to Solr devs for providing simple 
ant-based compilation, and not making me install specific development 
tools and/or figure out how to use maven to compile, like certain other 
java projects. Just make sure ant is installed and 'ant dist', I can do 
that!  I more or less know how to write Java, at least for simple 
things,  but I still have trouble getting the right brew of required 
Java dev tools working properly to compile some projects! ]


On 1/26/2011 4:19 PM, Erick Erickson wrote:

Sure, at the top level (above src) you should be able to just type
"ant dist", then look in the "dist" directory ant there should be a
solr.war

Best
Erick

On Wed, Jan 26, 2011 at 11:43 AM, Anurag  wrote:


Actually i also want to edit Source Files of Solr.Does that mean i will
have
to go in "Src" directory of Solr and then rebuild using ant? I need not
compile them or Ant will  do the whole compiling as well as updating the
jar
files?
i have the following files in Solr-1.3.0 directory

/home/anurag/apache-solr-1.3.0/build
/home/anurag/apache-solr-1.3.0/client
/home/anurag/apache-solr-1.3.0/contrib
/home/anurag/apache-solr-1.3.0/dist
/home/anurag/apache-solr-1.3.0/docs
/home/anurag/apache-solr-1.3.0/example
/home/anurag/apache-solr-1.3.0/lib
/home/anurag/apache-solr-1.3.0/src
/home/anurag/apache-solr-1.3.0/build.xml
/home/anurag/apache-solr-1.3.0/CHANGES.txt
/home/anurag/apache-solr-1.3.0/common-build.xml
/home/anurag/apache-solr-1.3.0/KEYS.txt
/home/anurag/apache-solr-1.3.0/LICENSE.txt
/home/anurag/apache-solr-1.3.0/NOTICE.txt
/home/anurag/apache-solr-1.3.0/README.txt

and i want to edit the source code to implement my things. How should i
proceed?

-
Kumar Anurag

--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-edit-compile-the-SOLR-source-code-tp477584p2355270.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: How to edit / compile the SOLR source code

2011-01-26 Thread Erick Erickson
Sure, at the top level (above src) you should be able to just type
"ant dist", then look in the "dist" directory ant there should be a
solr.war

Best
Erick

On Wed, Jan 26, 2011 at 11:43 AM, Anurag  wrote:

>
> Actually i also want to edit Source Files of Solr.Does that mean i will
> have
> to go in "Src" directory of Solr and then rebuild using ant? I need not
> compile them or Ant will  do the whole compiling as well as updating the
> jar
> files?
> i have the following files in Solr-1.3.0 directory
>
> /home/anurag/apache-solr-1.3.0/build
> /home/anurag/apache-solr-1.3.0/client
> /home/anurag/apache-solr-1.3.0/contrib
> /home/anurag/apache-solr-1.3.0/dist
> /home/anurag/apache-solr-1.3.0/docs
> /home/anurag/apache-solr-1.3.0/example
> /home/anurag/apache-solr-1.3.0/lib
> /home/anurag/apache-solr-1.3.0/src
> /home/anurag/apache-solr-1.3.0/build.xml
> /home/anurag/apache-solr-1.3.0/CHANGES.txt
> /home/anurag/apache-solr-1.3.0/common-build.xml
> /home/anurag/apache-solr-1.3.0/KEYS.txt
> /home/anurag/apache-solr-1.3.0/LICENSE.txt
> /home/anurag/apache-solr-1.3.0/NOTICE.txt
> /home/anurag/apache-solr-1.3.0/README.txt
>
> and i want to edit the source code to implement my things. How should i
> proceed?
>
> -
> Kumar Anurag
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/How-to-edit-compile-the-SOLR-source-code-tp477584p2355270.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: How to edit / compile the SOLR source code

2011-01-26 Thread Anurag

Actually i also want to edit Source Files of Solr.Does that mean i will have
to go in "Src" directory of Solr and then rebuild using ant? I need not
compile them or Ant will  do the whole compiling as well as updating the jar
files?
i have the following files in Solr-1.3.0 directory

/home/anurag/apache-solr-1.3.0/build
/home/anurag/apache-solr-1.3.0/client
/home/anurag/apache-solr-1.3.0/contrib
/home/anurag/apache-solr-1.3.0/dist
/home/anurag/apache-solr-1.3.0/docs
/home/anurag/apache-solr-1.3.0/example
/home/anurag/apache-solr-1.3.0/lib
/home/anurag/apache-solr-1.3.0/src
/home/anurag/apache-solr-1.3.0/build.xml
/home/anurag/apache-solr-1.3.0/CHANGES.txt
/home/anurag/apache-solr-1.3.0/common-build.xml
/home/anurag/apache-solr-1.3.0/KEYS.txt
/home/anurag/apache-solr-1.3.0/LICENSE.txt
/home/anurag/apache-solr-1.3.0/NOTICE.txt
/home/anurag/apache-solr-1.3.0/README.txt

and i want to edit the source code to implement my things. How should i
proceed?

-
Kumar Anurag

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-edit-compile-the-SOLR-source-code-tp477584p2355270.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to edit / compile the SOLR source code

2010-03-12 Thread Trey
Or, (as Joe Calderon said in the apparent sibling thread) you can just type
"ant clean dist" if you want to verifiably blow away the old jars and
replace them with the new jars/war to deploy.

-Trey

On Sat, Mar 13, 2010 at 12:03 AM, Trey  wrote:

> Hmm... sorry for the bad link... looks like somehow I inserted a bogus
> letter: "artiicles" instead of "articles" in the url.
> http://www.lucidimagination.com/developers/articles/setting-up-apache-solr-in-eclipse
>
> At any rate, are you using Ant to compile?  Literally all you have to do is
> run the command "ant example" in the directory containing your build.xml
> file (it's the top-level directory), and everything will be recompiled and
> repackaged for you.  If you are having trouble writing over old jar files,
> try running "ant clean" first, though I haven't had trouble with this in the
> past.
>
> Here's the full list of ant commands for the Solr project that you can run:
> usage:
>  [echo] Welcome to the Solr project!
>  [echo] Use 'ant example' to create a runnable example configuration.
>  [echo] Use 'ant run-example' to create and run the example.
>  [echo] And for developers:
>  [echo] Use 'ant clean' to clean compiled files.
>  [echo] Use 'ant compile' to compile the source code.
>  [echo] Use 'ant dist' to build the project WAR and JAR files.
>  [echo] Use 'ant generate-maven-artifacts' to generate maven artifacts.
>  [echo] Use 'ant package' to generate zip, tgz, and maven artifacts for
> dist
> ribution.
>  [echo] Use 'ant luke' to start luke.  see:
> http://www.getopt.org/luke/
>  [echo] Use 'ant test' to run unit tests.
>
> After you run one of the build commands, check in the "dist" directory for
> your repackaged jars and war file.
>
> -Trey
>
> On Fri, Mar 12, 2010 at 8:33 PM,  wrote:
>
>> Hi Trey,
>>
>> The below mentioned link doesn't work anymore but I figured out a way to
>> make the SOLR work in Eclipse.
>>
>> I also modified the solrqueryparser.java file and everything works fine in
>> Eclipse but I am not sure how to implement this change in the Jar file
>> (apache-solr-core-dev.jar). The class file present in the Jar is not getting
>> updated. Is it fine I if just unpack this jar and overlay my new class file
>> in to this jar?
>>
>> I want to deploy the modified code but couldnt figure out a way to do that
>> :(
>>
>> It would be great if you can provide any pointers / inputs for the same.
>>
>> Thanks,
>> Barani
>>
>> Trey-13 wrote:
>> >
>> > Yep, as you've discovered, the import from ant build file doesn't work
>> for
>> > the solr build.xml in eclipse.
>> >
>> > There is an excellent how-to for getting Solr up and running in Eclipse
>> > for
>> > debugging purposes here:
>> >
>> http://www.lucidimagination.com/developers/artiicles/setting-up-apache-solr-in-eclipse
>> >
>> > Once you have the setup in place from the above tutorial, you can then
>> go
>> > to
>> > any of the Solr Jar files and attach the source, which will allow you to
>> > debug into and modify the Solr code.  If you need to step into any of
>> the
>> > lucene code you'll have to pull it down separately, but you can attach
>> the
>> > same way.  The last step (after you've made your changes) is that you
>> > would
>> > just need to rebuild with Ant (run "ant" from the directory containing
>> the
>> > build.xml file to see the build options for Solr).  I think that just
>> > running "ant example" there should do the trick.
>> >
>> > -Trey
>> >
>> > On Thu, Mar 11, 2010 at 12:07 PM, JavaGuy84  wrote:
>> >
>> >>
>> >> Hi,
>> >>
>> >> Sorry for asking this very simple question but I am very new to SOLR
>> and
>> >> I
>> >> want to play with its source code.
>> >>
>> >> As a initial step I have a requirement to enable wildcard search
>> (*text)
>> >> in
>> >> SOLR. I am trying to figure out a way to import the complete SOLR build
>> >> to
>> >> Eclipse and edit QueryParsing.java file but I am not able to import (I
>> >> tried
>> >> to import with ant project in Eclipse and selected the build.xml file
>> and
>> >> got an error stating javac is not present in the build.xml file).
>> >>
>> >> Can someone help me out with the initial steps on how to import / edit
>> /
>> >> compile / test the SOLR source?
>> >>
>> >> Thanks a lot for your help!!!
>> >>
>> >> Thanks,
>> >> B
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866410.html
>> >> Sent from the Solr - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> Quoted from:
>>
>> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866847.html
>>
>>
>


Re: How to edit / compile the SOLR source code

2010-03-12 Thread Trey
Hmm... sorry for the bad link... looks like somehow I inserted a bogus
letter: "artiicles" instead of "articles" in the url.
http://www.lucidimagination.com/developers/articles/setting-up-apache-solr-in-eclipse

At any rate, are you using Ant to compile?  Literally all you have to do is
run the command "ant example" in the directory containing your build.xml
file (it's the top-level directory), and everything will be recompiled and
repackaged for you.  If you are having trouble writing over old jar files,
try running "ant clean" first, though I haven't had trouble with this in the
past.

Here's the full list of ant commands for the Solr project that you can run:
usage:
 [echo] Welcome to the Solr project!
 [echo] Use 'ant example' to create a runnable example configuration.
 [echo] Use 'ant run-example' to create and run the example.
 [echo] And for developers:
 [echo] Use 'ant clean' to clean compiled files.
 [echo] Use 'ant compile' to compile the source code.
 [echo] Use 'ant dist' to build the project WAR and JAR files.
 [echo] Use 'ant generate-maven-artifacts' to generate maven artifacts.
 [echo] Use 'ant package' to generate zip, tgz, and maven artifacts for
dist
ribution.
 [echo] Use 'ant luke' to start luke.  see: http://www.getopt.org/luke/
 [echo] Use 'ant test' to run unit tests.

After you run one of the build commands, check in the "dist" directory for
your repackaged jars and war file.

-Trey

On Fri, Mar 12, 2010 at 8:33 PM,  wrote:

> Hi Trey,
>
> The below mentioned link doesn't work anymore but I figured out a way to
> make the SOLR work in Eclipse.
>
> I also modified the solrqueryparser.java file and everything works fine in
> Eclipse but I am not sure how to implement this change in the Jar file
> (apache-solr-core-dev.jar). The class file present in the Jar is not getting
> updated. Is it fine I if just unpack this jar and overlay my new class file
> in to this jar?
>
> I want to deploy the modified code but couldnt figure out a way to do that
> :(
>
> It would be great if you can provide any pointers / inputs for the same.
>
> Thanks,
> Barani
>
> Trey-13 wrote:
> >
> > Yep, as you've discovered, the import from ant build file doesn't work
> for
> > the solr build.xml in eclipse.
> >
> > There is an excellent how-to for getting Solr up and running in Eclipse
> > for
> > debugging purposes here:
> >
> http://www.lucidimagination.com/developers/artiicles/setting-up-apache-solr-in-eclipse
> >
> > Once you have the setup in place from the above tutorial, you can then go
> > to
> > any of the Solr Jar files and attach the source, which will allow you to
> > debug into and modify the Solr code.  If you need to step into any of the
> > lucene code you'll have to pull it down separately, but you can attach
> the
> > same way.  The last step (after you've made your changes) is that you
> > would
> > just need to rebuild with Ant (run "ant" from the directory containing
> the
> > build.xml file to see the build options for Solr).  I think that just
> > running "ant example" there should do the trick.
> >
> > -Trey
> >
> > On Thu, Mar 11, 2010 at 12:07 PM, JavaGuy84  wrote:
> >
> >>
> >> Hi,
> >>
> >> Sorry for asking this very simple question but I am very new to SOLR and
> >> I
> >> want to play with its source code.
> >>
> >> As a initial step I have a requirement to enable wildcard search (*text)
> >> in
> >> SOLR. I am trying to figure out a way to import the complete SOLR build
> >> to
> >> Eclipse and edit QueryParsing.java file but I am not able to import (I
> >> tried
> >> to import with ant project in Eclipse and selected the build.xml file
> and
> >> got an error stating javac is not present in the build.xml file).
> >>
> >> Can someone help me out with the initial steps on how to import / edit /
> >> compile / test the SOLR source?
> >>
> >> Thanks a lot for your help!!!
> >>
> >> Thanks,
> >> B
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866410.html
> >> Sent from the Solr - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> Quoted from:
>
> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866847.html
>
>


Re: Need help in deploying the modified SOLR source code

2010-03-12 Thread Joe Calderon
do `ant clean dist` within the solr source and use the resulting war 
file, though in the future you might think about extending the built in 
parser and creating a parser plugin rather than modifying the actual sources


see http://wiki.apache.org/solr/SolrPlugins#QParserPlugin for more info

--joe
On 03/12/2010 07:34 PM, JavaGuy84 wrote:

Hi,

I had made some changes to solrqueryparser.java using Eclipse and I am able
to do a leading wildcard search using Jetty plugin (downloaded this plugin
for eclipse).. Now I am not sure how I can package this code and redploy it.
Can someone help me out please?

Thanks,
B
   




Need help in deploying the modified SOLR source code

2010-03-12 Thread JavaGuy84

Hi,

I had made some changes to solrqueryparser.java using Eclipse and I am able
to do a leading wildcard search using Jetty plugin (downloaded this plugin
for eclipse).. Now I am not sure how I can package this code and redploy it.
Can someone help me out please?

Thanks,
B
-- 
View this message in context: 
http://old.nabble.com/Need-help-in-deploying-the-modified-SOLR-source-code-tp27885403p27885403.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: How to edit / compile the SOLR source code

2010-03-11 Thread JavaGuy84
 leading wild card search, can you
>> please
>> let me know your comments on that?
>>
>> But I am very much interested in contributing some new stuff to SOLR
>> group
>> so I consider this as a starting point..
>>
>>
>> Thanks,
>> Barani
>>
>> Erick Erickson wrote:
>> >
>> > See Trey's comment, but before you go there.
>> >
>> > What about SOLR's wildcard searching capabilities aren't
>> > working for you now? There are a couple of tricks for making
>> > leading wildcard searches work quickly, but this is a solved
>> > problem. Although whether the existing solutions work in
>> > your situation may be an open question...
>> >
>> > Or do you have to hack into the parser for other reasons?
>> >
>> > Best
>> > Erick
>> >
>> > On Thu, Mar 11, 2010 at 12:07 PM, JavaGuy84  wrote:
>> >
>> >>
>> >> Hi,
>> >>
>> >> Sorry for asking this very simple question but I am very new to SOLR
>> and
>> >> I
>> >> want to play with its source code.
>> >>
>> >> As a initial step I have a requirement to enable wildcard search
>> (*text)
>> >> in
>> >> SOLR. I am trying to figure out a way to import the complete SOLR
>> build
>> >> to
>> >> Eclipse and edit QueryParsing.java file but I am not able to import (I
>> >> tried
>> >> to import with ant project in Eclipse and selected the build.xml file
>> and
>> >> got an error stating javac is not present in the build.xml file).
>> >>
>> >> Can someone help me out with the initial steps on how to import / edit
>> /
>> >> compile / test the SOLR source?
>> >>
>> >> Thanks a lot for your help!!!
>> >>
>> >> Thanks,
>> >> B
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866410.html
>> >> Sent from the Solr - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27871470.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27872470.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: How to edit / compile the SOLR source code

2010-03-11 Thread Erick Erickson
I am very new to SOLR and
> >> I
> >> want to play with its source code.
> >>
> >> As a initial step I have a requirement to enable wildcard search (*text)
> >> in
> >> SOLR. I am trying to figure out a way to import the complete SOLR build
> >> to
> >> Eclipse and edit QueryParsing.java file but I am not able to import (I
> >> tried
> >> to import with ant project in Eclipse and selected the build.xml file
> and
> >> got an error stating javac is not present in the build.xml file).
> >>
> >> Can someone help me out with the initial steps on how to import / edit /
> >> compile / test the SOLR source?
> >>
> >> Thanks a lot for your help!!!
> >>
> >> Thanks,
> >> B
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866410.html
> >> Sent from the Solr - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27871470.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


Re: How to edit / compile the SOLR source code

2010-03-11 Thread JavaGuy84

Eric,

Thanks a lot for your reply.

I was able to successfully hack the query parser and enabled the leading
wild card search.

As of today I hacked the code for this reason only, I am not sure how to
make the leading wild card search to work without hacking the code and this
type of search is the preferred type of search in our organization.

I had previously searched all over the web to find out 'why' that feature
was disabled as default but couldn't find any solid answer stating the
reason. In one of the posting in nabble it was mentioned that it might take
a performance hit if we enable the leading wild card search, can you please
let me know your comments on that?

But I am very much interested in contributing some new stuff to SOLR group
so I consider this as a starting point..


Thanks,
Barani

Erick Erickson wrote:
> 
> See Trey's comment, but before you go there.
> 
> What about SOLR's wildcard searching capabilities aren't
> working for you now? There are a couple of tricks for making
> leading wildcard searches work quickly, but this is a solved
> problem. Although whether the existing solutions work in
> your situation may be an open question...
> 
> Or do you have to hack into the parser for other reasons?
> 
> Best
> Erick
> 
> On Thu, Mar 11, 2010 at 12:07 PM, JavaGuy84  wrote:
> 
>>
>> Hi,
>>
>> Sorry for asking this very simple question but I am very new to SOLR and
>> I
>> want to play with its source code.
>>
>> As a initial step I have a requirement to enable wildcard search (*text)
>> in
>> SOLR. I am trying to figure out a way to import the complete SOLR build
>> to
>> Eclipse and edit QueryParsing.java file but I am not able to import (I
>> tried
>> to import with ant project in Eclipse and selected the build.xml file and
>> got an error stating javac is not present in the build.xml file).
>>
>> Can someone help me out with the initial steps on how to import / edit /
>> compile / test the SOLR source?
>>
>> Thanks a lot for your help!!!
>>
>> Thanks,
>> B
>> --
>> View this message in context:
>> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866410.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27871470.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: How to edit / compile the SOLR source code

2010-03-11 Thread Erick Erickson
See Trey's comment, but before you go there.

What about SOLR's wildcard searching capabilities aren't
working for you now? There are a couple of tricks for making
leading wildcard searches work quickly, but this is a solved
problem. Although whether the existing solutions work in
your situation may be an open question...

Or do you have to hack into the parser for other reasons?

Best
Erick

On Thu, Mar 11, 2010 at 12:07 PM, JavaGuy84  wrote:

>
> Hi,
>
> Sorry for asking this very simple question but I am very new to SOLR and I
> want to play with its source code.
>
> As a initial step I have a requirement to enable wildcard search (*text) in
> SOLR. I am trying to figure out a way to import the complete SOLR build to
> Eclipse and edit QueryParsing.java file but I am not able to import (I
> tried
> to import with ant project in Eclipse and selected the build.xml file and
> got an error stating javac is not present in the build.xml file).
>
> Can someone help me out with the initial steps on how to import / edit /
> compile / test the SOLR source?
>
> Thanks a lot for your help!!!
>
> Thanks,
> B
> --
> View this message in context:
> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866410.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


Re: How to edit / compile the SOLR source code

2010-03-11 Thread Trey
Yep, as you've discovered, the import from ant build file doesn't work for
the solr build.xml in eclipse.

There is an excellent how-to for getting Solr up and running in Eclipse for
debugging purposes here:
http://www.lucidimagination.com/developers/artiicles/setting-up-apache-solr-in-eclipse

Once you have the setup in place from the above tutorial, you can then go to
any of the Solr Jar files and attach the source, which will allow you to
debug into and modify the Solr code.  If you need to step into any of the
lucene code you'll have to pull it down separately, but you can attach the
same way.  The last step (after you've made your changes) is that you would
just need to rebuild with Ant (run "ant" from the directory containing the
build.xml file to see the build options for Solr).  I think that just
running "ant example" there should do the trick.

-Trey

On Thu, Mar 11, 2010 at 12:07 PM, JavaGuy84  wrote:

>
> Hi,
>
> Sorry for asking this very simple question but I am very new to SOLR and I
> want to play with its source code.
>
> As a initial step I have a requirement to enable wildcard search (*text) in
> SOLR. I am trying to figure out a way to import the complete SOLR build to
> Eclipse and edit QueryParsing.java file but I am not able to import (I
> tried
> to import with ant project in Eclipse and selected the build.xml file and
> got an error stating javac is not present in the build.xml file).
>
> Can someone help me out with the initial steps on how to import / edit /
> compile / test the SOLR source?
>
> Thanks a lot for your help!!!
>
> Thanks,
> B
> --
> View this message in context:
> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866410.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


How to edit / compile the SOLR source code

2010-03-11 Thread JavaGuy84

Hi,

Sorry for asking this very simple question but I am very new to SOLR and I
want to play with its source code.

As a initial step I have a requirement to enable wildcard search (*text) in
SOLR. I am trying to figure out a way to import the complete SOLR build to
Eclipse and edit QueryParsing.java file but I am not able to import (I tried
to import with ant project in Eclipse and selected the build.xml file and
got an error stating javac is not present in the build.xml file).

Can someone help me out with the initial steps on how to import / edit /
compile / test the SOLR source?

Thanks a lot for your help!!!

Thanks,
B
-- 
View this message in context: 
http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866410.html
Sent from the Solr - User mailing list archive at Nabble.com.