Processing data portions associated with selectable search algorithm execution
A system and method to receive a search query input from an end user system, wherein the search query input relates to information associated with a merchant system. In view of the search query, a document associated with the merchant system is identified. A set of portions of the document are identified. A keyword-matching density level is determined for each portion of the set of portions of the document. A selected portion of the set of portions having a highest relative keyword-matching density level is identified. A graphical user interface including a search result responsive to the search query is generated, the graphical user interface including the selected portion of the document.
1 . A method comprising:
receiving a search query from an end user system, wherein the search query relates to information associated with a merchant system;
identifying, in view of the search query, a document associated with the merchant system;
generating at least one portion of the document;
determining a keyword-matching density level for each portion in the at least one portion of the document, the keyword-matching density level representing a relative density of keywords associated with the search query to a total number of words in each portion;
identifying, by a processing device, a selected portion of the at least one portion having a highest relative keyword-matching density level;
generating a first type and a second type of snippet portion based on the selected portion; and
generating a graphical user interface including a search result responsive to the search query, wherein the graphical user interface includes the first type and the second type of snippet portion from the selected portion of the document.
2 . The method of claim 1 , wherein the first type of snippet portion is a direct answer featured snippet portion or an inline featured snippet portion.
3 . The method of claim 1 , wherein the second type of snippet portion comprises information providing a context for the search result.
4 . The method of claim 1 , further comprising segmenting, by a first module, the selected portion comprising a determined number of word tokens and a separator token.
5 . The method of claim 4 , wherein the first type of snippet portion is associated with the first module.
6 . The method of claim 1 , further comprising extracting, by a second module, a densest set of highlights within the selected portion.
7 . The method of claim 6 , wherein the second type of snippet portion is associated with the second module.
8 . The method of claim 1 , further comprising executing a search algorithm to identify the document in view of the search query.
9 . The method of claim 1 , further comprising extracting the selected portion having the highest relative keyword-matching density level from the document.
10 . The method of claim 1 , further comprising receiving, from the merchant system, a selection of a first search algorithm of a set of search algorithms, wherein the first search algorithm relates to a first type of search query.
11 . A non-transitory computer readable storage medium having instructions that, if executed by a processing device, cause the processing device to perform operations comprising:
receiving a search query from an end user system, wherein the search query relates to information associated with a merchant system;
identifying, in view of the search query, a document associated with the merchant system;
generating at least one portion of the document;
determining a keyword-matching density level for each portion in the at least one portion of the document, the keyword-matching density level representing a relative density of keywords associated with the search query to a total number of words in each portion;
identifying, by a processing device, a selected portion of the at least one portion having a highest relative keyword-matching density level;
generating a first type and a second type of snippet portion based on the selected portion; and
generating a graphical user interface including a search result responsive to the search query, wherein the graphical user interface includes the first type and the second type of snippet portion from the selected portion of the document.
12 . The non-transitory computer readable medium of claim 11 , wherein the first type of snippet portion is a direct answer featured snippet portion or an inline featured snippet portion.
13 . The non-transitory computer readable medium of claim 11 , wherein the second type of snippet portion comprises information providing a context for the search result.
14 . The non-transitory computer readable medium of claim 11 , further comprising segmenting, by a first module, the selected portion comprising a determined number of word tokens and a separator token.
15 . The non-transitory computer readable medium of claim 14 , wherein the first type of snippet portion is associated with the first module.
16 . The non-transitory computer readable medium of claim 11 , further comprising extracting, by a second module, a densest set of highlights within the selected portion.
17 . The non-transitory computer readable medium of claim 16 , wherein the second type of snippet portion is associated with the second module.
18 . The non-transitory computer readable medium of claim 11 , further comprising executing a search algorithm to identify the document in view of the search query.
19 . The non-transitory computer readable medium of claim 11 , further comprising extracting the selected portion having the highest relative keyword-matching density level from the document.
20 . The non-transitory computer readable medium of claim 11 , further comprising receiving, from the merchant system, a selection of a first search algorithm of a set of search algorithms, wherein the first search algorithm relates to a first type of search query.