Wildcard query vs facet.prefix for autocomplete?

2012-07-15 Thread santamaria2
I'm about to implement an autocomplete mechanism for my search box. I've read about some of the common approaches, but I have a question about wildcard query vs facet.prefix. Say I want autocomplete for a title: 'Shadows of the Damned'. I want this to appear as a suggestion if I type 'sha' or 'dam

Re: Wildcard query vs facet.prefix for autocomplete?

2012-07-16 Thread Pawel Rog
Maybe try EdgeNgramFilterFactory http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters/#solr.EdgeNGramFilterFactory On Mon, Jul 16, 2012 at 6:57 AM, santamaria2 wrote: > I'm about to implement an autocomplete mechanism for my search box. I've > read > about some of the common approaches, b

Re: Wildcard query vs facet.prefix for autocomplete?

2012-07-16 Thread solrman
term component will be faster. like below: http://host:port/solr/terms?terms.fl=content&terms.prefix=sol -- View this message in context: http://lucene.472066.n3.nabble.com/Wildcard-query-vs-facet-prefix-for-autocomplete-tp3995199p3995378.html Sent from the Solr - User mailing list archive at Nab

Re: Wildcard query vs facet.prefix for autocomplete?

2012-07-17 Thread santamaria2
I'll consider using the other methods, but I'd like to know which would be faster among the two approaches mentioned in my opening post. -- View this message in context: http://lucene.472066.n3.nabble.com/Wildcard-query-vs-facet-prefix-for-autocomplete-tp3995199p3995458.html Sent from the Solr -

Re: Wildcard query vs facet.prefix for autocomplete?

2012-07-18 Thread Erick Erickson
Well, option 2 won't do you any good, so speed doesn't really matter. Your response would have a facet count for "dam", all by itself, something like 2 1 etc. which does not contain anything that lets you reconstruct the title for autosuggest. Best Erick On Tue, Jul 17, 2012 at 3:18 AM, santam

Re: Wildcard query vs facet.prefix for autocomplete?

2012-07-18 Thread santamaria2
the discussion > below: > > http://lucene.472066.n3.nabble.com/Wildcard-query-vs-facet-prefix-for-autocomplete-tp3995199p3995706.html > To unsubscribe from Wildcard query vs facet.prefix for autocomplete?, click > here<http://lucene.472066.n3.nabble.com/template/NamlServ

Re: Wildcard query vs facet.prefix for autocomplete?

2012-07-18 Thread Erick Erickson
ng post. >> > >> > -- >> > View this message in context: >> http://lucene.472066.n3.nabble.com/Wildcard-query-vs-facet-prefix-for-autocomplete-tp3995199p3995458.html >> >> > Sent from the Solr - User mailing list archive at Nabble.com. >> >&g

Re: Wildcard query vs facet.prefix for autocomplete?

2012-07-18 Thread santamaria2
Very interesting! Thanks for sharing, I'll ponder on it. -- View this message in context: http://lucene.472066.n3.nabble.com/Wildcard-query-vs-facet-prefix-for-autocomplete-tp3995199p3995899.html Sent from the Solr - User mailing list archive at Nabble.com.