• Resolved acdekode

    (@acdekode)


    Seems like the plugin is not creating the necessary collection? When I retrieve all collections on my cluster, I get only my (unrelated) test collection created via curl previously, none from plugin. Connection with cluster URL and API key seems to work fine – no errors.

    When I generate API key in cluster I only get admin key, and that’s the only API key I provided in plugin settings – because I can only provide a search API key for a specific collection if that collection exists. And I don’t want to have to create the collection manually. Shouldn’t the schema come from the plugin?

    When I click index on post type, I get following error in my error logs:

    WP_Error::__set_state(array(
    'errors' =>
    array (
    404 =>
    array (
    0 => 'Not Found',
    ),
    ),
    'error_data' =>
    array (
    ),
    'additional_data' =>
    array (
    ),
    ))

    Btw, in debug logs I get HTML response from Github that I need to authenticate. But I did this already and can’t find any place to do it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author CodeManas

    (@codemanas)

    Hi @acdekode

    You will need Search API keys otherwise the search will not work on the frontend.
    As for the collections not being created. The plugin does indeed create the schema and create collections.

    The error you are showing suggests that you are creating a self hosted server.
    Please make sure your sever is accessible and the correct settings have been added to retrieve the posts.Additionally please make sure the Admin API keys are correct.

    Could you please expand on this.
    Btw, in debug logs I get HTML response from Github that I need to authenticate. But I did this already and can’t find any place to do it.

    Thread Starter acdekode

    (@acdekode)

    Hi, thanks for the reply! I figured it out!

    I am not using a self-hosted server. I had entered cloud.typesense.org/clusters/XXXXX in URL (with https and 443 as port). And the plugin said it successfully connected! But after clicking around in Typesense admin I figured that the correct URL was in format of XXXXXXX.a1.typesense.net. After clicking index posts it created a collection and indexed everything!

    However, how do I go about creating a searchable API key? Do I have to manually configure the schema in “Create API key” area in Typesense cloud to only work for all post types + taxonomy term collections I have chosen in plugin?

    Plugin Author CodeManas

    (@codemanas)

    Hi @acdekode

    Good to hear you got it partiallly working.
    If you are using the typesense cloud. Following the documentation you can generate your search api keys too. https://docs.wptypesense.com/getting-started/#generate-api-keys

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Collection not created?’ is closed to new replies.