Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 82387 invoked from network); 11 Mar 2005 03:13:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Mar 2005 03:13:46 -0000 Received: (qmail 76421 invoked by uid 500); 11 Mar 2005 03:13:44 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 75606 invoked by uid 500); 11 Mar 2005 03:13:42 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Delivered-To: moderator for java-user@lucene.apache.org Received: (qmail 44146 invoked by uid 99); 10 Mar 2005 13:18:41 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) From: Andy Roberts To: java-user@lucene.apache.org Subject: Highlighter compile error Date: Thu, 10 Mar 2005 13:21:10 +0000 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200503101321.10733.mail@andy-roberts.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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