Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 71101D101 for ; Mon, 11 Feb 2013 18:21:22 +0000 (UTC) Received: (qmail 6955 invoked by uid 500); 11 Feb 2013 18:21:19 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 6885 invoked by uid 500); 11 Feb 2013 18:21:19 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 6852 invoked by uid 99); 11 Feb 2013 18:21:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 18:21:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.48] (HELO mail-pa0-f48.google.com) (209.85.220.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 18:21:10 +0000 Received: by mail-pa0-f48.google.com with SMTP id hz10so3187608pad.21 for ; Mon, 11 Feb 2013 10:20:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:subject:message-id:user-agent:mime-version :content-type:x-gm-message-state; bh=vReXQIiWl/vvHsd1w2OizsC/Puu0vxhpA4Tim1BYSbs=; b=NNe9YnE6J2LBNaTeVkXkd1dp9e8v680QB+jo18x8uhhQnOF0cstv/FH1WgkCNLuL6L GPFUDPqg38IT9zOOzb57yWKGBwYhcvqI0xdBySbn2V+45EbTgRgf5zcEQMaYDim2b/B8 i9HOzyRTV1iFmDkOlMu+aE1Jeyz95jQgDRQ7e9J65bj1swPbSNp5neiEAos+CqvozvUT +0nSaBLGvfJkDnZ2ITZnI0J1w1buGxD/SwYuIi5wx+pntfdmCR+jRMfE7QHKkUaBTA7/ 2RaN967r5VEdougjVKiyzeitlBx2GnB7AsJB6QpFxKbppMesyS3uXcoKocV6soKd+quz p3wA== X-Received: by 10.66.186.164 with SMTP id fl4mr143821pac.51.1360606848750; Mon, 11 Feb 2013 10:20:48 -0800 (PST) Received: from frisbee.local (250.185-62-69.ftth.swbr.surewest.net. [69.62.185.250]) by mx.google.com with ESMTPS id k7sm54986872paz.13.2013.02.11.10.20.46 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Feb 2013 10:20:48 -0800 (PST) Date: Mon, 11 Feb 2013 10:20:44 -0800 (PST) From: Chris Hostetter To: Lucene Dev Subject: How can I lookup the word by position for a given document? (FWD) Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Gm-Message-State: ALoCoQlZPIVo0s0Yjf7oB0vddM5g/CQwSjlNFuUeyP7KZRDDHnaBlJq1NAfcjbec//p9ICbGpSKe X-Virus-Checked: Checked by ClamAV on apache.org The message below sat un-attended in the moderation queue for so long it was automatically rejected. I'm resending it on the OP's behalf -Hoss --------- Forwarded message ---------- From: Favor Date: Thu, 31 Jan 2013 23:23:38 -0800 (PST) Subject: How can I lookup the word by position for a given document? Hi, In Lucene, I have *Only* a document and a position of a Word. How can I efficiently retrieve that Word using only the document + position? As you know, given a Word, Lucene provides its position(s) efficiently in o(1). I'd like the opposite. Thanks in advance Dan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org