You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "shrinath.m" <sh...@webyog.com> on 2011/03/03 11:29:56 UTC
Re: Solr TermsComponent: space in term
why was this thread left unanswered ? Is there no way to achieve what the Op
had to say ?
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-TermsComponent-space-in-term-tp1898889p2624203.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr TermsComponent: space in term
Posted by Ahmet Arslan <io...@yahoo.com>.
You need to remove EdgeNGramFilterFactory from your analyzer chain.
--- On Thu, 3/3/11, shrinath.m <sh...@webyog.com> wrote:
> From: shrinath.m <sh...@webyog.com>
> Subject: Re: Solr TermsComponent: space in term
> To: solr-user@lucene.apache.org
> Date: Thursday, March 3, 2011, 1:41 PM
>
> Markus Jelsma-2 wrote:
> >
> > http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.ShingleFilterFactory
> >
> well, thank you Markus,
>
> Now My schema has the following :
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> if I run a query like this :
>
> http://localhost:8983/solr/select?rows=0&q=c&facet=true&facet.field=text&facet.mincount=1&facet.prefix=com
>
> I get output saying :
> ....
>
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
>
> ....
>
> how do I restrict it to only those words present in the
> documents and not
> something like "compliance w" ?
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Solr-TermsComponent-space-in-term-tp1898889p2624547.html
> Sent from the Solr - User mailing list archive at
> Nabble.com.
>
Re: Solr TermsComponent: space in term
Posted by "shrinath.m" <sh...@webyog.com>.
Markus Jelsma-2 wrote:
>
> http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.ShingleFilterFactory
>
well, thank you Markus,
Now My schema has the following :
if I run a query like this :
http://localhost:8983/solr/select?rows=0&q=c&facet=true&facet.field=text&facet.mincount=1&facet.prefix=com
I get output saying :
....
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
....
how do I restrict it to only those words present in the documents and not
something like "compliance w" ?
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-TermsComponent-space-in-term-tp1898889p2624547.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr TermsComponent: space in term
Posted by Markus Jelsma <ma...@openindex.io>.
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.ShingleFilterFactory
On Thursday 03 March 2011 12:15:07 shrinath.m wrote:
> iorixxx wrote:
> > TermsComponent operates on indexed terms. One way to achieve multi-word
> > suggestions is to use ShingleFilterFactory at index time.
>
> Thank you @iorixxx.
> Could you point me where I can find a good docs on how to do this ?
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-TermsComponent-space-in-term-tp189
> 8889p2624429.html Sent from the Solr - User mailing list archive at
> Nabble.com.
--
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350
Re: Solr TermsComponent: space in term
Posted by "shrinath.m" <sh...@webyog.com>.
iorixxx wrote:
>
> TermsComponent operates on indexed terms. One way to achieve multi-word
> suggestions is to use ShingleFilterFactory at index time.
>
Thank you @iorixxx.
Could you point me where I can find a good docs on how to do this ?
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-TermsComponent-space-in-term-tp1898889p2624429.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr TermsComponent: space in term
Posted by Ahmet Arslan <io...@yahoo.com>.
> Is there no way to achieve what the Op
> had to say ?
>
TermsComponent operates on indexed terms. One way to achieve multi-word suggestions is to use ShingleFilterFactory at index time.