lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Highlighter compile error
Date Fri, 11 Mar 2005 06:27:00 GMT
Andy,

Judging from your path, it looks like you didn't check things out of
SVN.

You'll need a SVN client, and then you could:

  svn co http://svn.apache.org/repos/asf/lucene/java/trunk/

In there you will see a contrib/ directory, and highlighter underneath
it.  Running ant from there builds the Highligher without errors for me
now.

Andy Roberts.... familiar name.  jTokeniser?  I just 'Simpied' you
earlier today: http://www.simpy.com/simpy/User.do?username=otis

Otis


--- Andy Roberts <mail@andy-roberts.net> wrote:
> I've search the archives for this error, but it reported no
> matches...
> 
> I'm trying to get hold of the Highlighter code as this could be
> relevant 
> to my earlier post. I've checked out the highlight repo to my PC and 
> tried to build.
> 
> I get the following error:
> 
> $ ant
> Buildfile: build.xml
> 
> init:
>      [echo] Building highlighter
> 
> compile:
>     [javac] Compiling 17 source files 
> to /home/andyr/programming/java/lucene/hig
> hlighter/build/classes
>     
> [javac]
> /home/andyr/programming/java/lucene/highlighter/src/java/org/apache/
> lucene/search/highlight/TokenSources.java:19: cannot find symbol
>     [javac] symbol  : class TermVectorOffsetInfo
>     [javac] location: package org.apache.lucene.index
>     [javac] import org.apache.lucene.index.TermVectorOffsetInfo;
>     [javac]                                ^
>     
> [javac]
> /home/andyr/programming/java/lucene/highlighter/src/java/org/apache/
> lucene/search/highlight/TokenSources.java:124: cannot find symbol
>     [javac] symbol  : class TermVectorOffsetInfo
>     [javac] location: class
> org.apache.lucene.search.highlight.TokenSources
>     [javac]             TermVectorOffsetInfo[]
> offsets=tpv.getOffsets(t);
>     [javac]             ^
>     
> [javac]
> /home/andyr/programming/java/lucene/highlighter/src/java/org/apache/
> lucene/search/highlight/TokenSources.java:124: cannot find symbol
>     [javac] symbol  : method getOffsets(int)
>     [javac] location: interface
> org.apache.lucene.index.TermPositionVector
>     [javac]             TermVectorOffsetInfo[]
> offsets=tpv.getOffsets(t);
>     [javac]                                               ^
>     [javac] Note: Some input files use unchecked or unsafe
> operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 3 errors
> 
> BUILD FAILED
> /home/andyr/programming/java/lucene/common.xml:107: Compile failed;
> see the 
> compiler error output for details.
> 
> It may not be obvious to those not using fixed-width fonts, but
> basically it 
> can't find the 
> TermVectorOffsetInfo class. Which is hardly surprising, since it
> doesn't seem 
> to exist! I've
> also downloaded and successfully built the code in the
> lucene-1.4.2-dev 
> branch,
> but that doesn't contain that class either!
> 
> Any hints? Google didn't shed any light, btw.
> 
> Cheers,
> Andy Roberts
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message