RE: Autocomplete: match words anywhere in the token

2010-09-24 Thread Jonathan Rochkind
antal seemed to confirm that when I asked. From: Peter Karich [peat...@yahoo.de] Sent: Friday, September 24, 2010 8:18 AM To: solr-user@lucene.apache.org Subject: Re: Autocomplete: match words anywhere in the token Jonathan, this field described here fro

RE: Autocomplete: match words anywhere in the token

2010-09-24 Thread Jonathan Rochkind
Chantal Ackermann wrote: "I definitely need to have a look at how to use facetting in combination with multivalued fields for autocomplete." My one kind of crazy idea is to (ab)use the Hilighting Component. If you make a query for auto-suggest terms based on facets, using Chantal's technique, b

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Arunkumar Ayyavu
I realize that Solr has facet.mincount and I believe I could use that. Sorry for writing too many mails without much study. On Fri, Sep 24, 2010 at 5:57 PM, Arunkumar Ayyavu < arunkumar.ayy...@gmail.com> wrote: > > > On Fri, Sep 24, 2010 at 5:22 PM, Arunkumar Ayyavu < > arunkumar.ayy...@gmail.co

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Arunkumar Ayyavu
On Fri, Sep 24, 2010 at 5:22 PM, Arunkumar Ayyavu < arunkumar.ayy...@gmail.com> wrote: > Thanks. That was cool. > > Now, I'm looking into another problem. Say, I search for sony, I don't want > to see all that starts with sony. Only when I type more text, say sony slr, > I want to see those entrie

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Peter Karich
Jonathan, this field described here from Chantal: > 2.) create an additional field that stores uses the > String type with the same content (use copy field to fill either) can be multivalued. Or what did you mean? BTW: The nice thing about facet.prefix is that you can add an arbitrary (filter)

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Arunkumar Ayyavu
On Thu, Sep 23, 2010 at 1:57 PM, Chantal Ackermann < chantal.ackerm...@btelligent.de> wrote: > On Wed, 2010-09-22 at 20:14 +0200, Arunkumar Ayyavu wrote: > > Thanks for the responses. Now, I included the EdgeNGramFilter. But, I get > > the following results when I search for "canon pixma". > > Can

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Arunkumar Ayyavu
Thanks. That was cool. Now, I'm looking into another problem. Say, I search for sony, I don't want to see all that starts with sony. Only when I type more text, say sony slr, I want to see those entries starting with sony slr. Let me see if I can find the answer soon. On Thu, Sep 23, 2010 at 1:50

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Chantal Ackermann
Hi Jonathan, yes it works only for single-valued fields without great effort. For multivalued fields you'd have to do some extra work getting only the values wich contain tokens that start with the given prefix. But maybe you mean also wether it works for several fields in one query. I guess not,

Re: Autocomplete: match words anywhere in the token

2010-09-23 Thread Jonathan Rochkind
This works with _one_ entry per document, right? If you've actually found a clever trick to use this technique when you have more than one entry for auto-suggest per document, do let me know. Cause I haven't been able to come with one. Jonathan Chantal Ackermann wrote: What works very goo

Re: Autocomplete: match words anywhere in the token

2010-09-23 Thread Jan Høydahl / Cominvent
Make sure you're using AND as default operator... -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 22. sep. 2010, at 20.14, Arunkumar Ayyavu wrote: > Thanks for the responses. Now, I included the EdgeNGramFilter. But, I get > the following results when I search for "

Re: Autocomplete: match words anywhere in the token

2010-09-23 Thread Chantal Ackermann
On Wed, 2010-09-22 at 20:14 +0200, Arunkumar Ayyavu wrote: > Thanks for the responses. Now, I included the EdgeNGramFilter. But, I get > the following results when I search for "canon pixma". > Canon PIXMA MP500 All-In-One Photo Printer > Canon PowerShot SD500 > > As you can guess, I'm not expecti

Re: Autocomplete: match words anywhere in the token

2010-09-23 Thread Chantal Ackermann
What works very good for me: 1.) Keep the tokenized field (KeywordTokenizerFilter, WordDelimiterFilter) (like you described you had) 2.) create an additional field that stores uses the String type with the same content (use copy field to fill either) 3.) use facet.prefix instead of terms.prefix fo

Re: Autocomplete: match words anywhere in the token

2010-09-22 Thread Arunkumar Ayyavu
Thanks for the responses. Now, I included the EdgeNGramFilter. But, I get the following results when I search for "canon pixma". Canon PIXMA MP500 All-In-One Photo Printer Canon PowerShot SD500 As you can guess, I'm not expecting the 2nd result entry. Though I understand why I'm getting the 2nd en

Re: Autocomplete: match words anywhere in the token

2010-09-22 Thread Jason Rutherglen
This may be what you're looking for. http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/ On Wed, Sep 22, 2010 at 4:41 AM, Arunkumar Ayyavu wrote: > It's been over a week since I started learning Solr. Now, I'm using the > electronics store example t

Re: Autocomplete: match words anywhere in the token

2010-09-22 Thread Jan Høydahl / Cominvent
Hmm, the terms component can only give you terms, so I don't think you can use that method. Try to go for creating a new Solr Core for your usecase. A bit more work but much more flexible. See http://search-lucene.com/m/Zfxp52FX49G1 -- Jan Høydahl, search solution architect Cominvent AS - www.c

Autocomplete: match words anywhere in the token

2010-09-22 Thread Arunkumar Ayyavu
It's been over a week since I started learning Solr. Now, I'm using the electronics store example to explore the autocomplete feature in Solr. When I send the query terms.fl=name&terms.prefix=canon to terms request handler, I get the following response 2 But I expect the following resu