Flowpack.SearchPlugin - Ajax Search not working

Hi there,

I’m currently trying to use ElasticSearch for a new customer project. ElasticSearch is running and my neos content gets indexed. :slight_smile:
For this I am using the following plugins:

  • Flowpack.ElasticSearch
  • Flowpack.ElasticSearch.ContentRepositoryAdaptor
  • Flowpack.SearchPlugin

I’m able to receive search results with the default Flowpack.SearchPlugin Form functionality. I get suggestions if I use the Suggestion-Route.

My problem now is the following:
The Documentation of Flowpack.SearchPlugin mentions that a AJAX search can be used with the following GET-URL:

{f:uri.action(action: ‘index’, controller: ‘AjaxSearch’, package: ‘Flowpack.SearchPlugin’, absolute: 1)}

However the AjaxSearch Controller doesn’t contain an “index”-action, but rather an “search”-action.

The problem now for me is that if I change the action to “search”, the function requires a node. But since I do the request with an ajax-request, just the “search”–parameter gets transferred and therefor the requirement is not fulfilled.

How is this supposed to work? And how do I get results?

Thanks in advance,


this seems to be incorrect in the Flowpack.SearchPlugin documentation.
I couldn’t get this to work either -> https://github.com/Flowpack/Flowpack.SearchPlugin/issues/30

Small update:
A colleague of mine was able to seek out the missing part.
Unfortunately the action path, which is described in the documentation, was missing the parameters inside.

The correct URL can be created by the following line:

{f:uri.action(action: 'search', controller: 'AjaxSearch', package: 'Flowpack.SearchPlugin', arguments:{node:node}, absolute: 1)}

The information can be seen at github: https://github.com/Flowpack/Flowpack.SearchPlugin/issues/30

Thanks for the support =)