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 use for
prototyping, and noticed a few things...
1. From a fresh check-out, you can't build from the trunk/solr sub-dir
due to dependencies on Lucene classes. Once you've done a top-level
"ant compile" then you can cd into /solr and do ant builds.
2. I noticed the run-example target in trunk/solr/build.xml doesn't
have a description, so it doesn't show up with ant -p.
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 see contrib/velocity anywhere in the Lucene trunk tree.
What's the recommended way to build a Solr distribution from trunk?
In the meantime I'll just use example/start.jar with solr.solr.home
and solr.data.dir system properties.
Thanks,
-- Ken
Just used jQuery's autocomplete plugin and the terms component for
now, on the name field. Quite simple to plug in, actually. Check
the commit diff. The main magic is doing this:
<http://localhost:8983/solr/terms?terms.fl=name&terms.prefix=i&terms.sort=count&wt=velocity&v.template=suggest
>
Stupidly, though, jQuery's autocomplete seems to be hardcoded to
send a q parameter, but I coded it to also send the same value as
terms.prefix - but this could be an issue if hitting a different
request handler where q is used for the actual query for filtering
terms on.
Cool?! I think so! :)
Erik
On Jun 17, 2010, at 8:03 PM, Ken Krugler wrote:
I don't believe Solritas supports autocompletion out of the box.
So I'm wondering if anybody has experience using the LucidWorks
distro & Solritas, plus the AJAX Solr auto-complete widget.
I realize that AJAX Solr's autocomplete support is mostly just
leveraging the jQuery Autocomplete plugin, and hooking it up to
Solr facets, but I was curious if there were any tricks or traps in
getting it all to work.
Thanks,
-- Ken
--------------------------------------------
<http://ken-blog.krugler.org>
+1 530-265-2225
--------------------------------------------
Ken Krugler
+1 530-210-6378
http://bixolabs.com
e l a s t i c w e b m i n i n g