• Resolved michwatson

    (@michwatson)


    Hi

    We have lots of ACF fields in our project, and we want an exact match of the content. Suppose I have searched for ‘fundible,’ then I need this result only, not to include like ‘fundable’ or ‘funds.’ Also, we have 1500+ ACF fields, and they are like flexible objects and repeaters.

    I have indexed some of the fields and also re-synced the data, but I am not getting success.

    Can you let me know what the exact approach to search acf fields data and exact match.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Felipe Elia

    (@felipeelia)

    Hi,

    I recommend you start disabling fuziness (we have docs about it here). If that doesn’t work you’ll have to tweak the way ElasticPress uses Elasticsearch to tokenize your content (more about it here).

    To check how your ACF fields are indexed in Elasticsearch, you can use our debug addon. That will give you a quick way to check how that content is indexed in a given post, so you can check if the content you want searched is really there or not. (For ACF repeater fields, please check this article)

    As we don’t provide support here, if you have any follow-up questions, please create separate issues in our GitHub repository.

    Thread Starter michwatson

    (@michwatson)

    I have added meta fields is this format. is this format correct. Please review the attached code of acf jason file also for refrence



    meta.content_modules_v2.partner_details_widget.datapro_logo_shortcode.value
    meta.content_modules_v2.partner_details_widget.partner_accordion_content.partner_accordion_description.value
    meta.content_modules_v2.partner_details_widget.partner_accordion_content.partner_accordion_heading.value
    meta.content_modules_v2.partner_details_widget.partner_accordion_content.partner_accordion_type.value
    meta.content_modules_v2.partner_details_widget.partner_anchor_id.value
    meta.content_modules_v2.partner_details_widget.partner_cons.partner_cons_text.value
    meta.content_modules_v2.partner_details_widget.partner_feature_description.value
    meta.content_modules_v2.partner_details_widget.partner_feature_title.value
    meta.content_modules_v2.partner_details_widget.partner_logo.value
    meta.content_modules_v2.partner_details_widget.partner_logo_alt.value
    meta.content_modules_v2.partner_details_widget.partner_primary_button_text.value
    meta.content_modules_v2.partner_details_widget.partner_primary_button_url.value
    meta.content_modules_v2.partner_details_widget.partner_pros.partner_pros_text.value
    meta.content_modules_v2.partner_details_widget.partner_redirect_url.value
    meta.content_modules_v2.partner_details_widget.partner_review_shortcode.value
    meta.content_modules_v2.partner_details_widget.partner_secondary_button_text.value
    meta.content_modules_v2.partner_details_widget.partner_secondary_button_url.value
    meta.content_modules_v2.partner_details_widget.partner_top_attributes.partner_ta_label.value
    meta.content_modules_v2.partner_details_widget.partner_top_attributes.partner_ta_value.value
    meta.content_modules_v2.partner_details_widget.partner_widget_heading.value
    {
    "key": "group_6667e54a495b3",
    "title": "Partner Detail Widget Article",
    "fields": [
    {
    "key": "field_6667e4dec9136",
    "label": "Content Modules v2",
    "name": "content_modules_v2",
    "aria-label": "",
    "type": "flexible_content",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "layouts": {
    "layout_6667e56001d17": {
    "key": "layout_6667e56001d17",
    "name": "partner_details_widget",
    "label": "Partner Details Widget",
    "display": "row",
    "sub_fields": [
    {
    "key": "field_6667e51fc9137",
    "label": "Partner Widget Heading",
    "name": "partner_widget_heading",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_6667e53dc9138",
    "label": "Anchor ID",
    "name": "partner_anchor_id",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_6667e55ac9139",
    "label": "Logo And Rating",
    "name": "",
    "aria-label": "",
    "type": "tab",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "placement": "top",
    "endpoint": 0
    },
    {
    "key": "field_6667e580c913a",
    "label": "Logo",
    "name": "partner_logo",
    "aria-label": "",
    "type": "image",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "return_format": "url",
    "library": "all",
    "min_width": "",
    "min_height": "",
    "min_size": "",
    "max_width": "",
    "max_height": "",
    "max_size": "",
    "mime_types": "",
    "preview_size": "medium"
    },
    {
    "key": "field_670e31f850792",
    "label": "Datapro Logo Shortcode",
    "name": "datapro_logo_shortcode",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_6667e5a2c913b",
    "label": "Logo Alt",
    "name": "partner_logo_alt",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_6667e5b7c913c",
    "label": "Redirect URL",
    "name": "partner_redirect_url",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_6667e5dcc913d",
    "label": "Review Shortcode",
    "name": "partner_review_shortcode",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_6667e5f5c913e",
    "label": "Top Attributes",
    "name": "",
    "aria-label": "",
    "type": "tab",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "placement": "top",
    "endpoint": 0
    },
    {
    "key": "field_6667e60ec913f",
    "label": "Top Attributes",
    "name": "partner_top_attributes",
    "aria-label": "",
    "type": "repeater",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "layout": "table",
    "min": 0,
    "max": 0,
    "collapsed": "",
    "button_label": "Add Row",
    "rows_per_page": 20,
    "sub_fields": [
    {
    "key": "field_6667e64fc9140",
    "label": "Label",
    "name": "partner_ta_label",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": "",
    "parent_repeater": "field_6667e60ec913f"
    },
    {
    "key": "field_6667e665c9141",
    "label": "Value",
    "name": "partner_ta_value",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": "",
    "parent_repeater": "field_6667e60ec913f"
    }
    ]
    },
    {
    "key": "field_6667e68dc9142",
    "label": "Pros & Cons",
    "name": "",
    "aria-label": "",
    "type": "tab",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "placement": "top",
    "endpoint": 0
    },
    {
    "key": "field_6667e6e02bca9",
    "label": "Pros",
    "name": "partner_pros",
    "aria-label": "",
    "type": "repeater",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "layout": "table",
    "min": 0,
    "max": 0,
    "collapsed": "",
    "button_label": "Add Row",
    "rows_per_page": 20,
    "sub_fields": [
    {
    "key": "field_6667e6fe2bcaa",
    "label": "Text",
    "name": "partner_pros_text",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": "",
    "parent_repeater": "field_6667e6e02bca9"
    }
    ]
    },
    {
    "key": "field_6667e7292bcab",
    "label": "Cons",
    "name": "partner_cons",
    "aria-label": "",
    "type": "repeater",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "layout": "table",
    "min": 0,
    "max": 0,
    "collapsed": "",
    "button_label": "Add Row",
    "rows_per_page": 20,
    "sub_fields": [
    {
    "key": "field_6667e74c2bcac",
    "label": "Text",
    "name": "partner_cons_text",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": "",
    "parent_repeater": "field_6667e7292bcab"
    }
    ]
    },
    {
    "key": "field_6667e7622bcad",
    "label": "Feature Text",
    "name": "",
    "aria-label": "",
    "type": "tab",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "placement": "top",
    "endpoint": 0
    },
    {
    "key": "field_6667e7942bcae",
    "label": "Title",
    "name": "partner_feature_title",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_6667e7b22bcaf",
    "label": "Description",
    "name": "partner_feature_description",
    "aria-label": "",
    "type": "textarea",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "rows": "",
    "placeholder": "",
    "new_lines": ""
    },
    {
    "key": "field_6667e86c08fbe",
    "label": "Accordian",
    "name": "",
    "aria-label": "",
    "type": "tab",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "placement": "top",
    "endpoint": 0
    },
    {
    "key": "field_6667e88208fbf",
    "label": "Content",
    "name": "partner_accordion_content",
    "aria-label": "",
    "type": "repeater",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "layout": "row",
    "min": 0,
    "max": 0,
    "collapsed": "",
    "button_label": "Add Row",
    "rows_per_page": 20,
    "sub_fields": [
    {
    "key": "field_6667e8aa08fc0",
    "label": "Accodian Type",
    "name": "partner_accordion_type",
    "aria-label": "",
    "type": "select",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "choices": {
    "always-open": "Always Open",
    "default-open": "Default Open",
    "default-closed": "Default Closed"
    },
    "default_value": false,
    "return_format": "value",
    "multiple": 0,
    "allow_null": 0,
    "ui": 0,
    "ajax": 0,
    "placeholder": "",
    "parent_repeater": "field_6667e88208fbf"
    },
    {
    "key": "field_6667e8da08fc1",
    "label": "Heading",
    "name": "partner_accordion_heading",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": "",
    "parent_repeater": "field_6667e88208fbf"
    },
    {
    "key": "field_6667e8f608fc2",
    "label": "Description",
    "name": "partner_accordion_description",
    "aria-label": "",
    "type": "wysiwyg",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "tabs": "all",
    "toolbar": "full",
    "media_upload": 1,
    "delay": 0,
    "parent_repeater": "field_6667e88208fbf"
    }
    ]
    },
    {
    "key": "field_6667e91b08fc3",
    "label": "CTA",
    "name": "",
    "aria-label": "",
    "type": "tab",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "placement": "top",
    "endpoint": 0
    },
    {
    "key": "field_6667e93508fc4",
    "label": "Primary Button Text",
    "name": "partner_primary_button_text",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_6667e95408fc6",
    "label": "Primary Button URL",
    "name": "partner_primary_button_url",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_6667e96908fc7",
    "label": "Secondary Button Text",
    "name": "partner_secondary_button_text",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_6667e98108fc8",
    "label": "Secondary Button URL",
    "name": "partner_secondary_button_url",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": 0,
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "placeholder": "",
    "prepend": "",
    "append": ""
    }
    ],
    "min": "",
    "max": ""
    }
    },
    "min": "",
    "max": "",
    "button_label": "Add Row"
    }
    ],
    "location": [
    [
    {
    "param": "page_template",
    "operator": "==",
    "value": "template-article.php"
    }
    ],
    [
    {
    "param": "page_template",
    "operator": "==",
    "value": "template-article-without-sidebar.php"
    }
    ]
    ],
    "menu_order": 0,
    "position": "normal",
    "style": "default",
    "label_placement": "top",
    "instruction_placement": "label",
    "hide_on_screen": "",
    "active": true,
    "description": "",
    "show_in_rest": 0,
    "modified": 1729057451
    }
    Plugin Contributor Felipe Elia

    (@felipeelia)

    As I said in my previous mesage, we don’t provide support here. If you want any support, please create an issue in our GitHub repository.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.