Re: Autocompletion with Solritas

2010-06-19 Thread Ken Krugler
Hi Erik, On Jun 18, 2010, at 6:58pm, Erik Hatcher wrote: Have a look at suggest.vm - the "name" field is used in there too. Just those two places, layout.vm and suggest.vm. That was the missing change I needed. Thanks much! -- Ken And I had already added a ## TODO in my local suggest

Re: Autocompletion with Solritas

2010-06-18 Thread Erik Hatcher
Have a look at suggest.vm - the "name" field is used in there too. Just those two places, layout.vm and suggest.vm. And I had already added a ## TODO in my local suggest.vm: ## TODO: make this more generic, maybe look at the request terms.fl? or just take the first terms field in the re

Re: Autocompletion with Solritas

2010-06-18 Thread Ken Krugler
Hi Erik, On Jun 17, 2010, at 8:34pm, Erik Hatcher wrote: Your wish is my command. Check out trunk, fire up Solr (ant run- example), index example data, hit http://localhost:8983/solr/browse - type in search box. Just used jQuery's autocomplete plugin and the terms component for now, on t

Re: Autocompletion with Solritas

2010-06-18 Thread Erik Hatcher
On Jun 18, 2010, at 2:56 PM, Ken Krugler wrote: 3. I tried "ant create-package" from trunk/solr, and got this error near the end: /Users/kenkrugler/svn/lucene/lucene-trunk/solr/common-build.xml: 252: /Users/kenkrugler/svn/lucene/lucene-trunk/solr/contrib/ velocity/src not found. I don't s

Re: Autocompletion with Solritas

2010-06-18 Thread Erik Hatcher
On Jun 18, 2010, at 2:56 PM, Ken Krugler wrote: Your wish is my command. Check out trunk, fire up Solr (ant run- example), index example data, hit http://localhost:8983/solr/browse - type in search box. That works - excellent! Now I'm trying to build a distribution from trunk that I can us

Re: Autocompletion with Solritas

2010-06-18 Thread Ken Krugler
On Jun 17, 2010, at 8:34pm, Erik Hatcher wrote: Your wish is my command. Check out trunk, fire up Solr (ant run- example), index example data, hit http://localhost:8983/solr/browse - type in search box. That works - excellent! Now I'm trying to build a distribution from trunk that I can u

Re: Autocompletion with Solritas

2010-06-18 Thread Chantal Ackermann
Hi Erik, thanks so much for your feedback! > > hightlight? highlight :) ups... Seems that this parameter is false by default, though. At least it never complained. *g* > This is one of the beauties of the VelocityResponseWriter, freeing the > client from having to deal with a Solr data str

Re: Autocompletion with Solritas

2010-06-18 Thread Erik Hatcher
Looks like a typo below, Chantal, and another comment below too... On Jun 18, 2010, at 3:32 AM, Chantal Ackermann wrote: $(function() { $("#qterm").autocomplete('/solr/epg/suggest', { extraParams: { 'terms.prefix': function() { return $("#qterm").v

Re: Autocompletion with Solritas

2010-06-18 Thread Erik Hatcher
Yup, that's basically what I've done too, here's the script part: I didn't touch the example solrconfig, though putting the params in the request handler is the better way, as you have.

Re: Autocompletion with Solritas

2010-06-18 Thread Chantal Ackermann
Hi, here is my solution. It has been some time since I last looked at it, but it works fine. :-) $(function() { $("#qterm").autocomplete('/solr/epg/suggest', { extraParams: { 'terms.prefix': function() { return $("#qterm").val(); }

Re: Autocompletion with Solritas

2010-06-17 Thread Ken Krugler
You, sir, are on my Christmas card list. I'll fire it up tomorrow morning & let you know how it goes. -- Ken On Jun 17, 2010, at 8:34pm, Erik Hatcher wrote: Your wish is my command. Check out trunk, fire up Solr (ant run- example), index example data, hit http://localhost:8983/solr/browse

Re: Autocompletion with Solritas

2010-06-17 Thread Erik Hatcher
Your wish is my command. Check out trunk, fire up Solr (ant run- example), index example data, hit http://localhost:8983/solr/browse - type in search box. Just used jQuery's autocomplete plugin and the terms component for now, on the name field. Quite simple to plug in, actually. Check th