From general-return-486-apmail-lucene-general-archive=lucene.apache.org@lucene.apache.org Sat Jun 30 00:31:07 2007 Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 10636 invoked from network); 30 Jun 2007 00:31:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jun 2007 00:31:07 -0000 Received: (qmail 9326 invoked by uid 500); 30 Jun 2007 00:31:09 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 9309 invoked by uid 500); 30 Jun 2007 00:31:08 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 9285 invoked by uid 99); 30 Jun 2007 00:31:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2007 17:31:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [128.105.6.20] (HELO sabe.cs.wisc.edu) (128.105.6.20) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2007 17:31:04 -0700 Received: from [9.1.67.17] (p1.almaden.ibm.com [198.4.83.52]) (authenticated bits=0) by sabe.cs.wisc.edu (8.13.6/8.13.6) with ESMTP id l5U0UgdV014078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 29 Jun 2007 19:30:43 -0500 Message-ID: <4685A382.2090202@cs.wisc.edu> Date: Fri, 29 Jun 2007 17:27:46 -0700 From: Akanksha Baid User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: general@lucene.apache.org Subject: spannearquery question Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have two strings - String1 contains multiple words & String2 contains just 1 word I need to search my index to find hits where String1 and String2 occur within a distance "slop = d" of each other. Order is important. Also, ideally I would like to do a fuzzy search on String1. Is there some way to do this without having to chop string1 into multiple terms and adding them to a SpanQuery[]? Thanks.