You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Park, Michael" <Mi...@brown.edu> on 2007/11/12 18:43:28 UTC

RE: Solr + autocomplete

Thanks Ryan,

This looks like the way to go.  However, when I set up my schema I get,
"Error loading class 'solr.EdgeNGramFilterFactory'".  For some reason
the class is not found.  I tried the stable 1.2 build and even tried the
nightly build.  I'm using "<filter class="solr.EdgeNGramFilterFactory"
minGramSize="1" maxGramSize="20"/>".

Any suggestions?

Thanks,
Mike

-----Original Message-----
From: Ryan McKinley [mailto:ryantxu@gmail.com] 
Sent: Monday, October 15, 2007 4:44 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr + autocomplete

> 
> I would imagine there is a library to set up an autocomplete search
with
> Solr.  Does anyone have any suggestions?  Scriptaculous has a
JavaScript
> autocomplete library.  However, the server must return an unordered
> list.
> 

Solr does not provide an autocomplete UI, but it can return JSON that a 
JS library can use to populate an autocomplete.

Depending on you index size/ query speed, you may be fine with a 
standard faceting prefix filter.  If the index is large, you may want to

index using the EdgeNGramFilterFactory.

Check the last comment in:
https://issues.apache.org/jira/browse/SOLR-357

ryan



RE: Solr + autocomplete

Posted by "Park, Michael" <Mi...@brown.edu>.
Will I need to use Solr 1.3 with the EdgeNGramFilterFactory in order to
get the autosuggest feature?

-----Original Message-----
From: Chris Hostetter [mailto:hossman_lucene@fucit.org] 
Sent: Monday, November 12, 2007 1:05 PM
To: solr-user@lucene.apache.org
Subject: RE: Solr + autocomplete


: "Error loading class 'solr.EdgeNGramFilterFactory'".  For some reason

EdgeNGramFilterFactory didn't exist when Solr 1.2 was released, but the 
EdgeNGramTokenizerFactory did.  (the javadocs that come with each
release 
list all of the various factories in that release)


-Hoss


RE: Solr + autocomplete

Posted by Chris Hostetter <ho...@fucit.org>.
: "Error loading class 'solr.EdgeNGramFilterFactory'".  For some reason

EdgeNGramFilterFactory didn't exist when Solr 1.2 was released, but the 
EdgeNGramTokenizerFactory did.  (the javadocs that come with each release 
list all of the various factories in that release)


-Hoss