Hi,

I ran into the same issue, and what I did (at http://www.mysecondhome.co.uk/) was to create a separate core just for autosuggest which is fully updated once an hour which contains the distinct values of the items I want to look for including the count so I can display the approximate amount of results in the suggest dropdown. This might not be a good solution when your data is updated frequently but for us it's worked very well so far. Maybe you can also use clustering so you won't have to create a separate core but I'm thinking my solution performs better (although I haven't tested it so I could be horribly horribly wrong).

Regards,

gwk

On 3/10/2010 2:55 PM, stocki wrote:
hello.

i implement my suggest-function with edgengramfilter.
now when i get my result , is the result not distinct. often ist the name
double or more.

is it possible that solr gives me only distinct result ?

  "response":{"numFound":172,"start":0,"docs":[
        {
         "name":"Halloween"},
        {
         "name":"Hallo Taxi"},
        {
         "name":"Halloween"},
        {
         "name":"Hallstatt"},
        {
         "name":"Hallo Mary"},
        {
         "name":"Halloween"},
        {
         "name":"Halloween"},
        {
         "name":"Halloween"},
        {
         "name":"Halleluja"},
        {
         "name":"Halloween"}]

so how can i delete Halloween from solr ?
i didnt want delete it from client-side

thx




Reply via email to