Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 60EEC1025D for ; Thu, 6 Jun 2013 07:23:30 +0000 (UTC) Received: (qmail 62432 invoked by uid 500); 6 Jun 2013 07:23:26 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 62274 invoked by uid 500); 6 Jun 2013 07:23:26 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 62265 invoked by uid 99); 6 Jun 2013 07:23:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 07:23:26 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of prathik.puthran87@gmail.com designates 209.85.216.49 as permitted sender) Received: from [209.85.216.49] (HELO mail-qa0-f49.google.com) (209.85.216.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 07:23:20 +0000 Received: by mail-qa0-f49.google.com with SMTP id hu16so104863qab.8 for ; Thu, 06 Jun 2013 00:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/bY1xHSNDSKKXK+QbLcvtFBPb6f0Ew7bh6uMD0H+In8=; b=fNGJZFkBb7Fs1YcOMZjdkFcqKVlNbKeb/ernlVKkTMymQBbx4PyUhaqqqmFzGTLs+h BzZ84jermXQQ3SljRWJ8zH46iRKMO35mKjqe/coBKZwkJS65MXHENmVSusWl0OGePX7h tREjWTAm6/Liw5b6MRjrYHq+fVdY2RBOKiXwSMIQUWvtZ1zH5vTwoJil3+JyOliREfgE E/WnTJHGktrn5NxqPwDlBbwDMrGv3FZzj2qKOmXbg4WYpwtflbJZcWtsFBq6l0aSr3X6 QC6eB7U7twcxUl0NH3yCik07BzDJDEAvfCb9gn2jFcv1wwZpTmlOQVXzhJhNaG4TewX+ CCCg== MIME-Version: 1.0 X-Received: by 10.49.81.244 with SMTP id d20mr11063896qey.33.1370503379879; Thu, 06 Jun 2013 00:22:59 -0700 (PDT) Received: by 10.49.64.71 with HTTP; Thu, 6 Jun 2013 00:22:59 -0700 (PDT) In-Reply-To: <1370502248.20627.140661240532589.682C53A2@webmail.messagingengine.com> References: <1370502248.20627.140661240532589.682C53A2@webmail.messagingengine.com> Date: Thu, 6 Jun 2013 12:52:59 +0530 Message-ID: Subject: Re: Configuring lucene to suggest the indexed string for all the searches of the substring of the indexed string From: Prathik Puthran To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7b6786701f0e6e04de772fe4 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6786701f0e6e04de772fe4 Content-Type: text/plain; charset=ISO-8859-1 This works even now i.e. when I search for "Jas" it suggests "Jason Bourne". What I want is when I search for "Bour" or "ason" (any substring) it should suggest me "Jason Bourne" . On Thu, Jun 6, 2013 at 12:34 PM, Upayavira wrote: > Can you se the ShingleFilterFactory? It is ngrams for terms rather than > characters. If you limited it to two term ngrams, when the user presses > space after their first word, you could do a suggested query against > your two term ngram field, which would suggest Jason Bourne, Jason > Statham, etc then you press space after "Jason". > > Upayavira > > On Thu, Jun 6, 2013, at 07:25 AM, Prathik Puthran wrote: > > My use case is I want to search for any substring of the indexed string > > and > > the Suggester should suggest the indexed string. What can I do to make > > this > > work? > > > > Thanks, > > Prathik > > > > > > On Thu, Jun 6, 2013 at 2:05 AM, Mikhail Khludnev > > > > wrote: > > > > > Please excuse my misunderstanding, but I always wonder why this index > time > > > processing is suggested usually. from my POV is the case for query-time > > > processing i.e. PrefixQuery aka wildcard query Jason* . > > > Ultra-fast term retrieval also provided by TermsComponent. > > > > > > > > > On Wed, Jun 5, 2013 at 8:09 PM, Jack Krupansky < > jack@basetechnology.com > > > >wrote: > > > > > > > ngrams? > > > > > > > > See: > > > > http://lucene.apache.org/core/**4_3_0/analyzers-common/org/** > > > > apache/lucene/analysis/ngram/**NGramFilterFactory.html< > > > > http://lucene.apache.org/core/4_3_0/analyzers-common/org/apache/lucene/analysis/ngram/NGramFilterFactory.html > > > > > > > > > > > > -- Jack Krupansky > > > > > > > > -----Original Message----- From: Prathik Puthran > > > > Sent: Wednesday, June 05, 2013 11:59 AM > > > > To: solr-user@lucene.apache.org > > > > Subject: Configuring lucene to suggest the indexed string for all the > > > > searches of the substring of the indexed string > > > > > > > > > > > > Hi, > > > > > > > > Is it possible to configure solr to suggest the indexed string for > all > > > the > > > > searches of the substring of the string? > > > > > > > > Thanks, > > > > Prathik > > > > > > > > > > > > > > > > -- > > > Sincerely yours > > > Mikhail Khludnev > > > Principal Engineer, > > > Grid Dynamics > > > > > > > > > > > > > --047d7b6786701f0e6e04de772fe4--