Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 39009 invoked from network); 19 Feb 2009 12:20:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2009 12:20:04 -0000 Received: (qmail 39714 invoked by uid 500); 19 Feb 2009 12:19:58 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 39688 invoked by uid 500); 19 Feb 2009 12:19:58 -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 39663 invoked by uid 99); 19 Feb 2009 12:19:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 04:19:58 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ianvink@gmail.com designates 209.85.162.177 as permitted sender) Received: from [209.85.162.177] (HELO el-out-1112.google.com) (209.85.162.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 12:19:49 +0000 Received: by el-out-1112.google.com with SMTP id s27so168494ele.14 for ; Thu, 19 Feb 2009 04:19:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=9KzMd2ua4VrfnzoL4RCSh3BeziriQdcG5dD3RdHndRY=; b=ODqQqccDvqlYRJTreRIuEhzOGKg+b+kjrQdmSbuLGn3/j38vjq8wxQzDYB+mj8mtFB kFzz8Ho+K2YK59Hs5IHTGSJ8KuYCSCIK6pMyFnBh2DeRT64gvP7bca4wLDkj3gTp/Tf2 +uCVA9NOQPegTRNaAeNdzTgoROhrGwmPNm+ak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VVVIiN6Ue68ox2GgnMVnTibMyCJa8LG3E1gRU4tQ0XwaUrCbe+K0Hltr7iVaFLLTKa atAnsfyx92RC9IcisIjEmrAKI2v6YYbFktSAIgwjXiLPYYIGqqHd17SHar6THi1SJ8eX EFgBiL4fgDZo3vt4vdzXi3W43m+HqIduKRprM= MIME-Version: 1.0 Received: by 10.220.84.20 with SMTP id h20mr2127171vcl.60.1235045968384; Thu, 19 Feb 2009 04:19:28 -0800 (PST) Date: Thu, 19 Feb 2009 08:19:28 -0400 Message-ID: <5d53d5770902190419g1b118a9emde06d608956afa8e@mail.gmail.com> Subject: "Near" force in query server side? From: Ian Vink To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=00163630fd293a12e60463448c6b X-Virus-Checked: Checked by ClamAV on apache.org --00163630fd293a12e60463448c6b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Once my app gets the query string from the user, is there a way to tell the query engine to only return documents where these words are at most 5 words apart? I can't tell the user to change their query, I have to do it server side. Is so do I have to add anything to my index to let Lucene know about positions of the terms when it indexes? Thanks, Ian Vink http://BahaiResearch.com --00163630fd293a12e60463448c6b--