lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: solr 1.4 suggester component
Date Sat, 30 Oct 2010 18:55:52 GMT
Sorry it took so long to respond, I got wrapped up in work. I don't think
you're
going to be able to pull this off (but of course I've been wrong before).
File based
suggestions look like they do an awful lot of stuff for you, at some expense
of
customization (no surprise here).

That said, though, there's no need to have a second core if you wanted to
do something yourself. Remember that Solr documents do not need to have
the same fields. So, you could easily create a "document" that simply had
one huge field NOT in common with any other document. Go ahead and
index into this field from the dictionary file any way you want. Your
autosuggest
can then operate off this field, customized however you want. Recent Solr
builds have an example of how to do this through Ajax calls by going against
a specific field. You embed a bit of Javascript in your page that makes
calls
to get terms from the relevant field. See layout.vm and browse.vm in the
example
code for a sense of how this can occur....

HTH
Erick

On Mon, Oct 25, 2010 at 10:31 AM, abhayd <ajdabholkar@hotmail.com> wrote:

>
> hi erick,
> Thanks for the link.
>
> Problem is we dont want to have another solr core for implementing this, So
> was trying suggester component as it allows file based auto suggest.
>
> It works fine only issue is how to get prefix ignored . Any idea?
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/solr-1-4-suggester-component-tp1766915p1767639.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message