As the title says. Im not able to get the search-plugin Flowpack.SearchPlugin with the Flowpack.SimpleSearch.ContentRepositoryAdaptor up and running.
After the installtion-process i try to run: ./flow nodeindex:build
but this throws an issue -> “Notice: Array to string conversion…Flowpack_SimpleSearch_Domain_Service_SqLiteIndex.php line 117”
I have installed the Flowpack.SearchPlugin with Flowpack.SimpleSearch and Flowpack.SimpleSearch.ContentRepositoryAdaptor. When trying to run ./flow nodeindex:build I get this error:
Notice: Array to string conversion in \project/source/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Flowpack_SimpleSearch_Domain_Service_SqLiteIndex.php line 117
print_r($propertyValue); in the mentioned line gives me:
So obviously that piece of code (implode etc.) cannot work since it is a multi-dimensional array.
Can this a problem with our site/node structure or with the Plugin code?
Could it be possible that this plugin does not work with a multi-language site…?
Hey, I need a bit more context on this error. I just installed simplesearch in a Neos 3.3 (with demo site) and ran the nodeindex:build command without problems. So that looks like a problem with this specific Node content. But I see that implode is rather limited in it’s use. You can work around this problem by configuring a custom search.indexing EEL expression that applies JSON.stringify on the property value for now, but I have an idea for a fix…
I would appreciate if you could try the latest version. I assume you have the 2.0.x version of the flowpack/simplesearch-contentrepositoryadaptor package. Please try installing version “2.0.x-dev” and see if the problem is fixed with that as I don’t have an easy way to test this.
Christian, thanks for your reply. I’m not quite sure what additional context/information I could give you. As already mentioned, it is a multi-language site. Is SimpleSearch intended to be used with language dimensions? I mean like “show only Swedish search results when I’m on the Swedish version of the site”…?
This is what I get when I print_r the $properties argument in SqliteIndex#insertOrUpdatePropertiesToIndex (replaced customer/project name and text contents with ***):
A lot <3
I can pinpoint it to the suggestions of the search plugin now. I will have a look there, apparently this is incompatible with the simple search. Although as said, the latest version (just tagged) should make it work.
I will say that if you have memory problems with 1.5 GB of data loaded for indexing, then probably simple search is too small a solution for your site.
Holy crap, I think you’re right… We have a site with 7 languages and 19 workspaces. I’ve now given the Vagrant box 8 Gigs of RAM and will try the indexing again … actually we only need a simple kind of keyword search, ES would be „too much of a good thing”, I reckon …