{"id":1623,"date":"2022-01-09T11:21:32","date_gmt":"2022-01-09T11:21:32","guid":{"rendered":"https:\/\/multisite.korebots.com\/SearchAssist\/?p=1623"},"modified":"2022-01-18T05:57:28","modified_gmt":"2022-01-18T05:57:28","slug":"how-to-extract-traits","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/SearchAssist\/how-to\/how-to-extract-traits\/","title":{"rendered":"How to Extract Traits"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p><span style=\"font-weight: 400;\">The Traits Extraction stage in <\/span><a href=\"https:\/\/docs.google.com\/document\/d\/1A1G6RzvrbxqNQtagGPWiBYSm2sIZaKiB\/edit#bookmark=id.endjhwj5b953\"><span style=\"font-weight: 400;\">Indexing Pipeline<\/span><\/a> <span style=\"font-weight: 400;\">\u00a0extracts specific or characteristic\u00a0 attributes, or details that the search users express in their conversations. SearchAssist allows you to identify trait characteristics from a source field and save the identified traits in a target field.\u00a0<\/span><span style=\"font-weight: 400;\">The target field is used to detect user intentions better.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Add multiple trait groups to be identified from the source field.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Define a condition for the trait extraction stage. SearchAssist extract traits only from the documents that satisfy the given conditions.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Re-order or delete trait extractions.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Simulate the changes before saving them.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Ensure to click\u00a0 <\/span><b>Train your App<\/b><span style=\"font-weight: 400;\"> each time you make changes to any index configuration. This builds the index based on the updated configurations.<a ref=\"magnificPopup\" href=\"https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Train_your_App_icon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1605 size-medium\" src=\"https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Train_your_App_icon-300x38.png\" alt=\"\" width=\"300\" height=\"38\" srcset=\"https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Train_your_App_icon-300x38.png 300w, https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Train_your_App_icon.png 460w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400;\">Configuration<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To configure for traits extraction, take the following steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click the <\/span><b>Indices <\/b><span style=\"font-weight: 400;\">tab on the top.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">On the left pane, under the <\/span><b>Index Configuration<\/b><span style=\"font-weight: 400;\"> section, click <\/span><b>Workbench<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">On the Workbench (Index Configuration) page, on the <\/span><b>Stages <\/b><span style=\"font-weight: 400;\">column, click the <\/span><strong>+<\/strong><span style=\"font-weight: 400;\"> icon.<a ref=\"magnificPopup\" href=\"https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Manage_indices_wb_traits3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1663 size-medium\" src=\"https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Manage_indices_wb_traits3-300x227.png\" alt=\"\" width=\"300\" height=\"227\" srcset=\"https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Manage_indices_wb_traits3-300x227.png 300w, https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Manage_indices_wb_traits3.png 583w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Select <\/span><b>Traits Extraction<\/b><span style=\"font-weight: 400;\"> from the <\/span><b>Stage Type<\/b><span style=\"font-weight: 400;\"> dropdown.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Enter a name in the <\/span><b>Stage Name<\/b><span style=\"font-weight: 400;\"> field.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Enter a condition in the <\/span><b>Condition <\/b><span style=\"font-weight: 400;\">field. Add multiple conditions using the AND\/OR connectors. SearchAssists considers only the documents that satisfy the conditions as part of the stage. See <\/span><a href=\"https:\/\/docs.google.com\/document\/d\/1A1G6RzvrbxqNQtagGPWiBYSm2sIZaKiB\/edit#bookmark=id.rnglm3s1ipvo\"><span style=\"font-weight: 400;\">Conditions in\u00a0 Extraction<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Select the field you want to extract traits from as <\/span><b>Source<\/b> <b>Field<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Name the <strong>Target Field<\/strong>\u00a0 where you want to store the extracted traits. The application creates the target field.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Enter trait groups in the <\/span><b>Add Trait Groups<\/b><span style=\"font-weight: 400;\"> field.\u00a0 <a ref=\"magnificPopup\" href=\"https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Manage_indices_wb_traits2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1624 size-large\" src=\"https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Manage_indices_wb_traits2-1024x493.png\" alt=\"\" width=\"640\" height=\"308\" srcset=\"https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Manage_indices_wb_traits2-1024x493.png 1024w, https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Manage_indices_wb_traits2-300x144.png 300w, https:\/\/multisite.korebots.com\/SearchAssist\/wp-content\/uploads\/sites\/18\/2021\/12\/Manage_indices_wb_traits2.png 1655w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click <\/span><b>Simulate<\/b><span style=\"font-weight: 400;\"> to verify the configurations. The simulator displays the Source and the number of documents to which the mapping was applied, and the result. You can change the Source and the number of documents if there is no mention of it in the conditions.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Once ready, click <strong>Save Configuration<\/strong> on the upper-right.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Conditions in\u00a0 Extraction<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Condition is of the following format: <\/span><span style=\"font-weight: 400;\">ctx.fieldtype==value<\/span><span style=\"font-weight: 400;\"> or <\/span><span style=\"font-weight: 400;\">ctx.fieldtype!=value<\/span><span style=\"font-weight: 400;\">. Obtain the <\/span><i><span style=\"font-weight: 400;\">field_name<\/span><\/i><span style=\"font-weight: 400;\"> from the Fields table under Index Configuration.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For example, <\/span><span style=\"font-weight: 400;\">ctx.contentType==&#8221;web&#8221;<\/span><span style=\"font-weight: 400;\"> to restrict the extraction to the content from a web source.<\/span><\/p>\n<p>&nbsp;<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/section><section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"w-post-elm post_navigation layout_simple inv_false\"><a class=\"post_navigation-item order_first to_prev\" href=\"https:\/\/multisite.korebots.com\/SearchAssist\/manage-indices\/how-to-extract-keywords\/\" title=\"How to Extract Keywords\"><div class=\"post_navigation-item-arrow\"><\/div><div class=\"post_navigation-item-meta\">Previous Post<\/div><div class=\"post_navigation-item-title\"><span>How to Extract Keywords<\/span><\/div><\/a><a class=\"post_navigation-item order_second to_next\" href=\"https:\/\/multisite.korebots.com\/SearchAssist\/how-to\/how-to-extract-entities\/\" title=\"How to Extract Entities\"><div class=\"post_navigation-item-arrow\"><\/div><div class=\"post_navigation-item-meta\">Next Post<\/div><div class=\"post_navigation-item-title\"><span>How to Extract Entities<\/span><\/div><\/a><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"The Traits Extraction stage in Indexing Pipeline \u00a0extracts specific or characteristic\u00a0 attributes, or details that the search users express in their conversations. SearchAssist allows you to identify trait characteristics from a source field and save the identified traits in a target field.\u00a0The target field is used to detect user intentions better. You can: Add multiple...","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59,58],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/SearchAssist\/wp-json\/wp\/v2\/posts\/1623"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/SearchAssist\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/SearchAssist\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/SearchAssist\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/SearchAssist\/wp-json\/wp\/v2\/comments?post=1623"}],"version-history":[{"count":9,"href":"https:\/\/multisite.korebots.com\/SearchAssist\/wp-json\/wp\/v2\/posts\/1623\/revisions"}],"predecessor-version":[{"id":2706,"href":"https:\/\/multisite.korebots.com\/SearchAssist\/wp-json\/wp\/v2\/posts\/1623\/revisions\/2706"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/SearchAssist\/wp-json\/wp\/v2\/media?parent=1623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/SearchAssist\/wp-json\/wp\/v2\/categories?post=1623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/SearchAssist\/wp-json\/wp\/v2\/tags?post=1623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}