Content search method and apparatus, and device, computer-readable storage medium and product

By translating and displaying search results according to the system language of the terminal device, the problem of users being unable to quickly read data information in multi-language scenarios is solved, and the efficiency of content browsing and user experience are improved.

WO2024179341A1PCT designated stage expired Publication Date: 2024-09-06BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/077904
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2024-02-21
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In a multi-language scenario, users cannot quickly read the searched data information, which makes browsing special effects content difficult and inefficient.

Method used

By obtaining the search information input by the user, the search field is generated, and the search results are translated and displayed according to the system language of the terminal device to ensure that the search results match the user's commonly used language and reduce the difficulty of reading.

Benefits of technology

It improves users' browsing efficiency and experience of search results, reduces the difficulty of browsing multi-language content, and enables users to obtain information more quickly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024077904_06092024_PF_FP
    Figure CN2024077904_06092024_PF_FP
Patent Text Reader

Abstract

Provided are a content search method and apparatus, and a device, a computer-readable storage medium and a product. The method comprises: in response to a search operation, which is triggered by a user, acquiring search information, which is input by the user; generating a search field on the basis of the search information; according to the search field, searching for data information that matches the search field, so as to obtain search results; determining a system language corresponding to a terminal device of the user; and displaying, in a display interface, a search result that matches the system language.
Need to check novelty before this filing date? Find Prior Art

Description

Content search method, device, equipment, computer-readable storage medium, and product

[0001] This application claims priority to Chinese Patent Application No. 202310200754.0 filed on February 28, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] Embodiments of the present disclosure relate to a content search method, apparatus, device, computer-readable storage medium, and product. Background Art

[0003] With the improvement of terminal device hardware performance and the continuous advancement of artificial intelligence technology, there are more and more applications (Application, referred to as APP) running on terminal devices. Taking the content search application as an example, the users of this application may be users of different nationalities, and they use different languages ​​to input the search field. In a multi-party cooperation scenario, since all parties use their native language to edit the special effects content, the special effects content obtained by the search is often written in a variety of different languages. For users, it is difficult to browse the special effects content.

[0004] Summary of the Invention

[0005] The embodiments of the present disclosure provide a content search method, apparatus, device, computer-readable storage medium, and product for solving the technical problem that users cannot quickly read searched data information in multilingual scenarios.

[0006] In a first aspect, an embodiment of the present disclosure provides a content search method, including:

[0007] In response to a search operation triggered by a user, obtaining search information input by the user;

[0008] generating a search field based on the search information;

[0009] Searching for data information matching the search field according to the search field to obtain search results;

[0010] Determining the system language corresponding to the user's terminal device;

[0011] Search results matching the system language are displayed in a display interface.

[0012] In a second aspect, an embodiment of the present disclosure provides a content search device, including:

[0013] An acquisition module, configured to acquire search information input by the user in response to a search operation triggered by the user;

[0014] A generating module, configured to generate a search field based on the search information;

[0015] A search module is used to search for data information matching the search field according to the search field, and obtain search results;

[0016] A determination module, configured to determine a system language corresponding to the user's terminal device;

[0017] The display module is used to display search results matching the system language in a display interface.

[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0019] The memory stores computer-executable instructions;

[0020] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the content search method described in the first aspect and various possible designs of the first aspect.

[0021] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the content search method described in the first aspect and various possible designs of the first aspect is implemented.

[0022] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the content search method described in the first aspect and various possible designs of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0024] FIG1 is a flow chart of a content search method provided by an embodiment of the present disclosure;

[0025] FIG2 is a schematic diagram of splicing provided by an embodiment of the present disclosure;

[0026] FIG3 is a flow chart of a content search method provided by yet another embodiment of the present disclosure;

[0027] FIG4 is a schematic diagram of an interface interaction provided by an embodiment of the present disclosure;

[0028] FIG5 is a schematic structural diagram of a content search device provided by an embodiment of the present disclosure; and

[0029] FIG6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0031] In order to solve the technical problem that users cannot quickly read searched data information in a multilingual scenario, the present disclosure provides a content search method, apparatus, device, computer-readable storage medium and product.

[0032] It should be noted that the content search method, apparatus, device, computer-readable storage medium, and product provided by the present disclosure can be applied in any multilingual content search scenario.

[0033] In multilingual user scenarios, different users may use different commonly used languages ​​to write data information. For example, the data information may be special effects content, and users can write special effects content in different languages ​​such as Chinese, English, Korean, and Japanese. When searching for special effects content, a single search field may return search results in multiple different languages. This makes browsing special effects content in different languages ​​more difficult and inefficient.

[0034] In the process of solving the above technical problems, the inventors discovered through research that, in order to achieve good information interaction in Sino-foreign collaboration, improve the efficiency of content browsing, and reduce the difficulty of content browsing, a search for special effects content can be performed based on the search field entered by the user. After the search results are obtained, they can be translated according to the system language of the user's terminal device to display the search results corresponding to that system language.

[0035] The system architecture underlying this disclosure includes at least a terminal device, a server, and a data server. The terminal device may be equipped with a content search device, which may be written in languages ​​such as C / C++, Java, Shell, or Python. The terminal device may be, for example, a mobile phone, desktop computer, or tablet computer. The data server may be a cloud server or server cluster, storing a large amount of data. The server may also be equipped with a translation engine.

[0036] Based on the above system architecture, a user can enter a search field in a terminal device. Based on the search field, the data server is searched for search results that match the search field. Based on the system language of the terminal device, a translation engine in the server is called to translate the search results so that the search results that match the system language can be displayed on the terminal device.

[0037] FIG1 is a flow chart of a content search method provided by an embodiment of the present disclosure. As shown in FIG1 , the method includes:

[0038] Step 101: In response to a search operation triggered by a user, obtain search information input by the user.

[0039] Step 102: Generate a search field based on the search information.

[0040] The execution subject of this embodiment is a content search device. The content search device may be coupled to a terminal device, thereby enabling content search operations based on user triggering operations on the terminal device. Alternatively, the content search device may be coupled to a server, which is communicatively connected to the terminal device, thereby controlling the terminal device to perform content search operations based on user triggering operations on the terminal device.

[0041] In this embodiment, the user may trigger a search operation in the display interface. In response to the search operation, search information input by the user may be acquired, and a search field may be generated based on the search information.

[0042] Optionally, a content input control may be provided in the display interface, and the user may generate search information based on the content control and generate a field based on the search information. This allows subsequent content search operations to be performed based on the search field. The content input control may be an input box, or a content selection box, etc., which is not limited in this disclosure.

[0043] Optionally, a search control may be provided in the display interface, and the user may trigger the search control to perform a content search operation. Alternatively, the content search operation may be automatically triggered upon detecting that the user has entered a new search field for a period exceeding a preset time threshold. Alternatively, the content search operation may be automatically triggered upon detecting that the current cursor has clicked on a content input control. This disclosure does not limit the method for triggering the search operation.

[0044] Optionally, a word segmentation operation may be performed on the search information to obtain at least one word segmentation corresponding to the search information, and the at least one word segmentation may be determined as the search field. Alternatively, a keyword in the search information may be identified and the keyword may be determined as the search field. This disclosure does not impose any restrictions on this.

[0045] Step 103: Search for data information matching the search field according to the search field to obtain search results.

[0046] In this embodiment, a terminal device or server equipped with a content search device is capable of communicating with a data server, thereby enabling information exchange with the data server. The data server may pre-store a large amount of data information. This data information includes, but is not limited to, special effects content. In practical applications, the special effects content may be written in different languages. For example, the data server may store special effects content in Chinese, English, Korean, etc.

[0047] Furthermore, after obtaining the search field, the data server can be searched for special effect content that matches the search field according to the search field to obtain search results. For example, the data server can be searched for special effect content that includes the search field as a search result.

[0048] Step 104: Determine the system language corresponding to the user's terminal device.

[0049] In this embodiment, since the special effects content can be displayed in different languages, the system language of the user's terminal device can be determined to reduce the difficulty of reading the search results. The system language can be the language pre-set by the user for the terminal device's operating system. Alternatively, the system language can be the language used by the application software installed on the terminal device, which is not limited in this disclosure.

[0050] It is understandable that the system language used by the user's terminal device may be the user's common language. Therefore, if the search results are converted into the system language, the reading difficulty of the search results can be effectively reduced, allowing the user to obtain more content from the search results.

[0051] Step 105: Display search results matching the system language in a display interface.

[0052] In this embodiment, after the system language corresponding to the terminal device is determined, the search results may be converted into the system language, and the search results matching the system language may be displayed in the display interface.

[0053] The content search method provided in this embodiment obtains a search field entered by the user in response to a user triggering a preset search control, and searches the search field for data information matching the search field to obtain search results. This data information includes, but is not limited to, special effects content. The search results are translated according to the system language used by the user's terminal device to display search results that match the system language. This allows users with different languages ​​to browse search results that match their common language. This reduces the difficulty for users to browse special effects content, improving the user experience.

[0054] Further, based on any of the above embodiments, step 104 includes:

[0055] Check whether the language information corresponding to the search result matches the system language.

[0056] If not, the search result is translated according to the system language to obtain a translation result.

[0057] The translation result is displayed on the display interface.

[0058] In this embodiment, after obtaining the system language corresponding to the terminal device, the search results can be converted into the system language. First, it can be detected whether the language information corresponding to the search results matches the system language.

[0059] Optionally, for each search result, if the search result is written in the system language, there is no need to translate the search result, and the search result can be directly displayed.

[0060] On the contrary, for each search result, if the search result does not match the system language, in order to reduce the reading difficulty of the search result and enable the user to obtain more content from the search result, the search result can be translated according to the system language to obtain a translation result. The translation result is displayed on the display interface.

[0061] As an implementable method, an external translation engine can be called through a preset calling interface to translate the search results. Alternatively, a built-in translation algorithm can be used to translate the search results, which is not limited in this disclosure.

[0062] The content search method provided in this embodiment translates the search results when it is detected that the language information corresponding to the search results does not match the system language, so that the display language of the search results can match the system language of the terminal device, allowing users to view the search results more quickly.

[0063] Furthermore, based on any of the above embodiments, the translating operation on the search results according to the system language to obtain the translation results includes:

[0064] When the system language is the preset first language, it is detected whether the search results include any preset target keyword.

[0065] If so, the fields in the search results except the target keyword are translated into the first language to obtain the translation result.

[0066] In this embodiment, when the system language is Chinese, the data information needs to be translated into Chinese for display. However, special effects content may include a large number of foreign proper nouns, names, and other content. Directly translating this content into Chinese may result in an incoherent translation, affecting the user's reading experience. Therefore, to ensure translation accuracy, this content may not be translated.

[0067] Therefore, multiple target keywords can be pre-set. When the system language is detected as a preset first language, the search results are checked to see if any of the preset target keywords are included. The first language includes, but is not limited to, Chinese. If not, the search results can be directly translated. Conversely, the search results fields other than the target keywords can be translated into the first language to obtain a translation result.

[0068] The content search method provided in this embodiment detects whether the search results include any preset target keywords when it detects that the system language is the preset first language, and translates the fields other than the target keywords, thereby avoiding inaccurate translation of proper nouns and affecting the user's browsing experience.

[0069] Further, based on any of the above embodiments, after translating the search results according to the system language and obtaining the translation results, the method further includes:

[0070] The translation result and the search field are spliced ​​using preset target characters to obtain a spliced ​​result.

[0071] Step 104 includes:

[0072] The splicing result is displayed in the display interface, wherein the splicing result includes search results matching the system language.

[0073] In this embodiment, after translating the search results to obtain the translation results, the translation results can be concatenated with the search field using preset target characters to obtain a concatenated result. Subsequently, after determining the system language of the user terminal device, the concatenated result can be displayed on the display interface, including search results that match the system language.

[0074] Furthermore, based on any of the above embodiments, the step of performing a splicing operation on the translation result and the search field using preset target characters to obtain a spliced ​​result includes:

[0075] The translation result is spliced ​​onto the back of the search field using a preset first target character to obtain a spliced ​​result.

[0076] Alternatively, the translation result is spliced ​​under the search field using a preset second target character to obtain a spliced ​​result.

[0077] In this embodiment, the target characters may include a first target character and a second target character. The first target character may be " / / ". In actual applications, the translation result may be concatenated with the preset first target character at the back of the search field to obtain a concatenated result. Alternatively, the second target character may be "-----". The translation result may be concatenated with the preset second target character at the bottom of the search field to obtain a concatenated result.

[0078] FIG2 is a schematic diagram of splicing provided by an embodiment of the present disclosure. As shown in FIG2 , a preset first target character 21 can be used to splice the translation result 22 behind the search field 23. Alternatively, a preset second target character 24 can be used to splice the translation result 22 below the search field 23.

[0079] Further, based on any of the above embodiments, after performing a splicing operation on the translation result and the search result using preset target characters to obtain the spliced ​​result, the method further includes:

[0080] responding to an edit request triggered by the user for the search result;

[0081] Obtaining search results in the splicing result according to the target character in the splicing result;

[0082] An editing operation is performed on the search result according to a preset triggering operation of the user for the search result.

[0083] In this embodiment, after obtaining the search results and displaying the search results corresponding to the system language on the display interface, the user can edit the search results according to actual needs. For example, the user can edit the special effects content currently searched according to actual needs.

[0084] Optionally, since the target characters are used in the splicing results to splice the search results and translation results, the search results or translation results can be subsequently extracted based on the target characters. In response to a user-triggered edit request for the search results, the search results in the splicing results can be retrieved based on the target characters in the splicing results. The search results can be edited based on the user's preset trigger operation for the search results. Editing operations include, but are not limited to, adding, deleting, and modifying.

[0085] Optionally, the user can also edit the translation result by triggering an edit request. Optionally, the translation result in the splicing result can be obtained based on the target character in the splicing result. In response to the user's preset trigger operation on the translation result, the translation result is edited.

[0086] As an operative approach, in response to a user-triggered edit request, a preset selection control may be displayed. The selection control includes search result options and translation result options. In response to a user selection operation based on the selection control, a target edit object selected by the user is determined. The edit operation is then performed on the target edit object.

[0087] The content search method provided in this embodiment uses preset target characters to concatenate the translation result with the search field to obtain a concatenated result. Subsequently, search results matching the system language can be retrieved from the concatenated result and displayed, ensuring that the language of the displayed search results matches the system language. This reduces the difficulty of reading the search results and improves the user experience.

[0088] FIG3 is a flow chart of a content search method provided by another embodiment of the present disclosure. Based on any of the above embodiments, as shown in FIG3 , the display interface further includes a preset translation control. The method further includes:

[0089] Step 301: In response to a user triggering an operation on a preset translation control, a search field generated by the user based on a preset content input control is obtained.

[0090] Step 302: Identify the language information corresponding to the search field.

[0091] Step 303: Translate the search field into a target translation language corresponding to the language information to obtain a translation result.

[0092] Step 304: Display the search field and the translation result on a display interface.

[0093] In this embodiment, when entering a search field, the user can also quickly translate the search field according to actual needs.

[0094] Optionally, the display interface also includes a preset translation control. In addition, a content input control may be provided in the display interface, and the user may generate a search field based on the content control. In response to the user triggering the preset translation control, the search field generated by the user based on the content input control is obtained. The language information corresponding to the search field is identified. For example, it may be identified whether the search field includes Chinese, or the language to which the search field belongs may be identified. The identification of the language information may be achieved through regular expressions, or it may be achieved through a preset language identification algorithm, and the present disclosure does not impose any restrictions on this. Furthermore, after determining the language information, the search field may be translated into the target translation language corresponding to the language information to obtain a translation result. Thus, the search field and the translation result may be displayed separately on the display interface.

[0095] FIG4 is a schematic diagram of an interface interaction provided by an embodiment of the present disclosure. As shown in FIG4 , a display interface 41 includes a preset translation control 42 and a preset content input control 43. A user can input content using the preset content input control 43. In response to a user triggering translation control 42, a search field 44 in the content input control 43 can be retrieved and translated, resulting in a translation result 45. The search field 44 and the translation result 45 are displayed on the display interface 41.

[0096] The content search method provided in this embodiment translates the search field input by the user into the target translation language corresponding to the language information in response to the user triggering the preset translation control, thereby enabling rapid translation of the search field.

[0097] Further, based on any of the above embodiments, step 301 includes:

[0098] In response to the content input operation of the user triggered by a preset content input control, the input content generated by the user is obtained.

[0099] In response to a preset triggering operation by the user in the displayed page, the input field is stored in a preset storage path.

[0100] In response to the user triggering the translation control, the input content is obtained from the preset storage path, and the input content is determined as the search field.

[0101] In this embodiment, in response to a user's content input operation triggered by a preset content input control, user-generated input content is obtained. In response to a preset triggering operation by the user within the displayed page, the input field is stored in a preset storage path. Preset triggering operations include, but are not limited to, moving the cursor outside the content input control, exceeding a preset time threshold to initiate content input, or reaching a preset number threshold for search fields.

[0102] Furthermore, the user can implement a translation operation on the search field by triggering the translation control. In response to the user triggering the translation control, the input content is obtained from a preset storage path and is determined as the search field.

[0103] The content search method provided in this embodiment stores the input field to a preset storage path in response to a preset trigger operation of the user within the display page. When the user triggers the translation control, the input content is obtained from the preset storage path and the input content is determined as the search field. This can avoid the loss of user-generated input content while achieving rapid translation of the search field.

[0104] Furthermore, based on any of the above embodiments, translating the search field into a target translation language corresponding to the language information to obtain a translation result includes:

[0105] It is detected according to the language information corresponding to the search field whether the search field includes a preset first language.

[0106] If it is detected that the search field includes a preset first language, the search field is translated into a second language corresponding to the first language.

[0107] If it is detected that the search field does not include the preset first language, the search field is translated into the first language.

[0108] In this embodiment, in order to implement the translation operation of the search field, it is first possible to detect whether the search field includes a preset first language based on the language information corresponding to the search field. The first language can be a language preset by the user, for example, Chinese.

[0109] Furthermore, if it is detected that the search field includes a preset first language, the search field is translated into a second language corresponding to the first language. The correspondence between the first language and the second language may be preset by the user. If it is detected that the search field does not include the preset first language, the search field is translated into the first language.

[0110] For example, the first language may be Chinese and the second language may be English. If it is detected that the search field includes Chinese, the search field may be translated into an English field. If it is detected that the search field does not include Chinese, the search field may be translated into Chinese.

[0111] As an implementable manner, a regular matching calculation may be performed on the search field to identify whether the search field includes the first language, thereby obtaining the language information.

[0112] The content search method provided in this embodiment detects whether the search field includes a preset first language based on the language information corresponding to the search field, and uses different translation methods to perform translation operations based on different detection results, thereby enabling the translation of the search field to be suitable for different application scenarios and improving the accuracy of the search field translation.

[0113] Furthermore, based on any of the above embodiments, translating the search field into a target translation language corresponding to the language information to obtain a translation result includes:

[0114] The language mapping relationship table preset by the user is obtained, wherein the language mapping relationship table includes mapping relationships between multiple languages ​​and translation languages.

[0115] The target translation language corresponding to the language information is determined according to the language mapping relationship table, and the search field is translated according to the target translation language to obtain the translation result.

[0116] In this embodiment, a language mapping table may be pre-set, wherein the language mapping table includes mappings between multiple languages ​​and translation languages. For example, the language mapping table may include: if the search field includes Chinese, then translate to English; if the search field includes English, then translate to Chinese, etc.

[0117] After obtaining the search field and determining the language information corresponding to the search field, in response to a user-triggered translation operation, the preset language mapping table can be obtained. The target translation language corresponding to the language information is determined based on the language mapping table, and the search field is translated according to the target translation language to obtain a translation result.

[0118] The content search method provided in this embodiment presets a language mapping relationship table, thereby enabling accurate translation of the search field based on the language mapping relationship table.

[0119] Figure 5 is a schematic structural diagram of a content search device provided by an embodiment of the present disclosure. As shown in Figure 5, the device includes: an acquisition module 51, a generation module 52, a search module 53, a determination module 54, and a display module 55. Among them, the acquisition module 51 is used to obtain the search information input by the user in response to a search operation triggered by the user. The generation module 52 is used to generate a search field based on the search information. The search module 53 is used to search for data information matching the search field according to the search field to obtain search results. The determination module 54 is used to determine the system language corresponding to the terminal device of the user. The display module 55 is used to display the search results matching the system language in the display interface.

[0120] Furthermore, based on any of the above embodiments, the display module is configured to detect whether the language information corresponding to the search results matches the system language. If not, translate the search results according to the system language to obtain a translation result, and display the translation result on the display interface.

[0121] Furthermore, based on any of the above embodiments, the display module is configured to: when the system language is a preset first language, detect whether the search results include any preset target keyword, and if so, translate fields in the search results other than the target keyword into the first language to obtain the translation result.

[0122] Furthermore, based on any of the above embodiments, the apparatus further includes: a splicing module configured to splice the translation result and the search field using preset target characters to obtain a spliced ​​result; and a display module configured to retrieve, from the spliced ​​result, search results that match the system language and display them according to the system language.

[0123] Furthermore, based on any of the above embodiments, the splicing module is configured to: splice the translation result to the back of the search field using a preset first target character to obtain a spliced ​​result; or splice the translation result to the bottom of the search field using a preset second target character to obtain a spliced ​​result.

[0124] Furthermore, based on any of the above embodiments, the apparatus further includes: an acquisition module configured to, in response to an edit request triggered by the user for the search result, acquire the search result from the spliced ​​result based on the target character in the spliced ​​result; and an editing module configured to edit the search result based on a preset trigger operation of the user for the search result.

[0125] Furthermore, based on any of the above embodiments, the display interface further includes a preset translation control. The device further includes: an acquisition module for acquiring, in response to a user triggering an operation on the preset translation control, a search field generated by the user based on a preset content input control; an identification module for identifying language information corresponding to the search field; a translation module for translating the search field into a target translation language corresponding to the language information to obtain a translation result; and a display module for displaying the search field and the translation result, respectively, on the display interface.

[0126] Furthermore, based on any of the above embodiments, the acquisition module is configured to: obtain the user-generated input content in response to a content input operation triggered by the user based on a preset content input control; store the input field to a preset storage path in response to a preset triggering operation by the user within the displayed page; and obtain the input content from the preset storage path in response to a triggering operation by the user on the translation control, and determine the input content as the search field.

[0127] Furthermore, based on any of the above embodiments, the translation module is configured to: detect whether the search field includes a preset first language based on language information corresponding to the search field; if it is detected that the search field includes the preset first language, translate the search field into a second language corresponding to the first language; and if it is detected that the search field does not include the preset first language, translate the search field into the first language.

[0128] Furthermore, based on any of the above embodiments, the recognition module is configured to: perform a regular matching calculation on the search field, identify whether the search field includes the first language, and obtain the language information.

[0129] Furthermore, based on any of the above embodiments, the translation module is configured to obtain a language mapping table preset by the user, wherein the language mapping table includes mappings between multiple languages ​​and translation languages; determine a target translation language corresponding to the language information based on the language mapping table; and translate the search field based on the target translation language to obtain the translation result.

[0130] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0131] In order to implement the above embodiment, the present disclosure further provides an electronic device, including: a processor and a memory;

[0132] The memory stores computer-executable instructions;

[0133] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the content search method as described in any of the above embodiments.

[0134] FIG6 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in FIG6 , the electronic device 600 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG6 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0135] As shown in Figure 6, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0136] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 6 shows an electronic device 600 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0137] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0138] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0139] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the content search method described in any of the above embodiments is implemented.

[0140] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer program product, including a computer program. When the computer program is executed by a processor, the content search method as described in any of the above embodiments is implemented.

[0141] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0142] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0143] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0144] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0145] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0146] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0147] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0148] In a first aspect, according to one or more embodiments of the present disclosure, a content search method is provided, comprising:

[0149] In response to a search operation triggered by a user, obtaining search information input by the user;

[0150] generating a search field based on the search information;

[0151] Searching for data information matching the search field according to the search field to obtain search results;

[0152] Determining the system language corresponding to the user's terminal device;

[0153] Search results matching the system language are displayed in a display interface.

[0154] According to one or more embodiments of the present disclosure, displaying search results matching the system language in the display interface includes:

[0155] Detecting whether the language information corresponding to the search result matches the system language;

[0156] If not, translating the search result according to the system language to obtain a translation result;

[0157] The translation result is displayed on the display interface.

[0158] According to one or more embodiments of the present disclosure, translating the search results according to the system language to obtain the translation results includes:

[0159] When the system language is a preset first language, detecting whether the search results include any preset target keyword;

[0160] If so, the fields in the search results except the target keyword are translated into the first language to obtain the translation result.

[0161] According to one or more embodiments of the present disclosure, after translating the search results according to the system language and obtaining the translation results, the method further includes:

[0162] Performing a splicing operation on the translation result and the search field using preset target characters to obtain a splicing result;

[0163] The displaying of search results matching the system language in the display interface includes:

[0164] According to the system language, search results matching the system language are obtained from the splicing results and displayed.

[0165] According to one or more embodiments of the present disclosure, the step of performing a splicing operation on the translation result and the search field using preset target characters to obtain a spliced ​​result includes:

[0166] splicing the translation result onto the back of the search field using a preset first target character to obtain a spliced ​​result;

[0167] Alternatively, the translation result is spliced ​​under the search field using a preset second target character to obtain a spliced ​​result.

[0168] According to one or more embodiments of the present disclosure, after performing a splicing operation on the translation result and the search result using preset target characters to obtain the spliced ​​result, the method further includes:

[0169] In response to an edit request triggered by the user for the search result, obtaining a search result in the spliced ​​result according to a target character in the spliced ​​result;

[0170] An editing operation is performed on the search result according to a preset triggering operation of the user for the search result.

[0171] According to one or more embodiments of the present disclosure, the display interface further includes a preset translation control;

[0172] The method further comprises:

[0173] In response to a user triggering an operation on a preset translation control, obtaining a search field generated by the user based on a preset content input control;

[0174] Identifying language information corresponding to the search field;

[0175] translating the search field into a target translation language corresponding to the language information to obtain a translation result;

[0176] The search field and the translation result are displayed separately on a display interface.

[0177] According to one or more embodiments of the present disclosure, in response to a user triggering an operation on a preset translation control, obtaining a search field generated by the user based on a preset content input control includes:

[0178] In response to a content input operation of the user triggered by a preset content input control, obtaining input content generated by the user;

[0179] In response to a preset triggering operation by the user in the displayed page, storing the input field in a preset storage path;

[0180] In response to the user triggering the translation control, the input content is obtained from the preset storage path, and the input content is determined as the search field.

[0181] According to one or more embodiments of the present disclosure, translating the search field into a target translation language corresponding to the language information to obtain a translation result includes:

[0182] detecting, according to language information corresponding to the search field, whether the search field includes a preset first language;

[0183] If it is detected that the search field includes a preset first language, translating the search field into a second language corresponding to the first language;

[0184] If it is detected that the search field does not include the preset first language, the search field is translated into the first language.

[0185] According to one or more embodiments of the present disclosure, identifying the language information corresponding to the search field includes:

[0186] Perform a regular expression matching calculation on the search field to identify whether the search field includes the first language, and obtain the language information.

[0187] According to one or more embodiments of the present disclosure, translating the search field into a target translation language corresponding to the language information to obtain a translation result includes:

[0188] Obtaining the language mapping relationship table preset by the user, wherein the language mapping relationship table includes mapping relationships between multiple languages ​​and translation languages;

[0189] The target translation language corresponding to the language information is determined according to the language mapping relationship table, and the search field is translated according to the target translation language to obtain the translation result.

[0190] In a second aspect, according to one or more embodiments of the present disclosure, a content search device is provided, including:

[0191] An acquisition module, configured to acquire search information input by the user in response to a search operation triggered by the user;

[0192] A generating module, configured to generate a search field based on the search information;

[0193] A search module, configured to search for data information matching the search field according to the search field, and obtain search results;

[0194] A determination module, configured to determine a system language corresponding to the user's terminal device;

[0195] The display module is used to display search results matching the system language in a display interface.

[0196] According to one or more embodiments of the present disclosure, the display module is configured to:

[0197] Detecting whether the language information corresponding to the search result matches the system language;

[0198] If not, translating the search result according to the system language to obtain a translation result;

[0199] The translation result is displayed on the display interface.

[0200] According to one or more embodiments of the present disclosure, the display module is configured to:

[0201] When the system language is a preset first language, detecting whether the search results include any preset target keyword;

[0202] If so, the fields in the search results except the target keyword are translated into the first language to obtain the translation result.

[0203] According to one or more embodiments of the present disclosure, the apparatus further includes:

[0204] a splicing module, configured to perform a splicing operation on the translation result and the search field using preset target characters to obtain a splicing result;

[0205] The display module is used for:

[0206] According to the system language, search results matching the system language are obtained from the splicing results and displayed.

[0207] According to one or more embodiments of the present disclosure, the splicing module is used to:

[0208] splicing the translation result onto the back of the search field using a preset first target character to obtain a spliced ​​result;

[0209] Alternatively, the translation result is spliced ​​under the search field using a preset second target character to obtain a spliced ​​result.

[0210] According to one or more embodiments of the present disclosure, the device further includes: an acquisition module configured to, in response to an edit request triggered by the user for the search result, acquire search results from the spliced ​​result based on target characters in the spliced ​​result; and an editing module configured to edit the search result based on a preset trigger operation of the user for the search result.

[0211] According to one or more embodiments of the present disclosure, the display interface further includes a preset translation control;

[0212] The device further comprises:

[0213] an acquisition module, configured to acquire, in response to a user triggering an operation on a preset translation control, a search field generated by the user based on a preset content input control;

[0214] an identification module, configured to identify language information corresponding to the search field;

[0215] A translation module, configured to translate the search field into a target translation language corresponding to the language information to obtain a translation result;

[0216] The display module is used to display the search field and the translation result on a display interface.

[0217] According to one or more embodiments of the present disclosure, the acquisition module is configured to:

[0218] In response to a content input operation of the user triggered by a preset content input control, obtaining input content generated by the user;

[0219] In response to a preset triggering operation by the user in the displayed page, storing the input field in a preset storage path;

[0220] In response to the user triggering the translation control, the input content is obtained from the preset storage path, and the input content is determined as the search field.

[0221] According to one or more embodiments of the present disclosure, the translation module is configured to:

[0222] detecting, according to language information corresponding to the search field, whether the search field includes a preset first language;

[0223] If it is detected that the search field includes a preset first language, translating the search field into a second language corresponding to the first language;

[0224] If it is detected that the search field does not include the preset first language, the search field is translated into the first language.

[0225] According to one or more embodiments of the present disclosure, the identification module is configured to:

[0226] Perform a regular expression matching calculation on the search field to identify whether the search field includes the first language, and obtain the language information.

[0227] According to one or more embodiments of the present disclosure, the translation module is configured to:

[0228] Obtaining the language mapping relationship table preset by the user, wherein the language mapping relationship table includes mapping relationships between multiple languages ​​and translation languages;

[0229] The target translation language corresponding to the language information is determined according to the language mapping relationship table, and the search field is translated according to the target translation language to obtain the translation result.

[0230] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0231] The memory stores computer-executable instructions;

[0232] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the content search method described in the first aspect and various possible designs of the first aspect.

[0233] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the content search method described in the first aspect and various possible designs of the first aspect is implemented.

[0234] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the content search method as described in the first aspect and various possible designs of the first aspect.

[0235] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0236] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0237] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A content search method, comprising: In response to a search operation triggered by a user, obtaining search information input by the user; generating a search field based on the search information; Searching for data information matching the search field according to the search field to obtain search results; Determining the system language corresponding to the user's terminal device; Search results matching the system language are displayed in a display interface.

2. The method according to claim 1, wherein The displaying of search results matching the system language in the display interface includes: Detecting whether the language information corresponding to the search result matches the system language; If not, translating the search result according to the system language to obtain a translation result; The translation result is displayed on the display interface.

3. The method according to claim 2, wherein: The translating operation on the search result according to the system language to obtain the translation result includes: When the system language is a preset first language, detecting whether the search results include a target keyword; If so, the fields in the search results except the target keyword are translated into the first language to obtain the translation result.

4. The method according to claim 2, wherein: After translating the search results according to the system language to obtain the translation results, the method further includes: Performing a splicing operation on the translation result and the search result using preset target characters to obtain a splicing result; The displaying of search results matching the system language in the display interface includes: The splicing result is displayed in the display interface, wherein the splicing result includes search results matching the system language.

5. The method according to claim 4, wherein The step of performing a splicing operation on the translation result and the search field using preset target characters to obtain a splicing result includes: The translation result is spliced ​​onto the back of the search result by the preset first target character. Get the splicing result; Alternatively, the translation result is spliced ​​below the search result using a preset second target character to obtain a spliced ​​result.

6. The method according to claim 4, wherein: After performing a splicing operation on the translation result and the search result using preset target characters to obtain the splicing result, the method further includes: In response to an edit request triggered by the user for the search result, obtaining a search result in the spliced ​​result according to a target character in the spliced ​​result; An editing operation is performed on the search result according to a preset triggering operation of the user for the search result.

7. The method according to any one of claims 1 to 6, further comprising: In response to a user triggering operation on a preset translation control, obtaining a search field generated by the user based on a preset content input control; wherein, The step of obtaining, in response to a user triggering an operation on a preset translation control, a search field generated by the user based on a preset content input control, includes: In response to the content input operation triggered by the user, obtaining input content generated by the user; In response to a preset triggering operation by the user in the displayed page, storing the input field in a preset storage path; In response to the user triggering the translation control, the input content is obtained from the preset storage path, and the input content is determined as the search field.

8. A content search device, comprising: an acquisition module, configured to acquire search information input by the user in response to a search operation triggered by the user; A generating module configured to generate a search field based on the search information; A search module is configured to search for data information matching the search field according to the search field to obtain search results; a determination module, configured to determine a system language corresponding to the user's terminal device; The display module is configured to display search results matching the system language in a display interface.

9. An electronic device comprising: processor and memory; wherein, The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the content search method according to any one of claims 1 to 7.

10. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the content search method according to any one of claims 1 to 7 is implemented.

11. A computer program product comprising a computer program, wherein When the computer program is executed by a processor, the computer program implements the content search method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Webpage sorting method and system in cross-language search

    CN102654867A

  • Multilanguage mixed retrieval method and system

    CN103488648A

  • Translation method and device and computer readable memory medium

    CN107590137A

  • Displaying method and device of searching result item

    CN108334526A

  • Document automatic translation method

    CN109783826A