Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shalinmangar opened this issue May 18, 2017 · 3 comments

Comments

@shalinmangar
Copy link

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:
` /**

  • Typeahead
  • Typeahead or autocomplete shows you a number of suggested queries as you
  • type in the search box.
    */
    typeahead_use_query_profile: false,
    typeahead_query_pipeline_id: 'reddit-default',
    typeahead_query_profile_id: 'default',
    typeahead_fields: ['subreddit_s'],
    // The request handler defines how typeahead gets its results.
    // It is recommended to use suggest as it is more performant.
    // It will require some additional configuration.
    // @see https://lucidworks.com/blog/2016/02/04/fusion-plus-solr-suggesters-search-less-typing/

typeahead_requesthandler: 'suggest', // recommended (requires configuration)
//typeahead_requesthandler: 'select',
`

Is this a bug or a wrong usage?

@gopalagarwal3
Copy link

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

@DaShepsky
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants