Got it. It's actually contrast to usual prefix suggestions.
So, out-of-the box it's provided by
http://wiki.apache.org/solr/TermsComponent terms.regex= also see last
example there
it should works by loading terms in memory and linearly scanning them with
regexp.
There is nothing more efficient out-of-the box.
http://wiki.apache.org/solr/Suggester says Support for infix-suggestions
_is planned_ for FSTLookup (which would be the only structure to support
these).


On Thu, Jun 6, 2013 at 10:25 AM, Prathik Puthran <
prathik.puthra...@gmail.com> 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 <
> mkhlud...@griddynamics.com
> > 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 <j...@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
> >
> > <http://www.griddynamics.com>
> >  <mkhlud...@griddynamics.com>
> >
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
 <mkhlud...@griddynamics.com>

Reply via email to