Implement autosuggest for search bar

Description

Implement autosuggest feature for the Integrated search bar. The suggestion should suggest:

  • Terms / phrases, like Google this --> starts a search on the term when chosen (I'm not sure if the Solr config needs a change for this)

  • Titles of content items --> goes to the content item when chosen

CSS/JS has already been made, but this Integrated layout, so I'm not sure if it can be used (Resources/public/js/base.js in the attachment)

J-San already did some investigation on this issue. Using shingles is the best way.

Technical tasks

None

Deployment actions

Add to your config.yml:

framework:
serializer:
enabled: true

assetic:
filters:
uglifyjs2: ~

Activity

Show:
Jeroen van Leeuwen
December 14, 2016, 11:52 AM

can you check the response for this PR:

https://github.com/integratedfordevelopers/integrated/pull/11

If the filter should be removed this issue should be declined so we undo the content bundle changes.

Jeroen van Leeuwen
December 14, 2016, 11:59 AM

One PR should be merged

Jeroen van Leeuwen
December 14, 2016, 12:00 PM

zou jij misschien nog even kunnen kijken naar de PR die ik in Github heb aangemaakt? Gaat mbt het filter en vind het een goede oplossing (ik denk dat je hierdoor alleen maar kritischer gaat kijken maar dat is geen probleem )

Marijn Otte
December 15, 2016, 10:01 PM

Some small comments:

  • Very nice delivery, it also looks nice so the designer is not needed any more

  • Config changes need to be added to the deployment actions to generate an update.md --> already done

  • Please run the search query when a suggestion is chosen from the term suggestions (go to /admin/content/?q=hoera+dit+is+gaaf when "hoera dit is gaaf" is chosen from the autosuggest)

  • Please put the content suggestions on top of the term suggestions

  • Please remove the "Content" title. The small line is enough as a separator (content items have content type and date, so that already makes clear the are different)

Marijn Otte
December 19, 2016, 2:53 PM

Changes are fine, but found a new problem: workflow permissions are not applied. This means a user can find articles which should be hidden for him.

In the ContentController this code is used to apply the permissions:

Assignee

Unassigned

Client

Marijn Otte

Sprint

None

Fix versions

Configure