[go: up one dir, main page]

CN118585681A - Information search method, device, electronic device, and storage medium - Google Patents

Information search method, device, electronic device, and storage medium Download PDF

Info

Publication number
CN118585681A
CN118585681A CN202410746576.6A CN202410746576A CN118585681A CN 118585681 A CN118585681 A CN 118585681A CN 202410746576 A CN202410746576 A CN 202410746576A CN 118585681 A CN118585681 A CN 118585681A
Authority
CN
China
Prior art keywords
information
index
structured data
data
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410746576.6A
Other languages
Chinese (zh)
Inventor
葛超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Avatr Technology Chongqing Co Ltd
Original Assignee
Avatr Technology Chongqing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Avatr Technology Chongqing Co Ltd filed Critical Avatr Technology Chongqing Co Ltd
Priority to CN202410746576.6A priority Critical patent/CN118585681A/en
Publication of CN118585681A publication Critical patent/CN118585681A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9032Query formulation
    • G06F16/90332Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/243Natural language query formulation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明实施例涉及检索技术领域,公开了一种信息搜索方法、装置及电子设备、存储介质。该方法应用于座舱系统,所述座舱系统包含结构化数据和非结构化数据,包括:获取搜索请求,提取所述搜索请求中的关键词;根据所述关键词,在结构化数据的索引和非结构化数据的索引中进行检索,获取到与所述关键词关联的目标信息;显示所述目标信息。应用本发明的方案,能够解决座舱系统中结构化数据和非结构化数据相互隔离的问题,从而导致无法直观的显示搜索结果,进而降低了座舱系统的使用效果的问题。

The embodiments of the present invention relate to the field of retrieval technology, and disclose an information search method, device, electronic device, and storage medium. The method is applied to a cockpit system, and the cockpit system includes structured data and unstructured data, including: obtaining a search request, extracting keywords in the search request; searching in the index of structured data and the index of unstructured data according to the keywords, and obtaining target information associated with the keywords; and displaying the target information. The solution of the present invention can solve the problem of mutual isolation between structured data and unstructured data in the cockpit system, which makes it impossible to intuitively display search results, thereby reducing the use effect of the cockpit system.

Description

信息搜索方法、装置及电子设备、存储介质Information search method, device, electronic device, and storage medium

技术领域Technical Field

本发明实施例涉及检索技术领域,尤其涉及一种信息搜索方法、装置及电子设备、存储介质。The embodiments of the present invention relate to the field of retrieval technology, and in particular to an information search method, device, electronic device, and storage medium.

背景技术Background Art

数据包括两大类:结构化数据和非结构化数据。实际应用中的数据可能混合了结构化数据和非结构化数据。例如汽车的座舱系统包含结构化数据和非结构化数据,结构化数据构成的结构化文件,例如应用程序(Application,简称APP)的可扩展标记语言(Extensible Markup Language,简称XML)配置文件。非结构化数据构成的非结构化文件,例如图片、视频、文件等。Data includes two categories: structured data and unstructured data. Data in actual applications may be a mixture of structured data and unstructured data. For example, the cockpit system of a car contains structured data and unstructured data. Structured data constitutes structured files, such as the Extensible Markup Language (XML) configuration file of an application (Application, APP for short). Unstructured data constitutes unstructured files, such as pictures, videos, documents, etc.

目前在座舱系统中,结构化数据和非结构化数据还是处于相互隔离的状态。用户想要搜索某个信息时,一般是把结构化数据和非结构化数据分开检索的,这种分开检索的方式,造成了结构化数据和非结构化数据因为技术原因的分离,而导致无法直观的显示搜索结果。Currently, in cockpit systems, structured data and unstructured data are still isolated from each other. When users want to search for certain information, they usually search for structured data and unstructured data separately. This separate search method causes the separation of structured data and unstructured data due to technical reasons, making it impossible to display search results intuitively.

现有技术还无法解决座舱系统中结构化数据和非结构化数据相互隔离的问题,从而导致无法直观的显示搜索结果,进而降低了座舱系统的使用效果。The existing technology is still unable to solve the problem of isolation between structured data and unstructured data in the cockpit system, which results in the inability to intuitively display search results, thereby reducing the use effect of the cockpit system.

发明内容Summary of the invention

本发明提供一种信息搜索方法、装置及电子设备、存储介质,用以解决无法直观的显示搜索结果,进而降低了座舱系统的使用效果的问题。The present invention provides an information search method, device, electronic device and storage medium, which are used to solve the problem that search results cannot be displayed intuitively, thereby reducing the use effect of a cockpit system.

根据本发明实施例的一个方面,提供了一种信息搜索方法,应用于座舱系统,所述座舱系统包含结构化数据和非结构化数据,所述方法包括:According to one aspect of an embodiment of the present invention, there is provided an information search method, which is applied to a cockpit system, wherein the cockpit system includes structured data and unstructured data, and the method comprises:

获取搜索请求,提取所述搜索请求中的关键词;Obtaining a search request, and extracting keywords from the search request;

根据所述关键词,在结构化数据的索引和非结构化数据的索引中进行检索,获取到与所述关键词关联的目标信息;According to the keyword, searching in the index of structured data and the index of unstructured data to obtain target information associated with the keyword;

显示所述目标信息。The target information is displayed.

在一种可选的方式中,所述结构化数据的索引通过以下步骤建立:In an optional manner, the index of the structured data is established by the following steps:

获取所述结构化数据的第一关键信息;其中,所述第一关键信息包含以下一种或多种信息:基础信息、检索关键词、启动入口;Acquire the first key information of the structured data; wherein the first key information includes one or more of the following information: basic information, search keywords, and a start entry;

根据所述第一关键信息,建立所述结构化数据的索引。An index of the structured data is established according to the first key information.

在一种可选的方式中,所述非结构化数据的索引通过以下步骤建立:In an optional manner, the index of the unstructured data is established by the following steps:

获取所述非结构化数据的第二关键信息;Acquiring second key information of the unstructured data;

根据所述第二关键信息,建立所述非结构化数据的索引。An index of the unstructured data is established according to the second key information.

在一种可选的方式中,所述方法还包括:In an optional manner, the method further includes:

存储所建立的所述结构化数据的索引,以及,storing the created index of the structured data, and,

存储所建立的所述非结构化数据的索引。The created index of the unstructured data is stored.

在一种可选的方式中,所述方法还包括:In an optional manner, the method further includes:

检测到座舱系统启用后,从存储中加载所述结构化数据的索引和非结构化数据的索引。After detecting that the cockpit system is enabled, the index of the structured data and the index of the unstructured data are loaded from the storage.

在一种可选的方式中,当目标信息包含多个子信息时,所述显示目标信息包括:In an optional manner, when the target information includes multiple sub-information, the display target information includes:

按照多个所述子信息之间的排序参考信息对多个所述子信息进行排序;其中,所述排序参考信息包含以下一种或多种信息:相关性、评分、用户偏好;Sorting the plurality of sub-information according to the sorting reference information between the plurality of sub-information; wherein the sorting reference information includes one or more of the following information: relevance, rating, user preference;

显示排序后的多个所述子信息。The sorted plurality of sub-information are displayed.

在一种可选的方式中,所述显示所述目标信息后,所述方法还包括:In an optional manner, after displaying the target information, the method further includes:

检测到所述目标信息的选中操作后,获取所述目标信息的来源;After detecting a selection operation of the target information, obtaining a source of the target information;

若所述目标信息来源于目标非结构化数据的索引,且所述目标非结构化数据被用于构建形成非结构化文件,则打开所述非结构化文件;If the target information is derived from an index of target unstructured data, and the target unstructured data is used to construct an unstructured file, then opening the unstructured file;

若所述目标信息来源于目标结构化数据的索引,且所述目标结构化数据被用于构建形成应用程序的配置文件,则启动所述应用程序。If the target information is derived from an index of target structured data, and the target structured data is used to construct a configuration file of an application, the application is started.

根据本发明实施例的另一方面,提供了一种信息搜索装置,应用于座舱系统,所述座舱系统包含结构化数据和非结构化数据,所述装置包括:According to another aspect of an embodiment of the present invention, there is provided an information search device, which is applied to a cockpit system, wherein the cockpit system includes structured data and unstructured data, and the device includes:

获取模块,用于获取搜索请求;An acquisition module, used to acquire search requests;

处理模块,用于提取所述搜索请求中的关键词;A processing module, used for extracting keywords from the search request;

所述获取模块,还用于根据所述关键词,在结构化数据的索引和非结构化数据的索引中进行检索,获取到与所述关键词关联的目标信息;The acquisition module is further used to search the index of structured data and the index of unstructured data according to the keyword to obtain target information associated with the keyword;

显示模块,用于显示所述目标信息。The display module is used to display the target information.

根据本发明实施例的另一方面,提供了一种电子设备,包括存储器,处理器;According to another aspect of an embodiment of the present invention, there is provided an electronic device, including a memory and a processor;

所述存储器存储计算机执行指令;The memory stores computer-executable instructions;

所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如上第一方面和/或第一方面各种可能的实施方式。The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and/or various possible implementations of the first aspect.

根据本发明实施例的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如上第一方面和/或第一方面各种可能的实施方式。According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above first aspect and/or various possible implementations of the first aspect.

根据本发明实施例的另一方面,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上第一方面和/或第一方面各种可能的实施方式。According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, which, when executed by a processor, implements the above first aspect and/or various possible implementations of the first aspect.

本发明实施例提供的该信息搜索方法、装置及电子设备、存储介质,通过建立结构化文件的索引和非结构化先的索引,在搜索目标信息时,在结构化数据的索引和非结构化数据的索引中都进行搜索,可以搜索到与关键词关联的所有信息的技术手段,解决了结构化数据和非结构化数据因为技术原因的分离,而导致无法直观的、全面的显示搜索结果,进而降低了座舱系统使用效果的技术问题,达到了一搜而达的效果。The information search method, device, electronic device, and storage medium provided in the embodiments of the present invention establish an index of structured files and an index of unstructured files. When searching for target information, searches are performed in both the index of structured data and the index of unstructured data. This technical means can search for all information associated with a keyword, solves the technical problem that the separation of structured data and unstructured data due to technical reasons makes it impossible to display search results intuitively and comprehensively, thereby reducing the use effect of the cockpit system, and achieves the effect of "one search to reach the target".

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

附图仅用于示出实施方式,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

图1为本发明提供的信息搜索方法的场景示意图;FIG1 is a schematic diagram of a scenario of an information search method provided by the present invention;

图2为本发明提供的信息搜索方法的流程示意图一;FIG2 is a flow chart of the information search method provided by the present invention;

图3为本发明提供的信息搜索方法的流程示意图二;FIG3 is a second flow chart of the information search method provided by the present invention;

图4为本发明提供的信息搜索装置的结构示意图;FIG4 is a schematic diagram of the structure of an information search device provided by the present invention;

图5为本发明提供的电子设备的结构示意图。FIG5 is a schematic diagram of the structure of an electronic device provided by the present invention.

具体实施方式DETAILED DESCRIPTION

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

首先对本发明涉及的名词进行解释:First, the nouns involved in the present invention are explained:

索引:在关系数据库中,索引是一种单独的、物理的对数据库表中一列或多列的值进行排序的一种存储结构,它是某个表中一列或若干列值的集合和相应的指向表中物理标识这些值的数据页的逻辑指针清单。索引的作用相当于图书的目录,可以根据目录中的页码快速找到所需的内容。Index: In a relational database, an index is a separate, physical storage structure that sorts the values of one or more columns in a database table. It is a collection of values of one or more columns in a table and a corresponding list of logical pointers to the data pages in the table that physically identify these values. The role of an index is equivalent to the catalog of a book, and you can quickly find the required content based on the page numbers in the catalog.

结构化数据:数据包括两大类,结构化数据和非结构化数据。结构化数据一般是指可以使用关系型数据库表示和存储,可以用二维表来逻辑表达实现的数据。结构化数据,简单来说就是数据库。Structured data: Data includes two categories, structured data and unstructured data. Structured data generally refers to data that can be represented and stored using a relational database and can be logically expressed using a two-dimensional table. Structured data, in simple terms, is a database.

非结构化数据:非结构化数据指的是没有固定结构的数据。包括所有格式的办公文档、文本、图片、各类报表、图像信息、音频信息、视频信息等都属于非结构化数据。对于这类数据,我们一般直接整体进行存储,而且一般存储为二进制的数据格式。Unstructured data: Unstructured data refers to data without a fixed structure. This includes office documents of all formats, texts, pictures, various reports, image information, audio information, video information, etc. For this type of data, we generally store it as a whole, and generally store it in binary data format.

图1为本发明提供的信息搜索方法的场景示意图,如图1所示,本发明具体的应用场景是汽车的座舱系统。座舱系统包含结构化数据和非结构化数据,结构化数据构成的结构化文件,例如应用程序(Application,简称APP)的可扩展标记语言(Extensible MarkupLanguage,简称XML)配置文件。非结构化数据构成的非结构化文件,例如图片、视频、文件等。FIG1 is a schematic diagram of a scenario of the information search method provided by the present invention. As shown in FIG1 , the specific application scenario of the present invention is a cockpit system of a car. The cockpit system includes structured data and unstructured data. Structured files composed of structured data, such as an Extensible Markup Language (XML) configuration file of an application (Application, APP for short). Unstructured files composed of unstructured data, such as pictures, videos, documents, etc.

目前在座舱系统中,结构化数据和非结构化数据还是处于相互隔离的状态。用户想要搜索某个信息时,一般是把结构化数据和非结构化数据分开检索的。例如,按照字段检索结构化数据,按照全文检索非结构化数据,检索到的非结构化数据很难和检索到的结构化数据关联起来。也就是说,这种分开检索的方式,造成了结构化数据和非结构化数据因为技术原因的分离,而导致无法直观的、全面的显示搜索结果。Currently, in the cockpit system, structured data and unstructured data are still isolated from each other. When users want to search for certain information, they usually search for structured data and unstructured data separately. For example, when searching for structured data by field and searching for unstructured data by full text, it is difficult to associate the retrieved unstructured data with the retrieved structured data. In other words, this separate search method has caused the separation of structured data and unstructured data due to technical reasons, making it impossible to display search results intuitively and comprehensively.

结合上述的场景可知,现有技术还无法解决座舱系统中结构化数据和非结构化数据相互隔离的问题,从而导致无法直观的、全面的显示搜索结果,进而降低了座舱系统的使用效果。In combination with the above scenarios, it can be seen that the existing technology is still unable to solve the problem of isolation between structured data and unstructured data in the cockpit system, which makes it impossible to display search results intuitively and comprehensively, thereby reducing the use effect of the cockpit system.

本发明提供的信息搜索方法,通过建立结构化文件的索引和非结构化先的索引,在搜索目标信息时,在结构化数据的索引和非结构化数据的索引中都进行搜索,可以搜索到与关键词关联的所有信息的技术手段,解决了结构化数据和非结构化数据因为技术原因的分离,而导致无法直观的、全面的显示搜索结果,进而降低了座舱系统使用效果的技术问题。The information search method provided by the present invention establishes an index of structured files and an index of unstructured files. When searching for target information, searches are performed in both the index of structured data and the index of unstructured data. This technical means can search for all information associated with keywords, and solves the technical problem that the separation of structured data and unstructured data due to technical reasons makes it impossible to display search results intuitively and comprehensively, thereby reducing the use effect of the cockpit system.

下面以具体地实施例对本发明的技术方案以及本发明的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本发明的实施例进行描述。The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

图2为本发明提供的信息搜索方法的流程示意图一。FIG. 2 is a flow chart of the information search method provided by the present invention.

该信息搜索方法应用于座舱系统,该座舱系统包含结构化数据和非结构化数据。The information search method is applied to a cockpit system, which contains structured data and unstructured data.

如图2所示,该方法包括:As shown in FIG. 2 , the method includes:

S201、获取搜索请求,提取该搜索请求中的关键词。S201: Obtain a search request, and extract keywords from the search request.

该搜索请求可以理解为是对用户操作转换后形成的文本信息。The search request can be understood as text information converted from user operations.

该搜索请求例如搜索A音乐有关的各种信息,提取该搜索请求中的关键词后得到的关键词包含“搜索”和“A音乐”。The search request searches for various information related to music A, for example. After extracting the keywords in the search request, the keywords obtained include "search" and "music A".

该搜索请求可以是在人机交互界面上显示搜索界面,并检测到用户操作搜索界面后生成的。例如,显示搜索界面,在搜索界面显示拼音键盘和搜索栏,用户通过操作拼音键盘可以在搜索栏中输入想要搜索的信息。该搜索界面还可以显示确认按钮和取消按钮,用户确认搜索栏中的信息无误后可以选中确认按钮,对应的,生成搜索请求。用户确认搜索栏中的信息有误时可以选中取消按钮。The search request may be generated after a search interface is displayed on the human-computer interaction interface and a user is detected to operate the search interface. For example, a search interface is displayed, and a pinyin keyboard and a search bar are displayed on the search interface. The user can enter the information to be searched in the search bar by operating the pinyin keyboard. The search interface may also display a confirmation button and a cancel button. The user may select the confirmation button after confirming that the information in the search bar is correct, and accordingly, a search request is generated. The user may select the cancel button when confirming that the information in the search bar is incorrect.

该搜索请求也可以是语音输入的。例如,用户通过语音发出搜索某信息的指令,座舱系统将语音信息转换为文本信息后可以得到该搜索请求。The search request may also be input by voice. For example, the user issues a command to search for certain information by voice, and the cockpit system converts the voice information into text information to obtain the search request.

该搜索请求还可以是基于其他方式生成的,本实施例不做限定。The search request may also be generated based on other methods, which is not limited in this embodiment.

S202、根据该关键词,在结构化数据的索引和非结构化数据的索引中进行检索,获取到与该关键词关联的目标信息。S202: Search the index of structured data and the index of unstructured data according to the keyword to obtain target information associated with the keyword.

结构化数据的索引和非结构化数据的索引是在步骤S201之前就建立的。The index of structured data and the index of unstructured data are established before step S201.

该结构化数据的索引可以是基于该结构化数据的第一关键信息建立的。在建立索引时,该结构化数据的第一关键信息被整合到索引中,该结构化数据的索引包含了如何快速检索到目标信息的信息。The index of the structured data may be established based on the first key information of the structured data. When establishing the index, the first key information of the structured data is integrated into the index, and the index of the structured data includes information on how to quickly retrieve the target information.

该第一关键信息包含以下一种或多种信息:基础信息、检索关键词、启动入口。该基础信息例如包含APP的名称、描述、版本等。该检索关键词例如包含用户可能用来搜索该APP的词汇。该启动入口例如包含如何启动或打开该APP的指令。The first key information includes one or more of the following information: basic information, search keywords, and a startup entry. The basic information includes, for example, the name, description, and version of the APP. The search keywords include, for example, words that a user may use to search for the APP. The startup entry includes, for example, instructions on how to start or open the APP.

该非结构化数据的索引可以是基于该非结构化数据的第二关键信息建立的。在建立索引时,该非结构化数据的第二关键信息被整合到索引中,该非结构化数据的索引包含了如何快速检索到目标信息的信息。The index of the unstructured data may be established based on the second key information of the unstructured data. When establishing the index, the second key information of the unstructured data is integrated into the index, and the index of the unstructured data includes information on how to quickly retrieve the target information.

该非结构化数据为文本时,该第二关键信息例如文本中的关键词。该非结构化数据为图片或视频时,该第二关键信息可以是标签或者关键词,例如图片中物体或场景的标签或关键词等。When the unstructured data is text, the second key information may be a keyword in the text. When the unstructured data is a picture or video, the second key information may be a tag or a keyword, such as a tag or a keyword of an object or scene in the picture.

该结构化数据的索引可以使用Lucene或其相关框架(如Elasticsearch)建立。Lucene是一个高性能、可扩展的信息检索(Information Retrieval,简称IR)信息库,提供了全文搜索、索引和数据分析的功能。The index of the structured data can be established using Lucene or its related framework (such as Elasticsearch). Lucene is a high-performance, scalable information retrieval (IR) information library that provides full-text search, indexing and data analysis functions.

步骤S201提取到关键词后,想更全面得获取与该关键词关联的目标信息,则根据该关键词在该结构化数据的索引中进行检索,以及,根据该关键词在该非结构化数据的索引中进行检索。After the keyword is extracted in step S201, if one wants to obtain target information associated with the keyword more comprehensively, a search is performed in the index of the structured data according to the keyword, and a search is performed in the index of the unstructured data according to the keyword.

根据该关键词在该结构化数据的索引和该非结构化数据的索引中进行检索,可以理解为将该关键词与索引中的关键信息进行匹配。例如该关键词包含“A音乐”,该结构化数据的索引包含“A音乐”,则基于该结构化数据的索引获取到与该关键词关联的目标信息。若该结构化数据的索引和该非结构化数据的索引均包含“A音乐”,则基于该结构化数据的索引和该非结构化数据的索引获取到与该关键词关联的目标信息。Searching the index of the structured data and the index of the unstructured data according to the keyword can be understood as matching the keyword with the key information in the index. For example, if the keyword contains "A music" and the index of the structured data contains "A music", the target information associated with the keyword is obtained based on the index of the structured data. If both the index of the structured data and the index of the unstructured data contain "A music", the target information associated with the keyword is obtained based on the index of the structured data and the index of the unstructured data.

获取到的与该关键词关联的目标信息,该目标信息包含与该关键词关联的所有信息。例如该关键词是“A音乐”,该目标信息可以包含A音乐的歌词、A音乐的播放来源、A音乐的专辑图像、A音乐的音乐短片(Music Video,简称MV)等。The target information associated with the keyword is obtained, and the target information includes all information associated with the keyword. For example, if the keyword is "A music", the target information may include the lyrics of A music, the source of A music, the album image of A music, the music video (MV) of A music, etc.

S203,显示该目标信息。S203, display the target information.

可以在人机交互界面、抬头显示、主驾驶屏、副驾驶屏等显示该目标信息。The target information can be displayed on the human-computer interaction interface, head-up display, main driving screen, co-pilot screen, etc.

此时,所显示的该目标信息是与该搜索请求中的关键词关联的所有信息,更全面,更直观。At this time, the target information displayed is all information associated with the keywords in the search request, which is more comprehensive and intuitive.

综上,本实施例提供的该信息搜索方法,通过建立结构化文件的索引和非结构化先的索引,在搜索目标信息时,在结构化数据的索引和非结构化数据的索引中都进行搜索,可以搜索到与关键词关联的所有信息的技术手段,解决了结构化数据和非结构化数据因为技术原因的分离,而导致无法直观的、全面的显示搜索结果,进而降低了座舱系统使用效果的技术问题,达到了一搜而达的效果。In summary, the information search method provided in this embodiment establishes an index of structured files and an index of unstructured files. When searching for target information, searches are performed in both the index of structured data and the index of unstructured data. This technical means can search for all information associated with keywords. This solves the technical problem that the separation of structured data and unstructured data due to technical reasons makes it impossible to display search results intuitively and comprehensively, thereby reducing the use effect of the cockpit system, and achieves the effect of reaching the target with one search.

图3为本发明提供的信息搜索方法的流程示意图二,如图3所示,本实施例在图2实施例的基础上,对该信息搜索方法进行详细说明,该方法包括:FIG3 is a second flow chart of the information search method provided by the present invention. As shown in FIG3 , this embodiment describes the information search method in detail based on the embodiment of FIG2 . The method includes:

S301、获取该结构化数据的第一关键信息,根据该第一关键信息,建立该结构化数据的索引。S301: Acquire first key information of the structured data, and establish an index of the structured data according to the first key information.

本步骤用于说明该结构化数据的索引的建立过程。This step is used to illustrate the process of establishing the index of the structured data.

该第一关键信息包含以下一种或多种信息:基础信息、检索关键词、启动入口。该基础信息例如包含APP的名称、描述、版本等。该检索关键词例如包含用户可能用来搜索该APP的词汇。该启动入口例如包含如何启动或打开该APP的指令。The first key information includes one or more of the following information: basic information, search keywords, and a startup entry. The basic information includes, for example, the name, description, and version of the APP. The search keywords include, for example, words that a user may use to search for the APP. The startup entry includes, for example, instructions on how to start or open the APP.

在建立索引时,该结构化数据的第一关键信息被整合到索引中,该结构化数据的索引包含了如何快速检索到目标信息的信息。When creating an index, the first key information of the structured data is integrated into the index, and the index of the structured data includes information on how to quickly retrieve the target information.

该结构化数据的索引可以使用Lucene或其相关框架(如Elasticsearch)建立。Lucene是一个高性能、可扩展的信息检索(Information Retrieval,简称IR)信息库,提供了全文搜索、索引和数据分析的功能。The index of the structured data can be established using Lucene or its related framework (such as Elasticsearch). Lucene is a high-performance, scalable information retrieval (IR) information library that provides full-text search, indexing and data analysis functions.

S302、获取该非结构化数据的第二关键信息,根据该第二关键信息,建立该非结构化数据的索引。S302: Acquire second key information of the unstructured data, and establish an index of the unstructured data according to the second key information.

本步骤用于说明该非结构数据的索引的建立过程。This step is used to illustrate the process of establishing the index of the unstructured data.

在建立索引时,该非结构化数据的第二关键信息被整合到索引中,该非结构化数据的索引包含了如何快速检索到目标信息的信息。When creating an index, the second key information of the unstructured data is integrated into the index, and the index of the unstructured data includes information on how to quickly retrieve the target information.

该非结构化数据为文本时,该第二关键信息例如文本中的关键词。该非结构化数据为图片或视频时,该第二关键信息可以是标签或者关键词,例如图片中物体或场景的标签或关键词等。When the unstructured data is text, the second key information may be a keyword in the text. When the unstructured data is a picture or video, the second key information may be a tag or a keyword, such as a tag or a keyword of an object or scene in the picture.

该非结构化数据的索引可以使用Lucene或其相关框架(如Elasticsearch)建立。Lucene是一个高性能、可扩展的信息检索(Information Retrieval,简称IR)信息库,提供了全文搜索、索引和数据分析的功能。The index of the unstructured data can be established using Lucene or its related framework (such as Elasticsearch). Lucene is a high-performance, scalable information retrieval (IR) information library that provides full-text search, indexing and data analysis functions.

步骤S301和步骤S302的执行顺序本实施例不做限定。The execution order of step S301 and step S302 is not limited in this embodiment.

S303、获取搜索请求,提取该搜索请求中的关键词。S303: Obtain a search request, and extract keywords from the search request.

S304、根据该关键词,在结构化数据的索引和非结构化数据的索引中进行检索,获取到与该关键词关联的目标信息。S304: Search the index of structured data and the index of unstructured data according to the keyword to obtain target information associated with the keyword.

S305、显示该目标信息。S305: Display the target information.

关于步骤S303至步骤S305的相关描述可以参考步骤S201至步骤S202的相关描述,此处不再赘述。For the related descriptions of step S303 to step S305, reference may be made to the related descriptions of step S201 to step S202, which will not be repeated here.

综上,本实施例提供的信息搜索方法,在获取搜索请求前,先建立结构化数据的索引和非结构化数据的索引。如此,在搜索目标信息时,在结构化数据的索引和非结构化数据的索引中都进行搜索,可以搜索到与关键词关联的所有信息的技术手段,解决了结构化数据和非结构化数据因为技术原因的分离,而导致无法直观的、全面的显示搜索结果,进而降低了座舱系统使用效果的技术问题,达到了一搜而达的效果。In summary, the information search method provided in this embodiment first establishes an index of structured data and an index of unstructured data before obtaining a search request. In this way, when searching for target information, a search is performed in both the index of structured data and the index of unstructured data, and a technical means of searching for all information associated with a keyword can be used to solve the technical problem that the separation of structured data and unstructured data due to technical reasons cannot intuitively and comprehensively display search results, thereby reducing the use effect of the cockpit system, and achieves the effect of one search.

一些实施例中,该信息搜索方法还包括:In some embodiments, the information search method further includes:

存储所建立的该结构化数据的索引,以及,存储所建立的该非结构化数据的索引。The created index of the structured data is stored, and the created index of the unstructured data is stored.

在建立该结构化数据的索引后,将该结构化数据的索引存储在持久化存储介质(如硬盘)上,以便在座舱系统重启后可以直接使用该结构化数据的索引,不需要再重新建立该结构化数据的索引,减少资源浪费。After establishing the index of the structured data, the index of the structured data is stored on a persistent storage medium (such as a hard disk) so that the index of the structured data can be directly used after the cockpit system is restarted, without the need to re-establish the index of the structured data, thereby reducing resource waste.

在建立该非结构化数据的索引后,将该非结构化数据的索引存储在持久化存储介质(如硬盘)上,以便在座舱系统重启后可以直接使用该非结构化数据的索引,不需要再重新建立该非结构化数据的索引,减少资源浪费。After establishing the index of the unstructured data, the index of the unstructured data is stored on a persistent storage medium (such as a hard disk) so that the index of the unstructured data can be used directly after the cockpit system is restarted. There is no need to re-establish the index of the unstructured data, thereby reducing resource waste.

一些实施例中,该信息搜索方法还包括:In some embodiments, the information search method further includes:

检测到座舱系统启用后,从存储中加载该结构化数据的索引和非结构化数据的索引。After detecting that the cockpit system is enabled, the index of the structured data and the index of the unstructured data are loaded from the storage.

座舱系统启用可以理解为座舱系统重启。The activation of the cockpit system can be understood as the restart of the cockpit system.

座舱系统启用后,可以直接从存储中加载该结构化数据的索引和该非结构化数据的索引,而不需要再建立索引。如此,在用户想要搜索信息时可以更快速得搜索到该目标信息,提升座舱系统的使用效果。After the cockpit system is enabled, the index of the structured data and the index of the unstructured data can be directly loaded from the storage without the need to create an index. In this way, when the user wants to search for information, the target information can be searched more quickly, improving the use effect of the cockpit system.

一些实施例中,当该目标信息包含多个子信息时,步骤S203或步骤S305包括:In some embodiments, when the target information includes multiple sub-information, step S203 or step S305 includes:

步骤一,按照多个该子信息之间的排序参考信息对多个该子信息进行排序。Step 1: sort the multiple sub-information according to the sorting reference information between the multiple sub-information.

例如该关键词是“A音乐”,搜索得到的该目标信息包含A音乐的歌词、A音乐的播放来源、A音乐的专辑图像、A音乐的MV等。A音乐的歌词就是一个子信息,A音乐的播放来源是另一个子信息,该目标信息共包含4个子信息。For example, if the keyword is "A music", the target information obtained by the search includes lyrics of A music, playback source of A music, album image of A music, MV of A music, etc. Lyrics of A music is one sub-information, and playback source of A music is another sub-information. The target information includes 4 sub-information in total.

当该目标信息包含多个子信息时,所显示的是多个子信息。为了提升座舱系统的使用效果,提升用户满意度,可以按照一定的排序显示多个子信息。该排序参考信息即指的是对多个子信息进行排序时可以用来参考的信息。When the target information contains multiple sub-information, the multiple sub-information is displayed. In order to improve the use effect of the cockpit system and improve user satisfaction, the multiple sub-information can be displayed in a certain order. The order reference information refers to the information that can be used as a reference when ordering the multiple sub-information.

该排序参考信息包含以下一种或多种信息:相关性、评分、用户偏好。The ranking reference information includes one or more of the following information: relevance, rating, and user preference.

其中,相关性可以包含子信息与该关键词之间的相关性,还可以包含多个子信息之间的相关性。The correlation may include the correlation between the sub-information and the keyword, and may also include the correlation between multiple sub-information.

当相关性仅包含子信息与该关键词之间的相关性时,按照子信息与该关键词之间的相关性进行排序。例如,A音乐的专辑图像与该关键词之间的相关性最高,则将A音乐的专辑图像排序至第一。A音乐的播放来源与该关键词之间的相关性最低,则将A音乐的播放来源排序至最后。When the correlation only includes the correlation between the sub-information and the keyword, the sub-information is sorted according to the correlation between the sub-information and the keyword. For example, if the correlation between the album image of music A and the keyword is the highest, the album image of music A is sorted first. If the correlation between the playback source of music A and the keyword is the lowest, the playback source of music A is sorted last.

当相关性仅包含多个子信息之间的相关性时,按照子信息之间的相关性排序。例如A音乐的专辑图像和A音乐的MV之间的相关性更高,A音乐的播放来源与A音乐的专辑图像之间的相关性更低,则将A音乐的专辑图像和A音乐的MV分别排序至第一和第二,将A音乐的播放来源排序至第三。When the correlation only includes the correlation between multiple sub-information, the sub-information is sorted according to the correlation between them. For example, if the correlation between the album image of music A and the MV of music A is higher, and the correlation between the playback source of music A and the album image of music A is lower, the album image of music A and the MV of music A are sorted to the first and second place respectively, and the playback source of music A is sorted to the third place.

当相关性包含子信息与该关键词之间的相关性,还包含多个子信息之间的相关性时,可以设置权重系数计算出一个相关性,再按照计算出的相关性排序多个子信息。例如,A音乐的专辑图像与该关键词之间的相关性是0.8,A音乐的专辑图像与A音乐的MV之间的相关性是0.6,计算出A音乐的专辑图像的相关性=a×0.8+b×0.6,其中a和b代表设定的权重系数。When the correlation includes the correlation between the sub-information and the keyword, and also includes the correlation between multiple sub-information, a weight coefficient can be set to calculate a correlation, and then the multiple sub-information can be sorted according to the calculated correlation. For example, the correlation between the album image of music A and the keyword is 0.8, and the correlation between the album image of music A and the MV of music A is 0.6. The correlation of the album image of music A is calculated to be a×0.8+b×0.6, where a and b represent the set weight coefficients.

其中,评分可以理解为用户对于子信息的评价分数。子信息的评分可以通过统计用户对子信息的历史评分获取到。例如,某子信息在以往显示过3次,用户的评分分别为80分、70分和50分,通过统计获取到的子信息的此次评分可以是最后一次评分(50分),也可以是求平均得到的评分(67分),还可以是其他计算方式得到的评分,本实施例不做限定。The rating can be understood as the user's evaluation score for the sub-information. The rating of the sub-information can be obtained by counting the historical ratings of the sub-information by the user. For example, a sub-information has been displayed 3 times in the past, and the user's ratings are 80 points, 70 points, and 50 points respectively. The current rating of the sub-information obtained by statistics can be the last rating (50 points), or the average rating (67 points), or the rating obtained by other calculation methods, which is not limited in this embodiment.

其中,用户偏好可以理解为用户对于自信息的偏好度,可以用百分数的概念表述。例如用户对某子信息的偏好度是90%,则该某子信息的用户偏好是90%。子信息的用户偏好可以通过统计用户对子信息的历史偏好度获取到。例如,某子信息在以往显示过3次时,用户的偏好度分别为90%、90%、80%,通过统计获取到的子信息的用户偏好可以是最后一次偏好度(80%),也可以是求平均得到的偏好度(87%),还可以是其他计算方式得到的评分,本实施例不做限定。Among them, user preference can be understood as the user's preference for self-information, which can be expressed in percentage. For example, if the user's preference for a certain sub-information is 90%, then the user preference for the sub-information is 90%. The user preference of the sub-information can be obtained by counting the user's historical preference for the sub-information. For example, when a certain sub-information has been displayed three times in the past, the user's preference was 90%, 90%, and 80% respectively. The user preference of the sub-information obtained by statistics can be the last preference (80%), or the preference obtained by averaging (87%), or a score obtained by other calculation methods, which is not limited in this embodiment.

步骤二,显示排序后的多个该子信息。Step 2: Display the sorted sub-information.

此时所显示的多个该子信息,更有序、更美观和更直接。The multiple sub-information displayed at this time is more orderly, more beautiful and more direct.

综上,本实施例提供的方法,当该目标信息包含多个该子信息时,有序得显示多个该子信息,从而使得用户看到更有序、更直观的多个该子信息,提升了用户对于座舱系统的使用体验。In summary, the method provided in this embodiment displays multiple sub-information in order when the target information contains multiple sub-information, so that the user can see more orderly and intuitive multiple sub-information, thereby improving the user's experience of using the cockpit system.

一些实施例中,显示该目标信息后,该信息搜索方法还包括:In some embodiments, after displaying the target information, the information search method further includes:

步骤一,检测到该目标信息的选中操作后,获取该目标信息的来源。Step 1: After detecting the selection operation of the target information, the source of the target information is obtained.

在人机交互界面显示该目标信息时,该选中操作可以是用户基于人机交互界面选中该目标信息。When the target information is displayed on the human-computer interaction interface, the selection operation may be that the user selects the target information based on the human-computer interaction interface.

用户也可以通过语音交互的方式选中该目标信息,例如目标信息包含A音乐的专辑图像、A音乐的MV,用户发出语音指示“打开图像”,则表示A音乐的专辑图像被选中。The user may also select the target information through voice interaction. For example, if the target information includes the album image of music A and the MV of music A, and the user issues a voice instruction "open the image", the album image of music A is selected.

如上实施例所描述的,该目标信息包含多个子信息。用户选中的可以是其中一个子信息,对应的检测到一个子信息的选中操作。用户选中的也可以是其中多个子信息,对应的检测到多个子信息的选中操作。As described in the above embodiment, the target information includes multiple sub-information. The user may select one of the sub-information, and a selection operation of one sub-information is detected accordingly. The user may also select multiple sub-information, and a selection operation of multiple sub-information is detected accordingly.

检测到选中操作后,获取该目标信息的来源。也可以理解为,获取选中的子信息的来源。来源包含结构化数据的索引和非结构化数据的索引。After the selection operation is detected, the source of the target information is obtained. It can also be understood as obtaining the source of the selected sub-information. The source includes the index of structured data and the index of unstructured data.

步骤二,若该目标信息来源于目标非结构化数据的索引,且该目标非结构化数据被用于构建形成非结构化文件,则打开该非结构化文件。Step 2: If the target information comes from the index of the target unstructured data, and the target unstructured data is used to construct an unstructured file, then the unstructured file is opened.

目标非结构化数据,指的是该目标信息直接来源的非结构化数据。例如A音乐的专辑图像来源于图片的索引,目标非结构化数据指的是图片。若图片是被用于构建形成图片文件的,则检测到选中操作后,需打开图片文件。The target unstructured data refers to the unstructured data that is the direct source of the target information. For example, the album image of music A comes from the index of pictures, and the target unstructured data refers to pictures. If the picture is used to construct a picture file, the picture file needs to be opened after the selection operation is detected.

步骤三,若该目标信息来源于目标结构化数据的索引,且该目标结构化数据被用于构建形成应用程序的配置文件,则启动该应用程序。Step three: if the target information is derived from the index of the target structured data, and the target structured data is used to construct a configuration file of an application, the application is started.

目标结构化数据,指的是该目标信息直接来源的结构化数据。例如A音乐的播放来源来源于XML的索引。若XML被用于构建形成APP的配置文件,则启动该APP。The target structured data refers to the structured data directly sourced from the target information. For example, the source of music A is from the XML index. If XML is used to construct the configuration file of an APP, the APP is started.

本实施例提供的方法可以帮助用户实现选中即到达,即选中目标信息或子信息时,就开启对应的APP或打开对应的文件,为用户提供更多的选择。例如打开APP后用户可以选择播放A音乐。打开A的专辑图像后用户可以选择下载图像等。本实施例提供的方法可以更进一步提升用户使用座舱系统的满意度。The method provided in this embodiment can help users achieve "select and reach" mode, that is, when selecting target information or sub-information, the corresponding APP or file will be opened, providing users with more choices. For example, after opening the APP, the user can choose to play music A. After opening the album image of A, the user can choose to download the image, etc. The method provided in this embodiment can further improve the user's satisfaction with the cockpit system.

图4为本发明提供的信息搜索装置的结构示意图,如图4所示,本实施例提供的信息搜索装置40包括:FIG4 is a schematic diagram of the structure of an information search device provided by the present invention. As shown in FIG4 , the information search device 40 provided by this embodiment includes:

获取模块401,用于获取搜索请求。The acquisition module 401 is used to acquire a search request.

处理模块402,用于提取该搜索请求中的关键词。The processing module 402 is used to extract keywords in the search request.

该获取模块401,还用于根据该关键词,在结构化数据的索引和非结构化数据的索引中进行检索,获取到与该关键词关联的目标信息。The acquisition module 401 is further configured to search the index of structured data and the index of unstructured data according to the keyword to acquire target information associated with the keyword.

显示模块403,用于显示该目标信息。The display module 403 is used to display the target information.

在一种可选的方式中,该结构化数据的索引通过以下步骤建立:In an optional manner, the index of the structured data is established by the following steps:

获取该结构化数据的第一关键信息;其中,该第一关键信息包含以下一种或多种信息:基础信息、检索关键词、启动入口;Acquire the first key information of the structured data; wherein the first key information includes one or more of the following information: basic information, search keywords, and a start entry;

根据该第一关键信息,建立该结构化数据的索引。An index of the structured data is established according to the first key information.

在一种可选的方式中,该非结构化数据的索引通过以下步骤建立:In an optional manner, the index of the unstructured data is established by the following steps:

获取该非结构化数据的第二关键信息;Obtaining second key information of the unstructured data;

根据该第二关键信息,建立该非结构化数据的索引。An index of the unstructured data is established according to the second key information.

在一种可选的方式中,还包括存储模块404,用于存储所建立的该结构化数据的索引,以及,存储所建立的该非结构化数据的索引。In an optional manner, a storage module 404 is further included, which is used to store the established index of the structured data and the established index of the unstructured data.

在一种可选的方式中,该处理模块402,还用于检测到座舱系统启用后,从存储中加载该结构化数据的索引和非结构化数据的索引。In an optional manner, the processing module 402 is further configured to load the index of the structured data and the index of the unstructured data from the storage after detecting that the cockpit system is enabled.

在一种可选的方式中,当目标信息包含多个子信息时,该显示模块403具体用于按照多个该子信息之间的排序参考信息对多个该子信息进行排序;其中,该排序参考信息包含以下一种或多种信息:相关性、评分、用户偏好;显示排序后的多个该子信息。In an optional manner, when the target information contains multiple sub-information, the display module 403 is specifically used to sort the multiple sub-information according to sorting reference information between the multiple sub-information; wherein the sorting reference information includes one or more of the following information: relevance, score, user preference; and display the sorted multiple sub-information.

在一种可选的方式中,该处理模块402还用于检测到该目标信息的选中操作后,获取该目标信息的来源;若该目标信息来源于目标非结构化数据的索引,且该目标非结构化数据被用于构建形成非结构化文件,则打开该非结构化文件;若该目标信息来源于目标结构化数据的索引,且该目标结构化数据被用于构建形成应用程序的配置文件,则启动该应用程序。In an optional manner, the processing module 402 is also used to obtain the source of the target information after detecting the selection operation of the target information; if the target information comes from the index of the target unstructured data, and the target unstructured data is used to construct an unstructured file, then the unstructured file is opened; if the target information comes from the index of the target structured data, and the target structured data is used to construct a configuration file of an application, then the application is started.

本发明实施例提供的信息搜索装置,可以执行上述方法实施例中的信息搜索方法,其实现原理和技术效果类似,在此不再赘述。需要说明的是,上述图4所示的各模块的划分仅是一种示意,本发明对各模块的划分,以及,各模块的命名并不进行限定。The information search device provided in the embodiment of the present invention can execute the information search method in the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here. It should be noted that the division of each module shown in Figure 4 is only a schematic, and the present invention does not limit the division of each module and the naming of each module.

如图5所示,该电子设备可以包括:处理器(processor)502、通信接口(Communications Interface)504、存储器(memory)506、以及通信总线508。As shown in FIG. 5 , the electronic device may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .

其中:处理器502、通信接口504、以及存储器506通过通信总线508完成相互间的通信。通信接口504,用于与其它设备比如客户端或其它服务器等的网元通信。处理器502,用于执行程序510,具体可以执行上述用于针对车载控制器的处理方法实施例中的相关步骤。The processor 502, the communication interface 504, and the memory 506 communicate with each other via the communication bus 508. The communication interface 504 is used to communicate with other devices such as a client or other server network elements. The processor 502 is used to execute the program 510, which can specifically execute the relevant steps in the above-mentioned processing method embodiment for the vehicle controller.

具体地,程序510可以包括程序代码,该程序代码包括计算机可执行指令。Specifically, the program 510 may include program code including computer executable instructions.

处理器502可能是中央处理器CPU,或者是特定集成电路ASIC(ApplicationSpecific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。电子设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

存储器506,用于存放程序510。存储器506可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

程序510具体可以被处理器502调用使电子设备执行以下操作:The program 510 may be specifically called by the processor 502 to enable the electronic device to perform the following operations:

获取搜索请求,提取该搜索请求中的关键词;Obtain a search request and extract keywords from the search request;

根据该关键词,在结构化数据的索引和非结构化数据的索引中进行检索,获取到与该关键词关联的目标信息;According to the keyword, search in the index of structured data and the index of unstructured data to obtain target information associated with the keyword;

显示该目标信息。Displays the target information.

在一种可选的方式中,该程序510被处理器502调用使电子设备执行以下操作:In an optional manner, the program 510 is called by the processor 502 to enable the electronic device to perform the following operations:

获取该结构化数据的第一关键信息;其中,该第一关键信息包含以下一种或多种信息:基础信息、检索关键词、启动入口;Acquire the first key information of the structured data; wherein the first key information includes one or more of the following information: basic information, search keywords, and a start entry;

根据该第一关键信息,建立该结构化数据的索引。An index of the structured data is established according to the first key information.

在一种可选的方式中,该非结构化数据的索引通过以下步骤建立:In an optional manner, the index of the unstructured data is established by the following steps:

获取该非结构化数据的第二关键信息;Obtaining second key information of the unstructured data;

根据该第二关键信息,建立该非结构化数据的索引。An index of the unstructured data is established according to the second key information.

在一种可选的方式中,该程序510被处理器502调用使电子设备执行以下操作:In an optional manner, the program 510 is called by the processor 502 to enable the electronic device to perform the following operations:

存储所建立的该结构化数据的索引,以及,storing the index of the structured data created, and,

存储所建立的该非结构化数据的索引。The created index of the unstructured data is stored.

在一种可选的方式中,该程序510被处理器502调用使电子设备执行以下操作:In an optional manner, the program 510 is called by the processor 502 to enable the electronic device to perform the following operations:

检测到座舱系统启用后,从存储中加载该结构化数据的索引和非结构化数据的索引。After detecting that the cockpit system is enabled, the index of the structured data and the index of the unstructured data are loaded from the storage.

在一种可选的方式中,该程序510被处理器502调用使电子设备执行以下操作:In an optional manner, the program 510 is called by the processor 502 to enable the electronic device to perform the following operations:

按照多个该子信息之间的排序参考信息对多个该子信息进行排序;其中,该排序参考信息包含以下一种或多种信息:相关性、评分、用户偏好;Sorting the plurality of sub-information according to the sorting reference information between the plurality of sub-information; wherein the sorting reference information includes one or more of the following information: relevance, rating, user preference;

显示排序后的多个该子信息。Display the sorted sub-information.

在一种可选的方式中,该显示该目标信息后,该程序510被处理器502调用使电子设备执行以下操作:In an optional manner, after the target information is displayed, the program 510 is called by the processor 502 to enable the electronic device to perform the following operations:

检测到该目标信息的选中操作后,获取该目标信息的来源;After detecting the selection operation of the target information, obtaining the source of the target information;

若该目标信息来源于目标非结构化数据的索引,且该目标非结构化数据被用于构建形成非结构化文件,则打开该非结构化文件;If the target information is derived from an index of target unstructured data, and the target unstructured data is used to construct an unstructured file, then the unstructured file is opened;

若该目标信息来源于目标结构化数据的索引,且该目标结构化数据被用于构建形成应用程序的配置文件,则启动该应用程序。If the target information is derived from an index of target structured data, and the target structured data is used to construct a configuration file of an application, the application is started.

本实施例提供一种电子设备,通过建立结构化文件的索引和非结构化先的索引,在搜索目标信息时,在结构化数据的索引和非结构化数据的索引中都进行搜索,可以搜索到与关键词关联的所有信息的技术手段,解决了结构化数据和非结构化数据因为技术原因的分离,而导致无法直观的、全面的显示搜索结果,进而降低了座舱系统使用效果的技术问题,达到了一搜而达的效果。The present embodiment provides an electronic device, which establishes an index of structured files and an index of unstructured files. When searching for target information, the index of structured data and the index of unstructured data are searched. This technical means can search for all information associated with a keyword, solves the technical problem that the separation of structured data and unstructured data due to technical reasons makes it impossible to display search results intuitively and comprehensively, thereby reducing the use effect of the cockpit system, and achieves the effect of one search.

本发明实施例提供了一种计算机可读存储介质,该存储介质存储有至少一可执行指令,该可执行指令在电子设备/装置上运行时,使得该电子设备/装置执行上述任意方法实施例中的信息搜索方法。An embodiment of the present invention provides a computer-readable storage medium storing at least one executable instruction. When the executable instruction is executed on an electronic device/apparatus, the electronic device/apparatus executes the information search method in any of the above method embodiments.

可执行指令具体可以用于使得电子设备/装置执行以下操作:The executable instructions may be used to enable the electronic device/apparatus to perform the following operations:

获取搜索请求,提取该搜索请求中的关键词;Obtain a search request and extract keywords from the search request;

根据该关键词,在结构化数据的索引和非结构化数据的索引中进行检索,获取到与该关键词关联的目标信息;According to the keyword, search in the index of structured data and the index of unstructured data to obtain target information associated with the keyword;

显示该目标信息。Displays the target information.

在一种可选的方式中,该可执行指令使该电子设备/装置执行以下操作:In an optional manner, the executable instruction enables the electronic device/apparatus to perform the following operations:

获取该结构化数据的第一关键信息;其中,该第一关键信息包含以下一种或多种信息:基础信息、检索关键词、启动入口;Acquire the first key information of the structured data; wherein the first key information includes one or more of the following information: basic information, search keywords, and a start entry;

根据该第一关键信息,建立该结构化数据的索引。An index of the structured data is established according to the first key information.

在一种可选的方式中,该非结构化数据的索引通过以下步骤建立:In an optional manner, the index of the unstructured data is established by the following steps:

获取该非结构化数据的第二关键信息;Obtaining second key information of the unstructured data;

根据该第二关键信息,建立该非结构化数据的索引。An index of the unstructured data is established according to the second key information.

在一种可选的方式中,该可执行指令使该电子设备/装置执行以下操作:In an optional manner, the executable instruction enables the electronic device/apparatus to perform the following operations:

存储所建立的该结构化数据的索引,以及,storing the index of the structured data created, and,

存储所建立的该非结构化数据的索引。The created index of the unstructured data is stored.

在一种可选的方式中,该可执行指令使该电子设备/装置执行以下操作:In an optional manner, the executable instruction enables the electronic device/apparatus to perform the following operations:

检测到座舱系统启用后,从存储中加载该结构化数据的索引和非结构化数据的索引。After detecting that the cockpit system is enabled, the index of the structured data and the index of the unstructured data are loaded from the storage.

在一种可选的方式中,该可执行指令使该电子设备/装置执行以下操作:In an optional manner, the executable instruction enables the electronic device/apparatus to perform the following operations:

按照多个该子信息之间的排序参考信息对多个该子信息进行排序;其中,该排序参考信息包含以下一种或多种信息:相关性、评分、用户偏好;Sorting the plurality of sub-information according to the sorting reference information between the plurality of sub-information; wherein the sorting reference information includes one or more of the following information: relevance, rating, user preference;

显示排序后的多个该子信息。Display the sorted sub-information.

在一种可选的方式中,该显示该目标信息后,该可执行指令使该电子设备/装置执行以下操作:In an optional manner, after the target information is displayed, the executable instruction causes the electronic device/apparatus to perform the following operations:

检测到该目标信息的选中操作后,获取该目标信息的来源;After detecting the selection operation of the target information, obtaining the source of the target information;

若该目标信息来源于目标非结构化数据的索引,且该目标非结构化数据被用于构建形成非结构化文件,则打开该非结构化文件;If the target information is derived from an index of target unstructured data, and the target unstructured data is used to construct an unstructured file, then the unstructured file is opened;

若该目标信息来源于目标结构化数据的索引,且该目标结构化数据被用于构建形成应用程序的配置文件,则启动该应用程序。If the target information is derived from an index of target structured data, and the target structured data is used to construct a configuration file of an application, the application is started.

本实施例提供一种计算机可读存储介质,通过建立结构化文件的索引和非结构化先的索引,在搜索目标信息时,在结构化数据的索引和非结构化数据的索引中都进行搜索,可以搜索到与关键词关联的所有信息的技术手段,解决了结构化数据和非结构化数据因为技术原因的分离,而导致无法直观的、全面的显示搜索结果,进而降低了座舱系统使用效果的技术问题,达到了一搜而达的效果。This embodiment provides a computer-readable storage medium. By establishing an index of structured files and an index of unstructured files, when searching for target information, searches are performed in both the index of structured data and the index of unstructured data. This technical means can search for all information associated with a keyword, solves the technical problem that the separation of structured data and unstructured data due to technical reasons makes it impossible to display search results intuitively and comprehensively, thereby reducing the use effect of the cockpit system, and achieves the effect of one search.

在此提供的算法或显示不与任何特定计算机、虚拟系统或者其它设备固有相关。此外,本发明实施例也不针对任何特定编程语言。The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.

在此处所提供的说明书中,说明了大量具体细节。然而能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。类似地,为了精简本发明并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明实施例的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。其中,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.

本领域技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外。Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and/or processes or units are mutually exclusive.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。上述实施例中的步骤,除有特殊说明外,不应理解为对执行顺序的限定。It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim that lists a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims (10)

1. An information search method, characterized by being applied to a cabin system, the cabin system containing structured data and unstructured data, the method comprising:
Acquiring a search request, and extracting keywords in the search request;
According to the keywords, searching is carried out in the index of the structured data and the index of the unstructured data, and target information associated with the keywords is obtained;
and displaying the target information.
2. The method of claim 1, wherein the indexing of the structured data is established by:
Acquiring first key information of the structured data; wherein the first key information comprises one or more of the following: basic information, search keywords and a start entry;
and establishing an index of the structured data according to the first key information.
3. The method of claim 2, wherein the index of unstructured data is established by:
acquiring second key information of the unstructured data;
and establishing an index of the unstructured data according to the second key information.
4. A method according to claim 3, characterized in that the method further comprises:
storing the index of the structured data established, and
Storing the established index of the unstructured data.
5. The method according to any one of claims 1-4, further comprising:
After detecting that the cockpit system is enabled, loading the index of the structured data and the index of the unstructured data from the storage.
6. The method of any of claims 1-4, wherein when the target information comprises a plurality of sub-information, the displaying the target information comprises:
sorting the plurality of sub-information according to sorting reference information among the plurality of sub-information; wherein the ordering reference information comprises one or more of the following: relevance, scoring, user preference;
Displaying the sorted sub-information.
7. The method of any of claims 1-4, wherein after displaying the target information, the method further comprises:
after detecting the selected operation of the target information, acquiring the source of the target information;
If the target information is derived from an index of target unstructured data and the target unstructured data is used for constructing and forming an unstructured file, opening the unstructured file;
and if the target information is derived from the index of the target structured data and the target structured data is used for constructing a configuration file for forming the application program, starting the application program.
8. An information search apparatus for use in a cockpit system, the cockpit system including structured data and unstructured data, the apparatus comprising:
The acquisition module is used for acquiring the search request;
the processing module is used for extracting keywords in the search request;
The acquisition module is further used for searching in the index of the structured data and the index of the unstructured data according to the keywords to acquire target information associated with the keywords;
and the display module is used for displaying the target information.
9. An electronic device, comprising: a memory, a processor;
the memory stores computer-executable instructions;
The processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 1-7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed cause a computer to perform the method of any of claims 1-7.
CN202410746576.6A 2024-06-11 2024-06-11 Information search method, device, electronic device, and storage medium Pending CN118585681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410746576.6A CN118585681A (en) 2024-06-11 2024-06-11 Information search method, device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410746576.6A CN118585681A (en) 2024-06-11 2024-06-11 Information search method, device, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN118585681A true CN118585681A (en) 2024-09-03

Family

ID=92529726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410746576.6A Pending CN118585681A (en) 2024-06-11 2024-06-11 Information search method, device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN118585681A (en)

Similar Documents

Publication Publication Date Title
US7685200B2 (en) Ranking and suggesting candidate objects
US9323867B2 (en) Search tool using multiple different search engine types across different data sets
JP6480925B2 (en) Retrieving attribute values based on identified entities
US9652558B2 (en) Lexicon based systems and methods for intelligent media search
CN102341800B (en) Search processing method and apparatus
US8145660B2 (en) Implementing an expanded search and providing expanded search results
US20090094211A1 (en) Implementing an expanded search and providing expanded search results
CN101404017A (en) Intelligently sorted search results
CN105917334A (en) Coherent question answering in search results
JP2010067175A (en) Hybrid content recommendation server, recommendation system, and recommendation method
WO2012178152A1 (en) Methods and systems for retrieval of experts based on user customizable search and ranking parameters
US11475081B2 (en) Combining catalog search results from multiple package repositories
CN104750776A (en) Accessing information content in a database platform using metadata
US20150339387A1 (en) Method of and system for furnishing a user of a client device with a network resource
US8458180B2 (en) Information exploration
US20170109451A1 (en) In-view and out-of-view request-related result regions for respective result categories
JP2012008610A (en) Search apparatus, method, and program
JP3994188B2 (en) Multimedia data search system, multimedia search method, and program for realizing the search method
WO2016027364A1 (en) Topic cluster selection device, and search method
US10546029B2 (en) Method and system of recursive search process of selectable web-page elements of composite web page elements with an annotating proxy server
JP2005128872A (en) Document retrieving system and document retrieving program
CN118585681A (en) Information search method, device, electronic device, and storage medium
JP5346991B2 (en) Content output method, content output device, and content output program
JP5127553B2 (en) Information processing apparatus, information processing method, program, and recording medium
WO2018084226A1 (en) Document search method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination