Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 35207 invoked from network); 27 Jun 2007 01:32:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jun 2007 01:32:31 -0000 Received: (qmail 6548 invoked by uid 500); 27 Jun 2007 01:32:28 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 6512 invoked by uid 500); 27 Jun 2007 01:32:28 -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 Received: (qmail 6501 invoked by uid 99); 27 Jun 2007 01:32:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2007 18:32:28 -0700 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jpsondag@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2007 18:32:24 -0700 Received: by py-out-1112.google.com with SMTP id f31so51750pyh for ; Tue, 26 Jun 2007 18:32:03 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=eBgcSx2fJCTahmpIIjYlMgeDc6n5h7fIMNubhIskDTcNPjXMThWz17FaKtpGKeqcI3Bs/lvKjWJY7iiF6foDZEULaPGvAhSUifT/koYst+DonoICn9KLy5YVCdZ4U2mMLu8vO+tmmtkigQknP1LZx+m3XPd12Dd/NoQ044aua74= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=XzChrT7jjusBUcPwwMVSjck9Dr5wbu4ND7W3NeqwWsZZfIrH57K7Gla/P/jo7eIOqZVMtewOHWYBoA2PrTYyrA101r1FRdzNFbW7Ncvs+S1x+2Y6POXI3h1c/+KdByJ7gjCHnXJT25uOvgYgUELXO+yMY5yQZMzKBvByKZDnGOU= Received: by 10.65.185.3 with SMTP id m3mr34655qbp.1182907923303; Tue, 26 Jun 2007 18:32:03 -0700 (PDT) Received: by 10.65.203.18 with HTTP; Tue, 26 Jun 2007 18:32:03 -0700 (PDT) Message-ID: Date: Tue, 26 Jun 2007 20:32:03 -0500 From: "John Paul Sondag" Sender: jpsondag@gmail.com To: java-user@lucene.apache.org Subject: Standard Tokenizer Question MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6896_5062851.1182907923144" X-Google-Sender-Auth: 7ea84d974578fbd6 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6896_5062851.1182907923144 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey, I Think this is where I ask this. I'm pretty new to this so this is probably a dumb question. I'm using the StandardTokenizer class to turn a file into tokens. I then need to be able to later skip to a specific token in the file sent to me from another source. So say my StandardTokenizer is called st and I'm told to get token y. At first I was using st.getToken(y). But this was returning an object of type "StandardToken", I really would like to just have it return type Token (because it has more useful functions for me like termText()). Right now I just call st.next() y times to get the y'th token, which is horribly inefficient but I can't find any way to a) go right to the token I want b) Have it be type Token and not Standard Token. --JP ------=_Part_6896_5062851.1182907923144--