• We have followed all the steps mentioned on the plugin page to set up the plugin on the website.
    but when we are searching results on ‘Run test search’ on AWS Cloudsearch, it does not give me results for all custom fields like checkbox, select list, radio buttons, etc.

    We have created different custom fields on website as per this screenshot.

    we can see indexing of above-mentioned custom field has done correctly on Cloudsearch. see screenshot here

    But when I am searching this post on Clousearch it is not returning results for custom fields and showing empty data in facets as well. refer this screenshot

    Can anyone support us here to resolve this issue?

    • This topic was modified 3 years, 5 months ago by TeenLife.
    • This topic was modified 3 years, 5 months ago by TeenLife.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Andrea Landonio

    (@lando1982)

    Hi, please can you show me also your configs here: /wp-admin/admin.php?page=acs_menu_settings?

    Thread Starter TeenLife

    (@teenlife1)

    Plugin Author Andrea Landonio

    (@lando1982)

    Dammit.. looks good… are you able to check logs? during article save operation can we check if something goes wrong… it seems that for a strange reason, when you save, the custom fields are not saved on AWS..

    Thread Starter TeenLife

    (@teenlife1)

    @lando1982 Can you let me know, where I can find logs?

    Plugin Author Andrea Landonio

    (@lando1982)

    Within your web server logs folder… are you running it locally? or, in production?

    Thread Starter TeenLife

    (@teenlife1)

    @lando1982 check these are the log file:-

    [23-Jun-2021 12:34:37 UTC] Error uploading documents: { ["Field "cf_country" must have array type to have multiple values (near operation with index 1; document_id 1_1_131)"] }
    [23-Jun-2021 12:35:47 UTC] Error uploading documents: { ["Field "cf_country" must have array type to have multiple values (near operation with index 1; document_id 1_1_131)","Field "cf_checkbox" must have array type to have multiple values (near operation with index 1; document_id 1_1_131)","Field "cf_checkbox_array" must have array type to have multiple values (near operation with index 1; document_id 1_1_131)"] }
    [23-Jun-2021 13:29:45 UTC] Error uploading documents: { ["Field "cf_country" must have array type to have multiple values (near operation with index 1; document_id 1_1_131)","Field "cf_checkbox" must have array type to have multiple values (near operation with index 1; document_id 1_1_131)","Field "cf_checkbox_array" must have array type to have multiple values (near operation with index 1; document_id 1_1_131)","Field "cf_country" must have array type to have multiple values (near operation with index 2; document_id 1_1_130)","Field "cf_checkbox" must have array type to have multiple values (near operation with index 2; document_id 1_1_130)","Field "cf_checkbox_array" must have array type to have multiple values (near operation with index 2; document_id 1_1_130)","Field "cf_country" must have array type to have multiple values (near operation with index 95; document_id 1_1_34)","Field "cf_checkbox" must have array type to have multiple values (near operation with index 95; document_id 1_1_34)","Field "cf_checkbox_array" must have array type to have multiple values (near operation with index 95; document_id 1_1_34)","Field "cf_country" must have array type to have multiple values (near operation with index 96; document_id 1_1_33)","Field "cf_checkbox" must have array type to have multiple values (near operation with index 96; document_id 1_1_33)","Field "cf_checkbox_array" must have array type to have multiple values (near operation with index 96; document_id 1_1_33)","Field "cf_country" must have array type to have multiple values (near operation with index 98; document_id 1_1_31)","Field "cf_checkbox" must have array type to have multiple values (near operation with index 98; document_id 1_1_31)","Field "cf_checkbox_array" must have array type to have multiple values (near operation with index 98; document_id 1_1_31)","Field "cf_country" must have array type to have multiple values (near operation with index 99; document_id 1_1_30)","Field "cf_checkbox" must have array type to have multiple values (near operation with index 99; document_id 1_1_30)","Field "cf_checkbox_array" must have array type to have multiple values (near operation with index 99; document_id 1_1_30)"] }
    [23-Jun-2021 13:29:49 UTC] Error uploading documents: { ["Field "cf_country" must have array type to have multiple values (near operation with index 10; document_id 1_1_9)","Field "cf_checkbox" must have array type to have multiple values (near operation with index 10; document_id 1_1_9)","Field "cf_checkbox_array" must have array type to have multiple values (near operation with index 10; document_id 1_1_9)","Field "cf_country" must have array type to have multiple values (near operation with index 11; document_id 1_1_8)","Field "cf_checkbox" must have array type to have multiple values (near operation with index 11; document_id 1_1_8)","Field "cf_checkbox_array" must have array type to have multiple values (near operation with index 11; document_id 1_1_8)"] }
    Plugin Author Andrea Landonio

    (@lando1982)

    Ok, looking the logs we’re pretty sure that the plugin is configured properly but I think that the format used by those custom fields (country, checkbox, checkbox_array) creates the issue on saving…
    we need to go deeper.. are you able to show me how those field are saved on database? at least the “custom fields” section in your edit page..

    Thread Starter TeenLife

    (@teenlife1)

    Plugin Author Andrea Landonio

    (@lando1982)

    mmm… how is managed those fields? My concern is that on database there is a data structure cannot be synced to CS…

    Thread Starter TeenLife

    (@teenlife1)

    @lando1982 check the below attached screenshot :- https://paste.pics/CYEKW

    Plugin Author Andrea Landonio

    (@lando1982)

    What about if you change fields type from “Text” to “Text-array” within AWS CloudSearch indexing option page?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Search results are not giving proper results for custom fields’ is closed to new replies.