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 B3E1717A10 for ; Thu, 23 Apr 2015 19:54:23 +0000 (UTC) Received: (qmail 77464 invoked by uid 500); 23 Apr 2015 19:54:20 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 77413 invoked by uid 500); 23 Apr 2015 19:54:20 -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 77401 invoked by uid 99); 23 Apr 2015 19:54:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2015 19:54:20 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of iorixxx@yahoo.com) Received: from [54.76.25.247] (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2015 19:53:52 +0000 Received: from nm11.bullet.mail.ne1.yahoo.com (nm11.bullet.mail.ne1.yahoo.com [98.138.90.74]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id B70B425321 for ; Thu, 23 Apr 2015 19:53:30 +0000 (UTC) Received: from [98.138.101.128] by nm11.bullet.mail.ne1.yahoo.com with NNFMP; 23 Apr 2015 19:52:20 -0000 Received: from [98.138.89.172] by tm16.bullet.mail.ne1.yahoo.com with NNFMP; 23 Apr 2015 19:52:20 -0000 Received: from [127.0.0.1] by omp1028.mail.ne1.yahoo.com with NNFMP; 23 Apr 2015 19:52:20 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 186154.63743.bm@omp1028.mail.ne1.yahoo.com X-YMail-OSG: HUqSv7EVM1kkC_357RXQiNpx78EFMc6.xa_i9a8W0wvACSpUxNJH88YjV8SveVO D8HH15MaAZfBhXFEyJ5Jvpnz9ApCGlpuXKkiolMhjnR_EzrU1JV6svcHn4U14dNqpHB.qwrud93I zSa6zn_Pd6Fmr_zA5IGI5tQLtbuhoJ0cxJvNAY9xdgtiHb9f9sY8ipvMz1jLUx4wOG.gM1IVjMV6 c42Sp.mj0A2RqDIB6CaWhFAM5qYOuxcloF6.y84j0DyTh52mJ7RQDqN.DUVigzGy1NzZzOYIcWkV aMHvPLzz8GanHDEvTvv3UE_MPMzVa4IWQTEvX_beVaiNzrRKhHHtAzxgn.lhNVRSz.EwdnqfnU6J cqUTUWskFQCEjVasCA1Yl8qa5gD7IEOeuejcYLuzT8XqNYAIf_nxjaSCpb.ZItuHKcvTaYc2.grG FH2FNDiGL36shh_rXxLegeN6jQPHZ6bLrR_xR_QASo1.H.hdJVcmhAvN7qSqudeY4oi77bXbJnVK hZFE- Received: by 98.138.105.217; Thu, 23 Apr 2015 19:52:19 +0000 Date: Thu, 23 Apr 2015 19:52:18 +0000 (UTC) From: Ahmet Arslan Reply-To: Ahmet Arslan To: "java-user@lucene.apache.org" Message-ID: <565829151.3128344.1429818738170.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: Phrase query given a word MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, May be LUCENE-5317 relevant? Ahmet On Thursday, April 23, 2015 8:33 PM, Shashidhar Rao wrote: Hi, I have a large text and from that I need to calculated the top frequencies of words , say 'Driving' occurs the most. Now , I need to find phrase containing 'Driving' in the given text and the frequency count of that phrase. The phrase could be three words where driving could be in the middle or the first text with two words after that or it could be the last text with two words before the given text. I would appreciate if someone could post the source code , I am using lucene4.10 , please let me know if this is possible. Currently, I am doing a brute force but that isn't helping me much. Please help Thanks sd --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org