Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 62755 invoked from network); 16 Jan 2011 17:42:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jan 2011 17:42:53 -0000 Received: (qmail 37353 invoked by uid 500); 16 Jan 2011 17:42:51 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 36974 invoked by uid 500); 16 Jan 2011 17:42:48 -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 36966 invoked by uid 99); 16 Jan 2011 17:42:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jan 2011 17:42:47 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.72.192.243] (HELO fmmailgate05.web.de) (217.72.192.243) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jan 2011 17:42:38 +0000 Received: from mwmweb010 ( [172.20.18.19]) by fmmailgate05.web.de (Postfix) with ESMTP id 64955645901D for ; Sun, 16 Jan 2011 18:42:18 +0100 (CET) Received: from [88.73.226.235] by mwmweb010 with HTTP; Sun Jan 16 18:42:18 CET 2011 Date: Sun, 16 Jan 2011 18:42:18 +0100 (CET) From: "Livia Hauser" Message-ID: <952581476.3551341.1295199738407.JavaMail.fmail@mwmweb010> Subject: how to implement a proximity search feature using Queries instead of terms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-UI-ATTACHMENT-ID-POSTFIX: f8f0c4e3-1261-4fd4-bb8a-fa1b5faf28ab To: java-user@lucene.apache.org X-Priority: 3 Importance: normal Sensitivity: Normal X-Provags-ID: V01U2FsdGVkX1/Jc4SFoqc/HJ/Xm5T1kisFRgoFRqhhjpwHGOUIzoQRaKUt8puJBIZd deSNbQhnWDsUURB553Z1E7GMcP3OcMX8+Ho1qJ8pIyw= X-Virus-Checked: Checked by ClamAV on apache.org Hi All, =20 i have my own query parser which generates fuzzy/wildcard queries instances= . It works fantastic, Lucene rocks ;-). But i have to make sure the words are not to far apart.=C2=A0 I checked cur= rent proximity implementation. What i found is: PhraseQuery calculates a di= stance between terms (no fuzzy logic possible). I have to calculate the distance (proximity) on the base of fuzzy queries. Somebody=C2=A0 a idea how i can implement this feature? Short example: indexed string: "left word a b c d e f other right" query string (fuzzy 0.5): "ohter word" expected distance: 6 Many thanks! ___________________________________________________________ NEU: FreePhone - kostenlos mobil telefonieren und surfen!=09=09=09=09 Jetzt informieren: http://produkte.web.de/go/webdefreephone --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org