lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Roberts <m...@andy-roberts.net>
Subject Highlighter compile error
Date Thu, 10 Mar 2005 13:21:10 GMT
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


Mime
View raw message