Hello,

I am trying to test this module.

I have an error when trying to add a search api server.

There is a fatal error on the ajax to get the sub form for elasticsearch:

AjaxError: 
Une erreur HTTP AJAX s'est produite.
Code de statut HTTP : 500
Informations de débogage ci-dessous.
Chemin : /admin/config/search/search-api/add-server?ajax_form=1
StatusText: Internal Server Error
ResponseText : {"message":"A fatal error occurred: Serialization of \u0027Closure\u0027 is not allowed"}

Is anyone having the same problem?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Grimreaper created an issue. See original summary.

lluvigne’s picture

I have the same problem creating a search api server. Some news about this?

lluvigne’s picture

Version: 8.x-2.x-dev » 8.x-5.x-dev
Musa.thomas’s picture

Have you try to add cluster before go search api config page ?
admin/config/search/elasticsearch-connector

got some error trigger if i go directly on search pi page but not the same https://www.drupal.org/node/2850749

lluvigne’s picture

Yes. First i created a elastic cluster and then i try to create a search api server when this problem appeared.

skek’s picture

@lluvigne,

Yesterday I've recorded a video about how to install and configure the module.
It looks like something else is different at your end.
Can you please take a look at the video and let me know what is different at your end?
It can be the case you are using different Elasticsearch server or something else.
Thank you in advance.

Regards!

lluvigne’s picture

Sorry for this big delay. I'm testing the module again and it seems to work fine with search api, but when i have more than one backend (for example search api databse search) i've got the problem scoped here. I think there is a problem with the search api backend plugin. To reproduce the issue:

1. Enable elastic search connector, search api and database search (search_api_db) modules.
2. Create a elastic search cluster.
3. Try to create a new cluster on search api, and select elastic search backend (at this point the problem appear, look at your browser console).

Any idea?

craigmc’s picture

Echoing lluvigne's issue here. I'm not able to use anything but localhost in Search API.
I've got a local D8 site with Search API and ElasticSearch set up.

I have a local build of ElasticSearch running and a Server in ElasticSearch Connector (and matching server and index in Search API)
Everything works as expected there.

I create a second server in ElasticSearch connector pointing to an AWS elasticsearch index (security wide open-- just PoC)
If I create an index in ElasticSearch connector, I see the index appear in AWS.

However, if I create an index via Search API, when I try to actually index content, it only goes to localhost.

I'm not clear on how I map a server in Search API to a server/cluster I've set up in ElasticSearch Connector-- otherwise it's not entirely clear if or how these two modules are supposed to work together.

This may just be an issue of documentation and I'm happy to help reformat or flesh something out, but my issue is currently just being able to successfully connect to anything but localhost:9200

craigmc’s picture

Found the issue. It appears that SearchAPI is now looking for PluginFormInterface in order to allow connecting SearchAPI Server -> ElasticSearch Connector-configured servers.

Here is a patch that addresses the issue

dkarso’s picture

Status: Active » Reviewed & tested by the community

Patch looks good and it is working on my search_api-rc4 install.

  • skek committed 69462d1 on 8.x-5.x authored by craigmc
    Issue #2826804 by craigmc, lluvigne, Grimreaper, Emerya.thomas, dkarso:...
skek’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

davidwhthomas’s picture

I had the same issue with the current install and posted the patch that helped fix the issue here: https://www.drupal.org/project/elasticsearch_connector/issues/2904033#co...