In the default /browse suggest, it's wired together with the 'name' field in a
couple of places:
head.vm:
'terms.fl': 'name',
suggest.vm:
#foreach($t in $response.response.terms.name)
I'll aim to make this more dynamic in the future, but for now if you're
adapting from what's there now to
in solrconfig.xml
edismax
text^0.5 last_name^1.0 first_name^1.2 course_name^7.0 id^10.0
branch_name^1.1 hq_passout_year^1.4
course_type^10.0 institute_name^5.0 qualification_type^5.0
mail^2.0 state_name^1.0
text
100%
*:*
10
What modifications did you make? If you changed the field name (it's
literally 'name') in the example, you'll need to change the JavaScript
(terms.fl parameter) in the autocomplete stuff in conf/velocity/head.vm, and
also the 'name' reference in suggest.vm. That should be all you need to chan
Have a look at my blog post
http://www.cominvent.com/2012/01/25/super-flexible-autocomplete-with-solr/ for
a walkthrough of how it could be done, as a separate Solr core.
--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com
On 1. aug. 2
On Tue, Nov 24, 2009 at 10:39 AM, Paul Libbrecht wrote:
>
> Hello Solr users,
>
> is there a live demo of the auto-completion feature somewhere?
>
> thanks in advance
>
Well, there is no preview but I can give you a couple of live instances:
1. http://autos.aol.com/
2. http://travel.aol.co