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
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
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
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 -
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
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
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
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.