lucidworks / lucidworks-view

Create custom user experiences for your Fusion-powered apps.
https://lucidworks.com/view
Apache License 2.0
37 stars 23 forks source link

View is not able to consume suggestions returned by Solr's /suggest handler #92

Open shalinmangar opened 7 years ago

shalinmangar commented 7 years ago

Applies to release 1.4.0. Fusion and Solr has been configured appropriately as per https://lucidworks.com/2016/02/04/fusion-plus-solr-suggesters-search-less-typing/

I can see that view makes the following network call: http://localhost:3000/api/apollo/query-pipelines/reddit-default/collections/reddit/suggest?q=AskReddi&wt=json which returns the following: {"responseHeader":{"zkConnected":true,"status":0,"QTime":1},"suggest":{"mySuggester":{"AskReddi":{"numFound":5,"suggestions":[{"term":"aksreddit","weight":0,"payload":""},{"term":"askredddit","weight":0,"payload":""},{"term":"AskReddit","weight":0,"payload":""},{"term":"AskRedditAfterDark","weight":0,"payload":""},{"term":"askseddit","weight":0,"payload":""}]}}}}

But typing AskRedd on the searchbox displays "No suggestions for AskRedd". screenshot from 2017-05-18 16-28-44

Typeahead configuration is: ` /**

Is this a bug or a wrong usage?

gopalagarwal3 commented 7 years ago

Hi, I am facing exact same issue. Were you able to solve this?

DaShepsky commented 6 years ago

I am facing the exact issue as well. @shalinmangar, were you able to resolve this issue? If so, what was the solution or solutions?

salamswapnil commented 5 years ago

Did anyone resolve this issue? I am also facing this issue.