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 C5D8511F87 for ; Mon, 12 May 2014 02:47:06 +0000 (UTC) Received: (qmail 86734 invoked by uid 500); 12 May 2014 01:47:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 86666 invoked by uid 500); 12 May 2014 01:47:06 -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 86658 invoked by uid 99); 12 May 2014 01:47:05 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2014 01:47:05 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of SRS0=Jeit4y=2K=basetechnology.com=jack@yourhostingaccount.com designates 65.254.253.56 as permitted sender) Received: from [65.254.253.56] (HELO walmailout07.yourhostingaccount.com) (65.254.253.56) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2014 01:47:01 +0000 Received: from mailscan10.yourhostingaccount.com ([10.1.15.10] helo=walmailscan10.yourhostingaccount.com) by walmailout07.yourhostingaccount.com with esmtp (Exim) id 1WjfKA-0005p9-9f for java-user@lucene.apache.org; Sun, 11 May 2014 21:46:38 -0400 Received: from impout01.yourhostingaccount.com ([10.1.55.1] helo=impout01.yourhostingaccount.com) by walmailscan10.yourhostingaccount.com with esmtp (Exim) id 1WjfKA-0003KX-8L for java-user@lucene.apache.org; Sun, 11 May 2014 21:46:38 -0400 Received: from walauthsmtp08.yourhostingaccount.com ([10.1.18.8]) by impout01.yourhostingaccount.com with NO UCE id 0pme1o0010ASqTN01pmeSu; Sun, 11 May 2014 21:46:38 -0400 X-Authority-Analysis: v=2.0 cv=Cv89gwED c=1 sm=1 a=UkMH5KcvGpXfM81wB0t8ug==:17 a=aQzbgH187woA:10 a=YV2bDZ2txwEA:10 a=3jZET7lWBKwA:10 a=8nJEP1OIZ-IA:10 a=jvYhGVW7AAAA:8 a=mV9VRH-2AAAA:8 a=9I5xiGouAAAA:8 a=OmBbNxAREYTifAZ6xqkA:9 a=wPNLvfGTeEIA:10 a=aH4473HaDXgA:10 a=2fPOlPt4dusA:10 a=8amoANLqcXHyoDJd6jbCBw==:117 X-EN-OrigOutIP: 10.1.18.8 X-EN-IMPSID: 0pme1o0010ASqTN01pmeSu Received: from 207-237-113-28.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com ([207.237.113.28]:1751 helo=JackKrupansky14) by walauthsmtp08.yourhostingaccount.com with esmtpa (Exim) id 1WjfK9-0003ME-Up for java-user@lucene.apache.org; Sun, 11 May 2014 21:46:37 -0400 Message-ID: <7632B1F2EC93462589288292FF0E5B9F@JackKrupansky14> From: "Jack Krupansky" To: References: <1399554233658-4135075.post@n3.nabble.com> In-Reply-To: <1399554233658-4135075.post@n3.nabble.com> Subject: Re: How to locate a Phrase inside text (like a Browser text searcher) Date: Sun, 11 May 2014 21:46:36 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 X-EN-UserInfo: e0a4b55451ed9f27313ebf02e3d4348d:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: jack@basetechnology.com Sender: "Jack Krupansky" X-EN-OrigIP: 207.237.113.28 X-EN-OrigHost: 207-237-113-28.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com X-Virus-Checked: Checked by ClamAV on apache.org The word delimiter filter can help for "MorningJohn" by setting its option to split on case change. You might be able to handle "Mailhow" using the DictionaryCompoundWordTokenFilter, but that requires that you create a complete dictionary of terms that can split off. That's not very practical. In truth, Lucene/Solr doesn't have a good out of the box solution for this use case. -- Jack Krupansky -----Original Message----- From: teko Sent: Thursday, May 8, 2014 9:03 AM To: java-user@lucene.apache.org Subject: How to locate a Phrase inside text (like a Browser text searcher) Hi, someone can help me with it?? I need do a search to locate a phrase inside text, but, I need locate this phrase on texts like that: 'John Mail' <- phrase I want locate ' Good Morning John Mail how are you? ' < I need find this phrase here ' Good MorningJohn Mail how are you? ' < here too ' GoodMorning John Mailhow are you? ' < and here I tried using with 'WhiteSpaceAnalyzer' and 'QueryParser'... but not work (locate just in the first sample above... but not the others) Please, I really need help with it! Thanks (note: Sorry my english!! xD) -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-locate-a-Phrase-inside-text-like-a-Browser-text-searcher-tp4135075.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org