Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94C43EC63 for ; Sat, 9 Mar 2013 19:07:03 +0000 (UTC) Received: (qmail 47927 invoked by uid 500); 9 Mar 2013 19:07:00 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 47881 invoked by uid 500); 9 Mar 2013 19:07:00 -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 47873 invoked by uid 99); 9 Mar 2013 19:07:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Mar 2013 19:07:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of farnetani@gmail.com designates 209.85.214.42 as permitted sender) Received: from [209.85.214.42] (HELO mail-bk0-f42.google.com) (209.85.214.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Mar 2013 19:06:55 +0000 Received: by mail-bk0-f42.google.com with SMTP id jk7so1164857bkc.29 for ; Sat, 09 Mar 2013 11:06:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=HvoBFRzwzg9AzBZB01u5H93jGXH/T8B54h6jlfbIjVk=; b=pAhRtjog9TMdadetv1QbBmXBtlCZkonA7y7JdYnEi9cyRlWbUw51XnwUFNTvrM92D4 tZsFQ6+kGsNjXVPQ5mAg6ReflTFsrvbZXP8x8J16g29nN6MKweuSUmLRRhOemwIushLc 4GCYesWR/T2gLPQwl5/oz4knttNEWiCq6f561Luusy7l60SRxd+qZQYRxl593P9U+XN6 EsGaOiwWucqWQkljg7SxmO9XUAFnDezxdNc+hX8PfmNo18KvIeF6XH7pUVemXV5rILYc MgJ1rCwC8qABuHDU7FWxBmSSysrze+JlHUUuADJgAgw8YbsWGCcGhk4MBlpRTOyCLjWN tihQ== MIME-Version: 1.0 X-Received: by 10.205.34.137 with SMTP id ss9mr2718604bkb.14.1362855994204; Sat, 09 Mar 2013 11:06:34 -0800 (PST) Received: by 10.204.15.152 with HTTP; Sat, 9 Mar 2013 11:06:34 -0800 (PST) Date: Sat, 9 Mar 2013 16:06:34 -0300 Message-ID: Subject: Complex Result with Fragment until break line From: Arlei Ferreira Farnetani Junior To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=bcaec51ba45d6bee0104d782a321 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51ba45d6bee0104d782a321 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have a system using Lucene where I need to get it besides me find instances return the result cut correctly, or rather isolated properly taking into account the line break. I need Lucene me the results with the previous contents occurrences the word found its start until the text (that would be before a line break) and later also the name until a line break. Imagine that I have a search by name: *JOHN MCCALEY*, in the following text below: ------------------------------------------ Sample Page ---------------------------------------------------------------------------= ---------------------------------------------------------------- Proc. 0006018-56.2002.8.19.0001 (2002.001.002839-3) - Lawyer *John Mccaley*= . Judge defers the request for indemnification of its process. The action is well founded and Attendance lawyer asks the Principal Civil Court. Proc. 0002678-94.1974.8.19.0001 (1974.001.700621-8) (22618) - Inventariante: LIA BUONOMO MENDONC=CC=A7A, Herdeiro: ESPO=CC=81LIO DE RENAT= O BUONOMO MENDONC=CC=A7A, Herdeiro: ESPO=CC=81LIO DE ANTO=CC=82NIO BUONOMO MENDONC=CC= =A7A (Adv(s). Dr(a). ANGELA HARA BUONOMO MENDONC=CC=A7A (OAB/RJ-033658) X EGI=CC=81DIO MENDONC= =CC=A7A THURLER E OUTRO Aos interessados sobre custas judiciais para remessa ao Contador. Proc. 0003018-56.2002.8.19.0001 (2002.001.002839-3) - *JOHN MCCALEY* E OUTROS X AURORA ALVES DA COSTA GODINHO (Adv(s). Dr(a). MURILO ESTEVES DE CARVALHO (OAB/RJ-044537I) MARIA REGINA DE BRITO COLLACO VERAS E OUTROS, Dr(a). DEBORA LUCENA SANCHES (OAB/RJ-131493) AOS DESARQUIVAMENTO DOS AUTOS. INTERESSADOS SOBRE Proc. 0005018-56.2002.8.19.0001 (2002.001.002839-3) - Lawyer *John Mccaley*= . Judge dismissed the revision of alimony to the defendant Michael Mcnamara. Proc. 0003586-44.1980.8.19.0001 (1980.001.301189-5) (33200) - Inventariante: MARIA CELINA DE OLIVEIRA LOURENCO MARQUES MOURO X JOSE MARIA E OUTRO (Adv(s). Dr(a). GILDA PAIVA LOURENCO (OAB/RJ-039004) Herdeiro: AME=CC=81RICO LOURENC=CC=A7O, Herdeiro: JULIO LOURENC=CC=A7O Aos interessad= os sobre custas judiciais para remessa ao Contador. Proc. 0005979-14.1995.8.19.0001 (1995.001.005484-8) (24385) - *JOHN MACCALEY *X EMILIA DA SILVA (Adv(s). Dr(a). SUELY TEODORO NARDY DA SILVA (OAB/RJ-049396), Dr(a). OSWALDO DA COSTA CORREA (OAB/RJ-029067) Aos interessados sobre custas judiciais para remessa ao Contador. Proc. 0028813-88.2007.8.19.0001 (2007.001.027610-8) - ALEXANDRE MOURA DUMANS E OUTRO (Adv(s). Dr(a). CARLOS ROBERTO FERREIRA BARBOSA MOREIRA (OAB/RJ-061492) X HENRIQUETA DE MOURA SILVA Despacho: 1) Fls. 263/264 - Oficie-se na forma requerida.2) Apo=CC=81s, intimem-se os interessados sobre o ofi=CC=81cio de fls. 265. ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------- I need Lucene I clipped the result, ie, he can catch the beginning of the text before the name *JOHN MCCALEY* until the end of the text after the name, I mean that the end of the text is a line break. *This is possible with Lucene?* Can anyone give any examples of how I could do this? Recalling that the result has to come to the end of the sentence before the line break and not just a piece cutting words. Thanks a lot. farnetani@gmail.com --bcaec51ba45d6bee0104d782a321--