Best way to tell which Lucene revision a Solr build comes with?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Best way to tell which Lucene revision a Solr build comes with?

Chris Harris-2
I'm getting to the point where building Solr involves:

1. Figuring out which Lucene revision the Solr build I downloaded was
built against
2. Downloading/patching/building that revision of Lucene
3. Copying over the new Lucene jars into Solr's lib directory
4. Building Solr

What's the best way to do #1? Currently all I've figured out is
starting up Solr, and looking at the release info displayed on the
administration jsp pages. There must be a way to do it before you
compile Solr, though, right?

Also, are there any tricks to doing #3 correctly? It *looks*
straightforward (just stuff from copy lucene/build and
lucene/build/contrib into solr/lib).

Thanks,
Chris
Reply | Threaded
Open this post in threaded view
|

Re: Best way to tell which Lucene revision a Solr build comes with?

Chris Harris-2
Huh, looks like looking at the Solr admin doesn't always help. I just
did a "ant compile; ant example" on Solr r690361, and when I now "java
-jar example.jar" and go to
http://localhost:8983/solr/admin/registry.jsp, my Lucene version info
is as follows:

        Lucene Specification Version: 2008-08-27_02-04-10
        Lucene Implementation Version: 2008-08-27_02-04-10 ${svnversion} -
2008-08-27 02:13:53

I feel like I've previously seen ${svnversion} expanded into a
concrete number on this page.

On Sun, Aug 31, 2008 at 2:54 PM, Chris Harris <[hidden email]> wrote:

> I'm getting to the point where building Solr involves:
>
> 1. Figuring out which Lucene revision the Solr build I downloaded was
> built against
> 2. Downloading/patching/building that revision of Lucene
> 3. Copying over the new Lucene jars into Solr's lib directory
> 4. Building Solr
>
> What's the best way to do #1? Currently all I've figured out is
> starting up Solr, and looking at the release info displayed on the
> administration jsp pages. There must be a way to do it before you
> compile Solr, though, right?
Reply | Threaded
Open this post in threaded view
|

Re: Best way to tell which Lucene revision a Solr build comes with?

hossman

1) Anytime the Lucene Jar is updated, a notation is added to CHANGES.txt,
and the svn commit message should have the specifics on the jar like
this..

http://svn.apache.org/viewvc/lucene/solr/trunk/lib/lucene-core-2.4-dev.jar?view=log

2) the Solr Admin screen is just displaying what's listed in the MANIFEST
for the Lucene Jar, so you can fetch that directly w/o running Solr.

3) ...

: Huh, looks like looking at the Solr admin doesn't always help. I just
        ...
: Lucene Implementation Version: 2008-08-27_02-04-10 ${svnversion} -
: 2008-08-27 02:13:53
:
: I feel like I've previously seen ${svnversion} expanded into a
: concrete number on this page.

That's because that build probably came from Hudson, previous builds
probably came from people building them manually (INFRA-1721 is why Hudson
builds of Lucene-Java don't have svnversion expanded at the moment)

-Hoss