Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 59263 invoked from network); 12 May 2008 16:06:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 May 2008 16:06:52 -0000 Received: (qmail 63159 invoked by uid 500); 12 May 2008 16:06:46 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 63121 invoked by uid 500); 12 May 2008 16:06:46 -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 63110 invoked by uid 99); 12 May 2008 16:06:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2008 09:06:46 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brendan.grainger@gmail.com designates 74.125.46.31 as permitted sender) Received: from [74.125.46.31] (HELO yw-out-2324.google.com) (74.125.46.31) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2008 16:06:00 +0000 Received: by yw-out-2324.google.com with SMTP id 3so1387116ywj.5 for ; Mon, 12 May 2008 09:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:content-type:mime-version:subject:date:x-mailer; bh=7WhXCMKLMFC7l3qPsD4ydv0bpNM19ftOI6WC4rlvjDk=; b=Dj+sSGA/ztiZltub66+3MPyI1vrU9iVUeVStzjYO+YdXYIWRt30Aqt76YW/MFY6ZYULtZ4teaej16cu/gwVU6U5p+0O4ySieUHVgYYB98YSF92ETYMNH5MV23z6rdk+87Qo6WdfmJ4TnyTqpGPWdaXVwLkbrAzw+dwYWpjBP2tw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:mime-version:subject:date:x-mailer; b=t3KjArCsJahDy5ZfjaVa2mZp8UHgIvkZs/COZkD1Uh79Q+mF0yfDu+Jloc9OnuKJwvdu2008n56UoToftObD3qCL6nrq6SCAYNznj9kcLgWMkLc52VUbteJjps4Sx2ELTSFABAyEemaN4lNrXqVtg4fenW2p7pSRAU5j/zGP2ng= Received: by 10.150.69.5 with SMTP id r5mr8400471yba.97.1210608369976; Mon, 12 May 2008 09:06:09 -0700 (PDT) Received: from ?192.168.1.108? ( [216.57.31.115]) by mx.google.com with ESMTPS id m6sm7010147wrm.35.2008.05.12.09.06.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 May 2008 09:06:08 -0700 (PDT) Message-Id: <077BBCF2-2E6C-4459-A924-417CA088EAA3@gmail.com> From: Brendan Grainger To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=Apple-Mail-1-372932370 Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Question about startOffset and endOffset Date: Mon, 12 May 2008 12:06:06 -0400 X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-1-372932370 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi, I have a TokenStream that inserts synonym tokens into the stream when matched. One thing I am wondering about is what is the effect of the startOffset and endOffset. I have something like this: Token synonymToken = new Token(originalToken.startOffset(), originalToken.endOffset(), "SYNONYM"); synonymToken.setPositionIncrement(0); What I am wondering is if I set the startOffset and endOffset to 0 and the endOffset to the length of the synonym string what effect will this have? eg Token synonymToken = new Token(0, repTok.endOffset(), "SYNONYM"); synonymToken.setPositionIncrement(0); Thanks --Apple-Mail-1-372932370--