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

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

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 i

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/

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 someh

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 com

Re: How to edit / compile the SOLR source code

2010-03-11 Thread JavaGuy84
Erik, That was a wonderful explanation, I hope many folks in this forum will be benefited from the explanation you have given here. Actually I Googled and found the solution when you had earlier mentioned that I can do a leading wildcard without hacking the code. I found out the patch that ha

Re: How to edit / compile the SOLR source code

2010-03-11 Thread Erick Erickson
Leaving aside some historical reasons, the root of the issue is that any search has to identify all the terms in a field that satisfy it. Let's take a normal non-leading wildcard case first. Finding all the terms like 'some*' will have to deal with many fewer terms than 's*'. Just dealing with tha

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 th

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 situatio

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 Onc