Add Custom fileds in index
-
ali.h@sela.aeParticipant1 year ago #29785
Hello Support Team,
How can we add custom fields to the document on indexing time. For example, the current document looks like:
{
“post_status_s”: “”,
“displaymodified”: “2022-03-21T14:33:57Z”,
“displaydate”: “2021-08-04T08:09:43Z”,
“type”: “product”,
“id”: 169900,
“PID”: 169900,
“title”: {
“href”: “https:\/\/staging.sela.ae\/product\/al-ain-frozen-fine-okra-400-g\/”,
“title”: “Al Ain – Frozen Fine Okra 400 g”
},
“image_src”: “https:\/\/staging.sela.ae\/wp-content\/uploads\/2021\/08\/5011636-150×150.jpg”,
“content”: “…”,
“meta_information”: {
“author”: “By Del Monte”,
“category”: “”,
“date”: “, on 08\/04\/2021”,
“comments_number”: “”
}
}
].but i want to have something like
{
“custom_field_1”: “test 1”,
“custom_field_2”: “test 2”,
“custom_field_3”: “test 3”,
“post_status_s”: “”,
“displaymodified”: “2022-03-21T14:33:57Z”,
“displaydate”: “2021-08-04T08:09:43Z”,
“type”: “product”,
“id”: 169900,
“PID”: 169900,
“title”: {
“href”: “https:\/\/staging.sela.ae\/product\/al-ain-frozen-fine-okra-400-g\/”,
“title”: “Al Ain – Frozen Fine Okra 400 g”
},
“image_src”: “https:\/\/staging.sela.ae\/wp-content\/uploads\/2021\/08\/5011636-150×150.jpg”,
“content”: “…”,
“meta_information”: {
“author”: “By Del Monte”,
“category”: “”,
“date”: “, on 08\/04\/2021”,
“comments_number”: “”
}
}
];Regards
ali.h@sela.aeParticipant12 months ago #29793I want the field value in the document itself, not in facets or filters. exactly how we have the title and id etc..
You must be logged in to reply to this topic.