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 BD3F918567 for ; Wed, 25 Nov 2015 08:36:45 +0000 (UTC) Received: (qmail 57868 invoked by uid 500); 25 Nov 2015 08:36:44 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 57807 invoked by uid 500); 25 Nov 2015 08:36:44 -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 57788 invoked by uid 99); 25 Nov 2015 08:36:43 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2015 08:36:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 82418C6FE9 for ; Wed, 25 Nov 2015 08:36:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.751 X-Spam-Level: *** X-Spam-Status: No, score=3.751 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, KAM_INFOUSMEBIZ=0.75, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=silenteight-com.20150623.gappssmtp.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LtjvFVBH1Ocp for ; Wed, 25 Nov 2015 08:36:33 +0000 (UTC) Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 671D443ACA for ; Wed, 25 Nov 2015 08:36:33 +0000 (UTC) Received: by wmww144 with SMTP id w144so59061897wmw.0 for ; Wed, 25 Nov 2015 00:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silenteight-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UPowsJ7fk6HY5nWJZUFN8gyl/r8n3REW8/M9yYp0l40=; b=VPQNYiwhFVlD5t8CcJ6hES3Rm7D492LB6714cWVTxC0BQLRYtcjjQXYhBlEllHbFHI eWSRNsA5ni9IEiRPlVywKFageo+B/VVFNXG0H7Fe1xNVDpelon45KI4oxhCqPF9Yw5QC vs39G7iJoZZQY247B0wxvzjvWxXYaK+EktkrtqvUU7p0dJkWU8pWmW9tQYfh3Hrb6IDI gH9uc41SGvOS1HtgK33FPXYEG4MZBKDkzixFGk5E4VKrf2M8eck4ry3xBgUEixI0xWLu G2vyINsfj+/CVR7IH0sFy0jzfsrxwzY8TEjuR7Pdlsx4vpina2nHJK+dcllE31H1MrO6 45vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=UPowsJ7fk6HY5nWJZUFN8gyl/r8n3REW8/M9yYp0l40=; b=KMZPLoaXPTVLv3lx7DW35smwWydrllxNiBAiccIKb2YG/+6LGDZck98Qwcn1Tvky8F 3nKGTkPv3NTnA3AeMjy5frfQ9TdXYd67jdIljQuokUgewcMXawA1ZcfTn+v2pof4UVIH bU79WZh8rUFzQst8P+c+2oHp1ECXqlxuVHOIRg5/8LPefoYctkoDYiQD0kiL95KO7oJP huLtGlv4rLXmiQ7Y6jorbh/09SUtbWN0hfWO8rYU69vmElJ7Qkc7Dp7X+CfiwlY/UvBm S08uv/eHB1ohiK//Bqp3L0V9dtjEIh/kW/xn0cfJLALBLPs/leJoF9Q9PFlAsyVzji6Q AMew== X-Gm-Message-State: ALoCoQnWIIlylO05J7ORdS3FdXjY4WNZyjvBOUn96OGPTWW0s5DAxYhFOIherhSNhY3ChxkNxwAu MIME-Version: 1.0 X-Received: by 10.28.188.67 with SMTP id m64mr2877501wmf.60.1448440592442; Wed, 25 Nov 2015 00:36:32 -0800 (PST) Received: by 10.28.107.137 with HTTP; Wed, 25 Nov 2015 00:36:32 -0800 (PST) In-Reply-To: References: Date: Wed, 25 Nov 2015 09:36:32 +0100 Message-ID: Subject: Re: Lucene auto suggest From: Michael Wilkowski To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a114b158efdbfd00525595aee --001a114b158efdbfd00525595aee Content-Type: text/plain; charset=UTF-8 Try some examples from stackoverflow: http://stackoverflow.com/questions/24968697/how-to-implements-auto-suggest-using-lucenes-new-analyzinginfixsuggester-api On Wed, Nov 25, 2015 at 4:18 AM, Bhaskar wrote: > Could you please some help here? > > On Mon, Nov 23, 2015 at 10:50 PM, Bhaskar wrote: > > > Hi, > > I have one column in the data base and it is having below data( it can > > have 5000 to 30000 rows) > > > > Fenway Antenna Dipole Top CH00 with Coaxial Cable Length 140mm > > Fenway Antenna Dipole Side CH01 with Coaxial Cable Length 220mm > > Fenway Antenna Slot Front CH02 with Coaxial Cable Length 220mm > > ANTENNA,C1318-510009-A,GP,SE0810 > > ANTENNA,C1318-510010-A,GP,SE0810 > > ANTENNA,C1318-510011-A,GP,SE0810 > > ANTENNA,MAF94108,GP,SN0905A,WLAN > > ANTENNA,MAF94119,GP,SN0905A,WLAN > > ANTENNA,MAF94362,GP,SN0905A,WLAN > > ANTENNA,MAF94159,GP,SN0906A,WLAN > > ANTENNA,MAF94195,GP,SN0906A,WLAN > > ANTENNA,MAF94196,GP,SN0906A,WLAN > > ANTENNA, STAMPED METAL, BOOST, CHAIN-0 > > ANTENNA, STAMPED METAL, BOOST, CHAIN-2 > > ANVIL DIPOLE ANT0 > > ANVIL DIPOLE ANT1 > > LIMELIGHT ANTENNA-A CABLE > > LIMELIGHT ANTENNA-B CABLE > > LIMELIGHT ANTENNA-D CABLE > > > > > > I think I want fuzzy suggestions only... for example... > > when user types *Fenway *then the words starting with *Fenway *should > > come.. i.e. > > > > Fenway Antenna Dipole Top CH00 with Coaxial Cable Length 140mm > > Fenway Antenna Dipole Side CH01 with Coaxial Cable Length 220mm > > Fenway Antenna Slot Front CH02 with Coaxial Cable Length 220mm > > > > Based on the user input the result should change. if user typed *Fenway > > Antenna Dipole *then > > > > Fenway Antenna Dipole Top CH00 with Coaxial Cable Length 140mm > > Fenway Antenna Dipole Side CH01 with Coaxial Cable Length 220mm > > > > like this based on the typed data then the result should change. > > > > > > Could you please suggest what is the best way to achieve this( may be > some > > samples for the same). > > Please let me know if I miss any info you required. > > > > Thank you very much. > > > > Regards, > > Bhaskar > > > > > > > > On Mon, Nov 23, 2015 at 10:24 PM, Alessandro Benedetti < > > abenedetti@apache.org> wrote: > > > >> Can you list us your requirements ? > >> > >> Is analysis needed in the suggester ? > >> Do you want infix suggestions ? > >> Do you want fuzzy suggestions ? > >> Suggestions of the whole content of a field or only few tokens ? > >> > >> Starting from that you can take a look to the suggester component and > all > >> the different implementations. > >> There are a lot of Lookup strategy, very specific depending on the use > >> case. > >> > >> Cheers > >> > >> On 23 November 2015 at 12:39, Bhaskar wrote: > >> > >> > Hi, > >> > > >> > I am new Lucene Auto suggest. > >> > Could you please some share the lucene auto suggest sample > >> > applications/code.. > >> > > >> > My use case is: > >> > I have the data in the database. I would like write some auto suggest > on > >> > the data base data. > >> > > >> > i.e. we have some text box in UI. when user is trying to enter some > >> thing > >> > we have to auto suggest based on the user input. > >> > > >> > Thanks in advance for help. > >> > > >> > -- > >> > Keep Smiling.... > >> > Thanks & Regards > >> > Bhaskar. > >> > Mobile:9866724142 > >> > > >> > >> > >> > >> -- > >> -------------------------- > >> > >> Benedetti Alessandro > >> Visiting card : http://about.me/alessandro_benedetti > >> > >> "Tyger, tyger burning bright > >> In the forests of the night, > >> What immortal hand or eye > >> Could frame thy fearful symmetry?" > >> > >> William Blake - Songs of Experience -1794 England > >> > > > > > > > > -- > > Keep Smiling.... > > Thanks & Regards > > Bhaskar. > > Mobile:9866724142 > > > > > > -- > Keep Smiling.... > Thanks & Regards > Bhaskar. > Mobile:9866724142 > --001a114b158efdbfd00525595aee--