WO2018095351A1 - 搜索处理方法及装置 - Google Patents

搜索处理方法及装置 Download PDF

Info

Publication number
WO2018095351A1
WO2018095351A1 PCT/CN2017/112544 CN2017112544W WO2018095351A1 WO 2018095351 A1 WO2018095351 A1 WO 2018095351A1 CN 2017112544 W CN2017112544 W CN 2017112544W WO 2018095351 A1 WO2018095351 A1 WO 2018095351A1
Authority
WO
WIPO (PCT)
Prior art keywords
clause
language format
search
target
statement
Prior art date
Application number
PCT/CN2017/112544
Other languages
English (en)
French (fr)
Inventor
陈文�
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018095351A1 publication Critical patent/WO2018095351A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/2452Query translation
    • G06F16/24526Internal representations for queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Definitions

  • the present disclosure relates to the field of communications, for example, to a search processing method and apparatus.
  • search engines are widely used, such as Google, Bing Bing, Baidu and other common web search portals.
  • search engines are widely used, such as Google, Bing Bing, Baidu and other common web search portals.
  • an open source search engine is used.
  • the current mainstream open source search engines include distributed, full-text search engines such as Solr, ElasticSearch, Lucene, and Sphinx, which can be quickly deployed and provide a more accurate user experience than the database.
  • each search engine has its own language format, if you need to use multiple search engines, you must first grasp the language format of each search engine, which increases the threshold of using search engines to a certain extent, reducing the user experience. Satisfaction.
  • the present disclosure provides a search processing method and apparatus to solve the problem that each user must grasp the language format of each search engine when using each search engine, resulting in difficulty in using the search engine and low user experience satisfaction.
  • a search processing method including:
  • a search processing device comprising:
  • a receiving module configured to receive a search statement having a target language format from a search client, and parse the search statement to obtain a plurality of clauses;
  • An analysis module configured to determine a target search engine according to a driving type of the search client
  • a conversion module configured to convert a plurality of clauses of the search statement from the target language format to a language format of the target search engine according to a preset mapping relationship between a target language format and a language format of a search engine, and assemble Get the converted search statement;
  • a sending module configured to send the converted search statement to a search server corresponding to the target search engine
  • the result processing module is configured to receive the processing result fed back by the search server, convert the language format of the processing result into the target language format, and return the result to the search client.
  • a computer storage medium having stored therein computer executable instructions for performing the aforementioned search processing method.
  • a search processing device including one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory, when executed by one or more processors, executing The above search processing method.
  • a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to execute Any of the above search processing methods.
  • the search processing method, device and computer storage medium provided by the present disclosure can set the target language format and the language format mapping relationship of multiple search engines in advance, so that the user only needs to use the search sentence of the target language format in the search.
  • the search service processing is completed on each search engine, and the user does not need to master the language format of each search engine, that is, does not need to care about the syntax format of different search engines, that is, does not need to care about the application programming interface at the bottom of each search engine (Application Programming Interface (API), which reduces the difficulty of using the search engine and improves the satisfaction of the user experience.
  • API Application Programming Interface
  • Embodiment 1 is a schematic flow chart of a search processing method in Embodiment 1;
  • FIG. 2 is a schematic structural diagram of a search processing device in Embodiment 2;
  • Embodiment 3 is a schematic flowchart of a search processing method in Embodiment 3;
  • FIG. 5 is a schematic flowchart of implementing an insertion method in Embodiment 3.
  • FIG. 6 is a schematic flowchart of implementing an update method in Embodiment 3.
  • FIG. 8 is a schematic diagram showing the hardware structure of a search processing device in Embodiment 4.
  • the mapping relationship between the common target language format and the language format of multiple search engines is first set; thus, the user only needs to use the search statement of the target language format to complete the search service processing on multiple search engines.
  • There is no need to master the language format of each search engine that is, it does not need to care about the application programming interface (API) at the bottom of each search engine, so it can reduce the difficulty of using the search engine and improve the satisfaction of the user experience.
  • the search engine in this embodiment may be a variety of open source engines, including, for example, Lucene, Sphinx, Xapian, Nutch, DataparkSearch, Zettair, Indri, Terrier, Terrier, Zebra, Solr, Elasticsearch, Whoosh.
  • the search processing method includes the following steps.
  • step 110 a search statement having a target language format from a search client is received and parsed to obtain a plurality of clauses.
  • the search statement in this embodiment can support four data definition commands: query SELECT, insert INSERT, update UPDATE, and delete DELETE.
  • Different search sentences include clauses corresponding to the search sentence, and each clause includes a corresponding clause corresponding to the clause. Parameters.
  • step 120 a corresponding target search engine is determined according to the type of driving of the search client.
  • step 130 according to the preset mapping relationship between the target language format and the language formats of the plurality of search engines, the parsed plurality of clauses are converted from the target language format to the language format of the target search engine, and the corresponding assembly is converted. After the search statement.
  • the converted plurality of words when the converted plurality of words are combined, they may be combined according to the language format rules of the target search engine.
  • step 140 the converted search statement is sent to the search server corresponding to the target search engine.
  • step 150 the processing result obtained by processing the search sentence by the target search server is received, and the processing result is the language format of the target search server itself.
  • step 160 the language format of the processing result is converted to the target language format and returned to the search client.
  • the search statement in this embodiment can support four data definition commands: query SELECT, insert INSERT, update UPDATE, and delete DELETE. Therefore, the search sentence in this embodiment may include at least one of a query statement (SELECT statement), an insert statement (INSERT statement), an update statement (UPDATE statement), and a delete statement (DELETE statement).
  • SELECT statement query statement
  • INSERT statement insert statement
  • UPDATE statement update statement
  • DELETE statement delete statement
  • the search statement delivered by the search client may include a query statement, which may include the following clauses of the target language format.
  • a sort clause with a sort condition (order by clause).
  • converting the parsed plurality of clauses from the target language format to the language format of the target search engine includes the following steps.
  • the language format of each search engine needs to be based on each search engine.
  • the search statement issued by the search client may include an insert statement; the insert statement includes the following clauses of the target language format.
  • the insertion clause of the target language format (insert into clause), the insertion clause contains the table name and field of the insertion information.
  • converting the parsed plurality of clauses from the target language format to the language format of the target search engine includes the following steps.
  • the search statement issued by the search client may include an update statement; the update statement includes the following clauses of the target language format.
  • a setting clause (set clause) with an update field and its updated value is
  • converting the parsed plurality of clauses from the target language format to the language format of the target search engine includes the following steps.
  • An update clause, a set clause, and a conditional clause having a target language format are converted into an update clause, a set clause, and a conditional clause having a language format of the target search engine.
  • the search statement delivered by the search client may include a delete statement including the following clauses of the target language format.
  • a delete condition clause (where clause) with a delete condition.
  • converting the parsed plurality of clauses from the target language format to the language format of the target search engine includes the following steps.
  • deletion clause with the target language format is converted into a deletion clause with the language format of the target search engine, and the condition clause is deleted.
  • the target language format in this embodiment may be a Structure Query Languge (SQL) format
  • SQL is a general database operation language.
  • databases of different companies have some exclusive SQL syntax, in general, they Both follow the SQL standards established by the American National Standards Institute (ASNI). Therefore, the SQL language is easy to learn and easy to read, so it can become a general standard query language.
  • ASNI American National Standards Institute
  • the SQL language is easy to learn and easy to read, so it can become a general standard query language.
  • it can be any other language with good versatility and ease of use.
  • the embodiment provides a search processing device, which can be set in a search client. It can also be set in the relay server that works with the search client.
  • the search processing apparatus in this embodiment includes the following modules.
  • the receiving module 21 is configured to receive a search sentence with a target language format from the search client and parse the plurality of clauses.
  • the search statement in this embodiment can support four data definition commands: query SELECT, insert INSERT, update UPDATE, and delete DELETE.
  • the analysis module 22 is configured to determine a corresponding target search engine according to the type of driving of the search client.
  • the conversion module 23 is configured to convert the parsed plurality of clauses from the target language format to the language format of the target search engine according to the preset mapping relationship between the target language format and the language formats of the plurality of search engines, and assemble and convert the language. Search statement.
  • the sending module 24 is configured to send the converted search statement to the search server corresponding to the target search engine.
  • the result processing module 25 is configured to receive a processing result obtained by processing the search sentence by the target search server, the processing result is a language format of the target search server itself, and converting the language format of the processing result into a target language format and returning to the search Client.
  • the search processing apparatus in this embodiment can set a mapping relationship between a common target language format and a language format of a plurality of search engines, so that the search processing device of the user only needs to use the search sentence of the target language format to achieve more at the time of searching.
  • Search engine processing is completed on the search engine, without having to master the language format of each search engine, that is, it does not need to care about the application programming interface (API) at the bottom of each search engine, and reduce the difficulty of using the search engine.
  • API application programming interface
  • the search engine in this embodiment may be a variety of open source engines including, for example, but not limited to, Lucene, Sphinx, Xapian, Nutch, DataparkSearch, Zettair, Indri, Terrier, Terrier, Zebra, Solr, Elasticsearch, Whoosh.
  • the search statement in this embodiment can support four data definition commands: query SELECT, insert INSERT, update UPDATE, and delete DELETE. Therefore, the search statement in this embodiment may include a query statement (SELECT statement), an insert statement (INSERT statement), and an update statement. At least one of (UPDATE statement) and delete statement (DELETE statement). The following is an example of implementing the above functions separately.
  • the search statement sent by the search client may include a query statement, and the receiving module parses the query statement to obtain the following clause in the target language format.
  • a sort clause with a sort condition (order by clause).
  • the conversion module 23 is configured to convert the query clause having the target language format, the table name clause, the query condition clause, the paging clause, and the sort clause into a query clause having a language format of the target search engine, Table name clauses, query condition clauses, page break clauses, and sort clauses.
  • the language format of each search engine needs to be based on each search engine.
  • the search statement delivered by the search client may include an insert statement; the receiving module parses the insert statement to obtain the following clause of the target language format.
  • the insertion clause of the target language format (insert into clause), the insertion clause contains the table name and field of the insertion information.
  • the conversion module 23 is an insertion clause and an insertion value clause that are set to convert an insertion clause having a target language format and an insertion value clause into a language format having a target search engine.
  • the search statement sent by the search client may include an update statement; the receiving module parses the update statement to obtain the following clause of the target language format.
  • a setting clause (set clause) with an update field and its updated value is
  • the conversion module 23 is set to set the update clause with the target language format, and set the clause to And the conditional clause is converted into an update clause, a set clause, and a conditional clause having a language format of the target search engine.
  • the search statement sent by the search client may include a delete statement, and the receiving module parses the delete statement to obtain the following clause of the target language format.
  • a delete condition clause (where clause) with a delete condition.
  • the conversion module 23 is configured to convert the deletion clause having the target language format, the deletion condition clause into a deletion clause having the language format of the target search engine, and the deletion condition clause.
  • the target language format in this embodiment may be a Structure Query Languge (SQL) format.
  • SQL Structure Query Languge
  • it can be any other language with good versatility and ease of use.
  • the functions of the above plurality of modules in this embodiment may be implemented by a processor or a controller in a search client or a relay server.
  • the target language is SQL
  • the search engine is a first search engine Solr and a first search engine ElasticSearch as an example to explain the present disclosure.
  • the search processing method at this time is shown in FIG. 3 and includes the following steps.
  • step 310 an SQL search statement is received and the SQL operation statement is parsed.
  • step 320 it is determined whether the first search engine Solr is currently selected according to the driving type, if the first search engine Solr goes to step 330; if the search engine is not the first search engine Solr, then go to step 340.
  • step 330 the first search engine Solr syntax is assembled and a search request is sent to the Solr search engine server.
  • step 340 the second search engine ElasticSearch grammar is assembled and a search request is sent to the ElasticSearch search engine server.
  • step 350 the corresponding search engine server returns the search results.
  • step 410 the query Select statement is parsed.
  • the select clause corresponds to the query return field
  • the from clause corresponds to the query table name
  • the where clause corresponds to the query condition
  • the limit clause corresponds to the paging information
  • the order by clause corresponds to Sorting conditions; for example: select book_id, book_name from books where book_id>10and book_id ⁇ 50order by book_id desc limit 0,5, see Table 1 below.
  • step 420 the search engine is determined and the search engine interface code is assembled in accordance with the corresponding search engine syntax.
  • a search engine such as Solr or ElasticSearch
  • step 430 the converted query request is sent to the search engine server.
  • QueryResponse response server.query(query); where server is the search engine server object and query is the query condition object).
  • step 440 the query result is obtained and converted and fed back to the client.
  • step 510 the insert Insert statement is parsed.
  • the insert into clause corresponds to the table name and field information of the inserted record
  • the values clause corresponds to the value of the inserted field; for example: insert into books(book_id,book_name,book_author)values( 100, "java authoritative guide", "Zhang San”); see Table 2 below.
  • step 520 the search engine is determined and the search engine is assembled according to the corresponding search engine syntax. Interface code.
  • step 530 the converted insertion request is sent to the search engine server.
  • step 540 the processing result is obtained and converted and fed back to the client.
  • step 610 the update Update statement is parsed.
  • step 620 the query satisfies the where condition.
  • step 630 if there is a new value for the field that queries the new value, if the new value is not queried, the query result value is used to update the index.
  • step 640 the search engine interface code is assembled and transmitted in accordance with the corresponding search engine syntax.
  • step 650 an update result is obtained.
  • step 710 the Delete Delete statement is parsed.
  • the relevant parameters of the deleted data are obtained: the delete from clause corresponds to the table name of the deleted record, and the where clause corresponds to the condition that the deleted record satisfies; for example: delete from books where book_id ⁇ 11; see Table 4 below. Shown.
  • step 720 the search engine is determined and the search engine interface code is assembled in accordance with the corresponding search engine syntax.
  • a search engine such as Solr or ElasticSearch
  • step 730 the converted delete request is sent to the search engine server.
  • step 740 the deletion result is obtained and converted and fed back to the client.
  • the embodiment provides a computer readable storage medium storing computer executable instructions for executing the above search processing method.
  • the search processing device includes: a processor 810 and a memory 820; and may also include communication.
  • the processor 810, the memory 820, and the communication interface 830 can complete communication with each other through the bus 840.
  • Communication interface 830 can be used for information transfer.
  • the processor 810 can call the logic instructions in the memory 820 to perform any of the search processing methods of the above embodiments.
  • the memory 820 may include a storage program area and a storage data area, and the storage program area may store an operating system and an application required for at least one function.
  • the storage data area can store data and the like created according to the use of the search processing device.
  • the memory may include, for example, a volatile memory of a random access memory, and may also include a non-volatile memory. For example, at least one disk storage device, flash memory device, or other non-transitory solid state storage device.
  • the logic instructions in the above memory 820 can be implemented in the form of software functional units. And when sold or used as a standalone product, the logic instructions can be stored in a computer readable storage medium.
  • the present disclosure may be embodied in the form of a computer software product, which may be stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the present implementation All or part of the steps of the method described.
  • the storage medium may be a non-transitory storage medium or a transitory storage medium.
  • the non-transitory storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
  • All or part of the process of implementing the foregoing embodiment may be performed by a computer program to indicate related hardware, and the program may be stored in a non-transitory computer readable storage medium, and when the program is executed, may include The flow of an embodiment of the above method.
  • the modules or steps of the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, they may be implemented by computing devices.
  • the executed program code is implemented so that they can be stored in a computer storage medium (ROM/RAM, disk, optical disk) by a computing device, and in some cases, can be executed in a different order than here.
  • the steps shown or described are either made separately into a plurality of integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the search processing method and apparatus provided by the present disclosure can set a common target language format and a language format mapping relationship of multiple search engines, so that the search processing device only needs to use the search sentence of the target language format to achieve more Search engine processing is completed on the search engine without having to master the language format of each search engine, that is, it does not need to care about the application programming interface at the bottom of each search engine, reduce the difficulty of using the search engine, and improve the satisfaction of the user experience.

Landscapes

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

Abstract

一种搜索处理方法及装置,先设置好目标语言格式与多个搜索引擎的语言格式映射关系;接收来自搜索客户端的目标语言格式的搜索语句然后根据搜索客户端的驱动类型确定对应的目标搜索引擎,根据目标语言格式与目标搜索引擎的语言格式映射关系将接收到的搜索语句由目标语言格式转换为目标搜索引擎的语言格式,然后将转换后的搜索语句发给目标搜索引擎对应的搜索服务器进行搜索。

Description

搜索处理方法及装置 技术领域
本公开涉及通信领域,例如涉及一种搜索处理方法及装置。
背景技术
随着互联网的发展,为了提高用户的搜索体验,搜索引擎被广泛使用,如Google、必应Bing、百度等通用的网页搜索门户。而对于大部分站内搜索则采用开源的搜索引擎,当前主流的开源搜索引擎有Solr、ElasticSearch、Lucene、Sphinx等分布式、全文搜索引擎,可以快速部署,并提供比数据库更加精准的用户体验。
由于每种搜索引擎都有各自的语言格式,如果需要使用多种搜索引擎就必须先掌握每个搜索引擎的语言格式,这就在一定程度上增加了使用搜索引擎的门槛,降低了用户体验的满意度。
发明内容
本公开提供一种搜索处理方法及装置,以解决用户使用每种搜索引擎时都必须掌握每个搜索引擎的语言格式,导致搜索引擎使用难度大,用户体验满意度低的问题。
一种搜索处理方法,包括:
接收来自搜索客户端的具有目标语言格式的搜索语句,并对所述搜索语句进行解析得到多个子句;
根据所述搜索客户端的驱动类型确定目标搜索引擎;
根据目标语言格式与搜索引擎的语言格式的预设映射关系,将所述搜索语句的多个子句由所述目标语言格式转换为所述目标搜索引擎的语言格式,并进行组装得到转换后的搜索语句;
将转换后的所述搜索语句发给所述目标搜索引擎对应的搜索服务器;
接收所述搜索服务器反馈的处理结果,将所述处理结果的语言格式转换为所述目标语言格式后返回给所述搜索客户端。
一种搜索处理装置,包括:
接收模块,设置为接收来自搜索客户端的具有目标语言格式的搜索语句,并对所述搜索语句进行解析得到多个子句;
分析模块,设置为根据所述搜索客户端的驱动类型确定目标搜索引擎;
转换模块,设置为根据目标语言格式与搜索引擎的语言格式的预设映射关系,将所述搜索语句的多个子句由所述目标语言格式转换为所述目标搜索引擎的语言格式,并进行组装得到转换后的搜索语句;
发送模块,设置为将转换后的所述搜索语句发给所述目标搜索引擎对应的搜索服务器;
结果处理模块,设置为接收所述搜索服务器反馈的处理结果,将所述处理结果的语言格式转换为所述目标语言格式后返回给所述搜索客户端。
一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的搜索处理方法。
一种搜索处理设备,该搜索处理设备包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述搜索处理方法。
一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种搜索处理方法。
本公开提供的搜索处理方法、装置及计算机存储介质,通过预先设置好目标语言格式与多种搜索引擎的语言格式映射关系,使得用户在搜索时只需要使用目标语言格式的搜索语句即可实现在每种搜索引擎上完成搜索业务处理,用户不需要掌握每种搜索引擎的语言格式,即不需要关心不同搜索引擎的语法格式,也即不需要关心每个搜索引擎底部的应用程序编程接口(Application Programming Interface,API),降低搜索引擎使用难度,提升用户体验的满意度。
附图说明
图1为实施例一中搜索处理方法流程示意图;
图2为实施例二中搜索处理装置结构示意图;
图3为实施例三中搜索处理方法流程示意图;
图4为实施例三中实现查询方法流程示意图;
图5为实施例三中实现插入方法流程示意图;
图6为实施例三中实现更新方法流程示意图;
图7为实施例三中实现删除方法流程示意图;
图8为实施例四中的一种搜索处理设备的硬件结构示意图。
具体实施方式
下面通过具体实施方式结合附图对本公开进行说明。
实施例一
本实施例先设置好通用的目标语言格式与多种搜索引擎的语言格式映射关系;这样用户在搜索时只需要使用目标语言格式的搜索语句即可实现在多种搜索引擎上完成搜索业务处理,而不需要掌握每个搜索引擎的语言格式,也即不需要关心每个搜索引擎底部的应用程序编程接口(Application Programming Interface,API),因此可以降低搜索引擎使用难度,提升用户体验的满意度。本实施例中的搜索引擎可以是多种开源引擎,例如包括Lucene、Sphinx、Xapian、Nutch、DataparkSearch、Zettair、Indri、Terrier、Terrier、Zebra、Solr、Elasticsearch、Whoosh。
下面对搜索处理方法进行示例说明,参见图1所示,本实施例提供的搜索处理方法包括以下步骤。
在步骤110中,接收来自搜索客户端的具有目标语言格式的搜索语句并对所述搜索语句进行解析得到多个子句。
本实施例中的搜索语句可以支持查询SELECT、插入INSERT、更新UPDATE、删除DELETE四种数据定义命令,不同搜索语句包含与该搜索语句对应的子句,以及每个子句中包含与该子句对应的参数。
在步骤120中,根据该搜索客户端的驱动类型确定对应的目标搜索引擎。
在步骤130中,根据目标语言格式与多种搜索引擎的语言格式的预设映射关系,将解析得到的多个子句由目标语言格式转换为目标搜索引擎的语言格式,并进行对应的组装得到转换后的搜索语句。
本实施例中对转换后的多个字句进行组合时可以根据目标搜索引擎的语言格式规则进行组合。
在步骤140中,将转换后的搜索语句发给目标搜索引擎对应的搜索服务器。
在步骤150中,接收目标搜索服务器对该搜索语句进行处理得到的处理结果,该处理结果为目标搜索服务器自身的语言格式。
在步骤160中,将所述处理结果的语言格式转换为所述目标语言格式后返回给搜索客户端。
如上所述,本实施例中的搜索语句可以支持查询SELECT、插入INSERT、更新UPDATE、删除DELETE四种数据定义命令。因此本实施例中的搜索语句可以包括查询语句(SELECT语句)、插入语句(INSERT语句)、更新语句(UPDATE语句)和删除语句(DELETE语句)中的至少一个。下面以分别实现上述功能进行示例说明。
实现查询功能时,搜索客户端下发的搜索语句可以包含查询语句,该查询语句可以包括目标语言格式的以下子句。
含查询返回字段的查询子句(select子句)。
含查询表名的表名子句(from子句)。
含查询条件的查询条件子句(where子句)。
含分页信息的分页子句(limit子句)。以及
含排序条件的排序子句(order by子句)。
此时,上述步骤130中,将解析得到的多个子句由目标语言格式转换为目标搜索引擎的语言格式包括以下步骤。
将具有目标语言格式的查询子句、表名子句、查询条件子句、分页子句以及排序子句转换为具有目标搜索引擎的语言格式的查询子句、表名子句、查询条件子句、分页子句以及排序子句。每种搜索引擎的语言格式需要根据每种搜索引擎而定。
实现插入功能时,搜索客户端下发的搜索语句可以包括插入语句;该插入语句包括目标语言格式的以下子句。
目标语言格式的插入子句(insert into子句),插入子句包含插入信息的表名和字段。
插入值子句(values子句),包含插入字段值。
此时,上述步骤130中,将解析得到的多个子句由目标语言格式转换为目标搜索引擎的语言格式包括以下步骤。
将具有目标语言格式的插入子句、以及插入值子句转换为具有目标搜索引 擎的语言格式的插入子句、以及插入值子句。
实现更新功能时,搜索客户端下发的搜索语句可以包括更新语句;该更新语句包括目标语言格式的以下子句。
含更新表名的更新子句(update子句)。
含更新字段及其更新值的设置子句(set子句)。
以及含更新条件的条件子句(where子句)。
此时,上述步骤130中,将解析得到的多个子句由目标语言格式转换为目标搜索引擎的语言格式包括以下步骤。
将具有目标语言格式的更新子句、设置子句以及条件子句转换为具有目标搜索引擎的语言格式的更新子句、设置子句以及条件子句。
实现删除功能时,搜索客户端下发的搜索语句可以包括删除语句,该删除语句包括目标语言格式的以下子句。
含删除表名的删除子句(delete from子句)。以及
含删除条件的删除条件子句(where子句)。
此时,上述步骤130中,将解析得到的多个子句由目标语言格式转换为目标搜索引擎的语言格式包括以下步骤。
将具有目标语言格式的删除子句、删除条件子句转换为具有目标搜索引擎的语言格式的删除子句、删除条件子句。
本实施例中的目标语言格式可以为结构化查询语言(Structure Query Languge,SQL)格式,SQL是一种通用的数据库操作语言,虽然不同公司的数据库有一些专属的SQL语法,但大体上,它们都遵循美国国家标准协会(ASNI)制定的SQL标准。因此SQL语言具有简单易学、方便阅读等特性,因此可以成为一种通用的标准查询语言。可选地,除了SQL语言外,也可以为其他任意通用性以及易用性比较好的语言。
实施例二
本实施例提供一种搜索处理装置,该搜索处理装置可以设置于搜索客户端 中,也可以设置于与搜索客户端配合工作的中转服务器中。参见图2所示,本实施例中的搜索处理装置包括以下模块。
接收模块21,设置为接收来自搜索客户端的具有目标语言格式的搜索语句并进行解析得到多个子句。
本实施例中的搜索语句可以支持查询SELECT、插入INSERT、更新UPDATE、删除DELETE四种数据定义命令。
分析模块22,设置为根据搜索客户端的驱动类型确定对应的目标搜索引擎。
转换模块23,设置为根据目标语言格式与多种搜索引擎的语言格式的预设映射关系,将解析得到的多个子句由目标语言格式转换为目标搜索引擎的语言格式,并进行组装得到转换后的搜索语句。
发送模块24,设置为将转换后的搜索语句发给目标搜索引擎对应的搜索服务器。
结果处理模块25,设置为接收目标搜索服务器对该搜索语句进行处理得到的处理结果,该处理结果为目标搜索服务器自身的语言格式,并将处理结果的语言格式转换为目标语言格式后返回给搜索客户端。
可见,本实施例中的搜索处理装置可以设置通用的目标语言格式与多种搜索引擎的语言格式映射关系,这样用户在搜索时搜索处理装置只需要使用目标语言格式的搜索语句即可实现在多种搜索引擎上完成搜索业务处理,而不需要掌握每种搜索引擎的语言格式,也即不需要关心每种搜索引擎底部的应用程序编程接口(Application Programming Interface,API),降低搜索引擎使用难度,提升用户体验的满意度。本实施例中的搜索引擎可以是多种开源引擎,例如包括但不限于Lucene、Sphinx、Xapian、Nutch、DataparkSearch、Zettair、Indri、Terrier、Terrier、Zebra、Solr、Elasticsearch、Whoosh。
如上所述,本实施例中的搜索语句可以支持查询SELECT、插入INSERT、更新UPDATE、删除DELETE四种数据定义命令。因此本实施例中的搜索语句可以包括查询语句(SELECT语句)、插入语句(INSERT语句)、更新语句 (UPDATE语句)和删除语句(DELETE语句)中的至少一个。下面以分别实现上述功能进行示例说明。
实现查询功能时,搜索客户端下发的搜索语句可以包含查询语句,接收模块对该查询语句进行解析可以得到目标语言格式以下子句。
含查询返回字段的查询子句(select子句)。
含查询表名的表名子句(from子句)。
含查询条件的查询条件子句(where子句)。
含分页信息的分页子句(limit子句)。以及
含排序条件的排序子句(order by子句)。
此时,转换模块23是设置为将具有目标语言格式的查询子句、表名子句、查询条件子句、分页子句以及排序子句转换为具有目标搜索引擎的语言格式的查询子句、表名子句、查询条件子句、分页子句以及排序子句。每种搜索引擎的语言格式需要根据每种搜索引擎而定。
实现插入功能时,搜索客户端下发的搜索语句可以包括插入语句;接收模块对对该插入语句进行解析可以得到目标语言格式的以下子句。
目标语言格式的插入子句(insert into子句),插入子句包含插入信息的表名和字段。
插入值子句(values子句),包含插入字段值。
此时,转换模块23是设置为将具有目标语言格式的插入子句、以及插入值子句转换为具有目标搜索引擎的语言格式的插入子句以及插入值子句。
实现更新功能时,搜索客户端下发的搜索语句可以包括更新语句;接收模块对该更新语句进行解析可以得到目标语言格式的以下子句。
含更新表名的更新子句(update子句)。
含更新字段及其更新值的设置子句(set子句)。
以及含更新条件的条件子句(where子句)。
此时,转换模块23是设置为将具有目标语言格式的更新子句、设置子句以 及条件子句转换为具有目标搜索引擎的语言格式的更新子句、设置子句以及条件子句。
实现删除功能时,搜索客户端下发的搜索语句可以包括删除语句,接收模块对该删除语句进行解析可以得到目标语言格式的以下子句。
含删除表名的删除子句(delete from子句)。以及
含删除条件的删除条件子句(where子句)。
此时,转换模块23是设置为将具有目标语言格式的删除子句、删除条件子句转换为具有目标搜索引擎的语言格式的删除子句、删除条件子句。
本实施例中的目标语言格式可以为结构化查询语言(Structure Query Languge,SQL)格式。可选地,除了SQL语言外,也可以为其他任意通用性以及易用性比较好的语言。
本实施例中的上述多个模块的功能可以由搜索客户端或中转服务器中的处理器或控制器实现。
实施例三
本实施例以目标语言为SQL,搜索引擎为第一搜索引擎Solr和第一搜索引擎ElasticSearch为示例对本公开进行说明。此时的搜索处理方法参见图3所示,包括以下步骤。
在步骤310中,接收SQL搜索语句,对该SQL操作语句进行解析。
在步骤320中,根据驱动类型判断当前是否选择第一搜索引擎Solr,如果是第一搜索引擎Solr转至步骤330;如果搜索引擎不是第一搜索引擎Solr,转至步骤340。
在步骤330中,组装第一搜索引擎Solr语法,向Solr搜索引擎服务器发送搜索请求。
在步骤340中,组装第二搜索引擎ElasticSearch语法,向ElasticSearch搜索引擎服务器发送搜索请求。
在步骤350中,对应的搜索引擎服务器返回搜索结果。
下面对实现查询SELECT、插入INSERT、更新UPDATE、删除DELETE四种数据定义命令的过程分别进行示例说明。
实现查询Select命令过程参见图4所示,包括以下步骤。
在步骤410中,解析查询Select语句。
根据关键字解析select语句,获取查询相关的参数信息:select子句对应查询返回字段,from子句对应查询的表名,where子句对应查询条件,limit子句对应分页信息,order by子句对应排序条件;如:select book_id,book_name from books where book_id>10and book_id<50order by book_id desc limit 0,5,参见以下表1所示。
表1
Figure PCTCN2017112544-appb-000001
在步骤420中,确定搜索引擎,并按照对应的搜索引擎语法组装搜索引擎接口代码。
可选地,根据驱动类型,选择Solr或ElasticSearch等搜索引擎,然后把解析的查询参数组装成查询客户端代码(如返回字段book_id,book_name对应的solr代码:SolrQuery query=new SolrQuery();query.setFields(“book_id,book_name”);)。
在步骤430中,向搜索引擎服务器发送转换后的查询请求。
向搜索引擎服务器发送查询请求(如solr客户端代码:QueryResponse response=server.query(query);其中server是搜索引擎服务器对象,query是查询条件对象)。
在步骤440中,获取查询结果并转换后反馈给客户端。
获取搜索引擎的查询结果(如solr客户端代码:SolrDocumentList docList=response.getResults();),并从搜索引擎对象中取出返回字段,按照SQL格式返回字段值。
实现插入Insert命令过程参见图5所示,包括以下步骤。
在步骤510中,解析插入Insert语句。
根据关键字解析insert语句,获取插入数据的相关参数:insert into子句对应插入记录的表名和字段信息,values子句对应插入字段的值;如:insert into books(book_id,book_name,book_author)values(100,″java权威指南″,″张三″);参见以下表2所示。
表2
Figure PCTCN2017112544-appb-000002
在步骤520中,确定搜索引擎,并按照对应的搜索引擎语法组装搜索引擎 接口代码。
根据驱动类型,选择Solr或ElasticSearch等搜索引擎,然后把解析的插入参数组装成新增索引的客户端代码(如solr插入字段值的代码:SolrInputDocument doc=new SolrInputDocument();doc.addField(book_id,100);)。
在步骤530中,向搜索引擎服务器发送转换后的插入请求。
向搜索引擎服务器发送新增索引记录的请求(如solr客户端代码:UpdateResponse updateResponse=server.add(docs);,其中server是搜索引擎服务器对象,docs是需要增加的记录对象)。
在步骤540中,获取处理结果并转换后反馈给客户端。
获取搜索引擎的返回值(如solr客户端代码:UpdateResponse updateResponse=server.commit();),是否插入成功。
实现更新Update命令过程参见图6所示,包括以下步骤。
在步骤610中,解析更新Update语句。
根据关键字解析update语句,获取更新数据的相关参数:update子句对应更新记录的表名,set子句对应更新字段及其新值,where子句对应更新记录满足的条件;如:update books set book_name=java where book_id=5;具体参见表3所示。
表3
Figure PCTCN2017112544-appb-000003
根据驱动类型,选择Solr或ElasticSearch等搜索引擎,然后根据where条件使用select模块查询满足条件的所有记录值(如:select*from books where  book_id=5;)。
在步骤620中,查询满足where条件。
在步骤630中,如果有查询到新值的字段使用新值,如果没有查询到新值就使用查询结果值,更新索引。
对满足条件的记录如果没有设置新值,则使用查询的旧值,否则采用新值重新更新索引记录,把相关参数组装为索引客户端代码(如solr插入字段值的代码:SolrInputDocument doc=new SolrInputDocument();doc.addField(book_id,5);doc.addField(book_name,“java”);)。
在步骤640中,按照对应的搜索引擎语法组装搜索引擎接口代码并进行发送。
向搜索引擎服务器发送新增索引记录的请求(如solr客户端代码:UpdateResponse updateResponse=server.add(docs);其中server是搜索引擎服务器对象,docs是需要增加的记录对象),覆盖原来的索引记录。
在步骤650中,获取更新结果。
获取搜索引擎的返回值(如solr客户端代码:UpdateResponse updateResponse=server.commit();),是否更新成功。
实现删除Delete命令过程参见图7所示,包括以下步骤。
在步骤710中,解析删除Delete语句。
根据关键字解析delete语句,获取删除数据的相关参数:delete from子句对应删除记录的表名,where子句对应删除记录满足的条件;如:delete from books where book_id<11;具体参见以下表4所示。
表4
关键字 子句举例 说明
delete from delete from books 从books表中删除数据
where where book_id<11 删除book_id<11的所有
    记录
在步骤720中,确定搜索引擎,并按照对应的搜索引擎语法组装搜索引擎接口代码。
根据驱动类型,选择Solr或ElasticSearch等搜索引擎,然后根据删除条件,向搜索引擎服务器发送删除索引记录的请求(如sorl客户端代码:UpdateResponse update=server.deleteByQuery(deleteQuery);其中server是搜索引擎服务器对象,deleteQuery是删除条件)。
在步骤730中,向搜索引擎服务器发送转换后的删除请求。
在步骤740中,获取删除结果并转换后反馈给客户端。
获取搜索引擎的返回值(如solr客户端代码:UpdateResponse updateResponse=server.commit();),是否删除成功。
实施例四
本实施例提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述搜索处理方法。
如图8所示,是本实施例提供的一种搜索处理设备的硬件结构示意图,如图所示,该搜索处理设备包括:处理器(processor)810和存储器(memory)820;还可以包括通信接口(Communications Interface)830和总线840。
其中,处理器810、存储器820和通信接口830可以通过总线840完成相互间的通信。通信接口830可以用于信息传输。处理器810可以调用存储器820中的逻辑指令,以执行上述实施例的任意一种搜索处理方法。
存储器820可以包括存储程序区和存储数据区,存储程序区可以存储操作系统和至少一个功能所需的应用程序。存储数据区可以存储根据搜索处理设备的使用所创建的数据等。此外,存储器可以包括,例如,随机存取存储器的易失性存储器,还可以包括非易失性存储器。例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。
此外,在上述存储器820中的逻辑指令可以通过软件功能单元的形式实现 并作为独立的产品销售或使用时,该逻辑指令可以存储在一个计算机可读取存储介质中。本公开可以以计算机软件产品的形式体现出来,该计算机软件产品可以存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本实施例所述方法的全部或部分步骤。
存储介质可以是非暂态存储介质,也可以是暂态存储介质。非暂态存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质。
实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指示相关的硬件完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序被执行时,可包括如上述方法的实施例的流程。
上述本实施例的模块或步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在计算机存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在一些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成多个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
工业实用性
本公开提供的搜索处理方法和装置,可以设置通用的目标语言格式与多个搜索引擎的语言格式映射关系,这样用户在搜索时搜索处理装置只需要使用目标语言格式的搜索语句即可实现在多种搜索引擎上完成搜索业务处理,而不需要掌握每个搜索引擎的语言格式,也即不需要关心每个搜索引擎底部的应用程序编程接口,降低搜索引擎使用难度,提升用户体验的满意度。

Claims (11)

  1. 一种搜索处理方法,包括:
    接收来自搜索客户端的具有目标语言格式的搜索语句,并对所述搜索语句进行解析得到多个子句;
    根据所述搜索客户端的驱动类型确定目标搜索引擎;
    根据目标语言格式与搜索引擎的语言格式的预设映射关系,将所述搜索语句的多个子句由所述目标语言格式转换为所述目标搜索引擎的语言格式,并进行组装得到转换后的搜索语句;
    将转换后的所述搜索语句发给所述目标搜索引擎对应的搜索服务器;
    接收所述搜索服务器反馈的处理结果,将所述处理结果的语言格式转换为所述目标语言格式后返回给所述搜索客户端。
  2. 如权利要求1所述的方法,其中,所述搜索语句包括查询语句;所述对所述搜索语句进行解析得到多个子句,包括:
    对所述查询语句进行解析得到具有所述目标语言格式的含查询返回字段的查询子句、含查询表名的表名子句、含查询条件的查询条件子句、含分页信息的分页子句以及含排序条件的排序子句;
    将所述多个子句由所述目标语言格式转换为所述目标搜索引擎的语言格式包括:
    根据所述目标语言格式与搜索引擎的语言格式的预设映射关系,将具有所述目标语言格式的查询子句、表名子句、查询条件子句、分页子句以及排序子句分别转换成具有所述目标搜索引擎的语言格式的查询子句、表名子句、查询条件子句、分页子句以及排序子句。
  3. 如权利要求1所述的方法,其中,所述搜索语句包括插入语句;所述对所述搜索语句进行解析得到多个子句,包括:
    对所述插入语句进行解析得到具有所述目标语言格式的插入子句、以及插入值子句,所述插入子句包含插入信息的表名和字段,所述插入子句包含插入字段值;
    将所述多个子句由所述目标语言格式转换为所述目标搜索引擎的语言格式包括:
    根据所述目标语言格式与搜索引擎的语言格式的预设映射关系,将具有所述目标语言格式的插入子句、以及插入值子句转换为具有所述目标搜索引擎的语言格式的插入子句、以及插入值子句。
  4. 如权利要求1所述的方法,其中,所述搜索语句包括更新语句;所述对所述搜索语句进行解析得到多个子句,包括:
    对所述更新语句进行解析得到具有所述目标语言格式的含更新表名的更新子句,含更新字段及其更新值的设置子句以及含更新条件的条件子句;
    将所述多个子句由所述目标语言格式转换为所述目标搜索引擎的语言格式包括:
    根据所述目标语言格式与搜索引擎的语言格式的预设映射关系,将具有所述目标语言格式的更新子句、设置子句以及条件子句转换为具有所述目标搜索引擎的语言格式的更新子句、设置子句以及条件子句。
  5. 如权利要求1所述的方法,其中,所述搜索语句包括删除语句;所述对所述搜索语句进行解析得到多个子句,包括:
    对所述删除语句进行解析得到具有所述目标语言格式的含删除表名的删除子句,含删除条件的删除条件子句;
    将所述多个子句由所述目标语言格式转换为所述目标搜索引擎的语言格式包括:
    根据所述目标语言格式与搜索引擎的语言格式的预设映射关系,将具有所述目标语言格式的删除子句、删除条件子句转换为具有所述目标搜索引擎的语言格式的删除子句、删除条件子句。
  6. 如权利要求1-5任一项所述的方法,其中,所述目标语言格式为结构化查询语言格式。
  7. 一种搜索处理装置,包括:
    接收模块,设置为接收来自搜索客户端的具有目标语言格式的搜索语句,并进行解析得到多个子句;
    分析模块,设置为根据所述搜索客户端的驱动类型确定目标搜索引擎;
    转换模块,设置为根据目标语言格式与搜索引擎的语言格式的预设映射关系,将所述搜索语句的多个子句由所述目标语言格式转换为所述目标搜索引擎的语言格式,并进行组装得到转换后的搜索语句;
    发送模块,设置为将转换后的所述搜索语句发给所述目标搜索引擎对应的搜索服务器;
    结果处理模块,设置为接收所述搜索服务器反馈的处理结果,将所述处理结果的语言格式转换为所述目标语言格式后返回给所述搜索客户端。
  8. 如权利要求7所述的装置,其中,所述搜索语句包括查询语句;
    所述接收模块是设置为对所述查询语句进行解析得到具有所述目标语言格式的含查询返回字段的查询子句、含查询表名的表名子句、含查询条件的查询条件子句、含分页信息的分页子句以及含排序条件的排序子句;
    所述转换模块是设置为根据所述目标语言格式与搜索引擎的语言格式的预设映射关系,将具有所述目标语言格式的查询子句、表名子句、查询条件子句、分页子句以及排序子句分别转换成具有所述目标搜索引擎的语言格式的查询子 句、表名子句、查询条件子句、分页子句以及排序子句。
  9. 如权利要求7所述的装置,其中,所述搜索语句包括插入语句;
    所述接收模块是设置为对所述插入语句进行解析得到具有所述目标语言格式的插入子句、以及插入值子句,所述插入子句包含插入信息的表名和字段,所述插入子句包含插入字段值;
    所述转换模块是设置为根据所述目标语言格式与搜索引擎的语言格式的预设映射关系,将具有所述目标语言格式的插入子句、以及插入值子句转换为具有所述目标搜索引擎的语言格式的插入子句、以及插入值子句。
  10. 如权利要求7-9任一项所述的装置,其中,所述搜索语句包括更新语句;
    所述接收模块是设置为对所述更新语句进行解析得到具有所述目标语言格式的含更新表名的更新子句,含更新字段及其更新值的设置子句以及含更新条件的条件子句;
    所述转换模块是设置为根据所述目标语言格式与搜索引擎的语言格式的预设映射关系,将具有所述目标语言格式的更新子句、设置子句以及条件子句转换为具有所述目标搜索引擎的语言格式的更新子句、设置子句以及条件子句;或者,
    所述搜索语句包括删除语句;
    所述接收模块是设置为对所述删除语句进行解析得到具有所述目标语言格式的含删除表名的删除子句,含删除条件的删除条件子句;
    所述转换模块是设置为根据所述目标语言格式与搜索引擎的语言格式的预设映射关系,将具有所述目标语言格式的删除子句、删除条件子句转换为具有所述目标搜索引擎的语言格式的删除子句、删除条件子句。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执 行指令用于执行权利要求1-5任一项的方法。
PCT/CN2017/112544 2016-11-28 2017-11-23 搜索处理方法及装置 WO2018095351A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611069133.X 2016-11-28
CN201611069133.XA CN108121709A (zh) 2016-11-28 2016-11-28 一种搜索处理方法及装置

Publications (1)

Publication Number Publication Date
WO2018095351A1 true WO2018095351A1 (zh) 2018-05-31

Family

ID=62194763

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/112544 WO2018095351A1 (zh) 2016-11-28 2017-11-23 搜索处理方法及装置

Country Status (2)

Country Link
CN (1) CN108121709A (zh)
WO (1) WO2018095351A1 (zh)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984612A (zh) * 2018-06-12 2018-12-11 中国平安人寿保险股份有限公司 目标sql语句的获取方法、装置、计算机设备及存储介质
CN109815366A (zh) * 2019-01-25 2019-05-28 山东浪潮商用系统有限公司 一种实现视频聚合搜索语音对接的方法及装置
CN110175157A (zh) * 2019-04-24 2019-08-27 平安科技(深圳)有限公司 一种列存储文件的查询方法及查询装置
CN110489445A (zh) * 2019-08-02 2019-11-22 四川宏力信息科技有限责任公司 一种基于多形态复合的海量数据快速查询方法
CN111209307A (zh) * 2020-01-07 2020-05-29 深圳迅策科技有限公司 数据动态归类处理方法、装置、终端设备及存储介质
CN111460023A (zh) * 2020-04-29 2020-07-28 上海东普信息科技有限公司 基于Elasticsearch的业务数据处理方法、装置、设备及存储介质
CN111597776A (zh) * 2020-04-01 2020-08-28 深圳壹账通智能科技有限公司 自适应表单检索方法、装置、介质及电子设备
CN112052367A (zh) * 2020-07-23 2020-12-08 北京三快在线科技有限公司 一种搜索方法、装置、电子设备及存储介质
CN112231321A (zh) * 2020-10-20 2021-01-15 中国电子科技集团公司第二十八研究所 一种Oracle二级索引及索引实时同步方法
CN112307061A (zh) * 2019-10-31 2021-02-02 北京京东尚科信息技术有限公司 用于查询数据的方法和装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933585B (zh) * 2019-02-22 2021-11-02 京东数字科技控股有限公司 数据查询方法和数据查询系统
CN111339421B (zh) * 2020-02-28 2023-02-28 腾讯科技(深圳)有限公司 基于云技术的信息搜索的方法、装置、设备及存储介质
CN111680313B (zh) * 2020-06-08 2022-06-28 南京领行科技股份有限公司 一种数据处理方法、装置、设备及存储介质
CN111767309B (zh) * 2020-07-07 2022-06-24 中电万维信息技术有限责任公司 一种基于开关设计模式优化检索的方法
CN113505143A (zh) * 2021-07-22 2021-10-15 浙江大华技术股份有限公司 语句类型的转换方法、装置、存储介质及电子装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070073675A1 (en) * 2005-09-24 2007-03-29 International Business Machines Corporation Database query translation
CN101000615A (zh) * 2006-12-31 2007-07-18 华为技术有限公司 一种基于数据库的业务处理方法及装置
CN101706810A (zh) * 2009-11-23 2010-05-12 北京中创信测科技股份有限公司 一种数据库查询方法及装置
CN103699655A (zh) * 2013-12-27 2014-04-02 福建星网视易信息系统有限公司 实现数据库国际化的方法及装置、数据转换方法及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365914A (zh) * 2012-04-10 2013-10-23 北京易盟天地信息技术有限公司 基于搜索引擎的数据库查询系统和方法
US9348870B2 (en) * 2014-02-06 2016-05-24 International Business Machines Corporation Searching content managed by a search engine using relational database type queries
CN105868204B (zh) * 2015-01-21 2019-06-21 中移信息技术有限公司 一种转换Oracle脚本语言SQL的方法及装置
CN105260403B (zh) * 2015-09-22 2019-05-31 同望科技股份有限公司 通用跨数据库访问方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070073675A1 (en) * 2005-09-24 2007-03-29 International Business Machines Corporation Database query translation
CN101000615A (zh) * 2006-12-31 2007-07-18 华为技术有限公司 一种基于数据库的业务处理方法及装置
CN101706810A (zh) * 2009-11-23 2010-05-12 北京中创信测科技股份有限公司 一种数据库查询方法及装置
CN103699655A (zh) * 2013-12-27 2014-04-02 福建星网视易信息系统有限公司 实现数据库国际化的方法及装置、数据转换方法及系统

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984612B (zh) * 2018-06-12 2024-02-02 中国平安人寿保险股份有限公司 目标sql语句的获取方法、装置、计算机设备及存储介质
CN108984612A (zh) * 2018-06-12 2018-12-11 中国平安人寿保险股份有限公司 目标sql语句的获取方法、装置、计算机设备及存储介质
CN109815366A (zh) * 2019-01-25 2019-05-28 山东浪潮商用系统有限公司 一种实现视频聚合搜索语音对接的方法及装置
CN109815366B (zh) * 2019-01-25 2023-07-14 浪潮软件科技有限公司 一种实现视频聚合搜索语音对接的方法及装置
CN110175157A (zh) * 2019-04-24 2019-08-27 平安科技(深圳)有限公司 一种列存储文件的查询方法及查询装置
CN110175157B (zh) * 2019-04-24 2023-10-03 平安科技(深圳)有限公司 一种列存储文件的查询方法及查询装置
CN110489445B (zh) * 2019-08-02 2023-03-21 四川宏力信息科技有限责任公司 一种基于多形态复合的海量数据快速查询方法
CN110489445A (zh) * 2019-08-02 2019-11-22 四川宏力信息科技有限责任公司 一种基于多形态复合的海量数据快速查询方法
CN112307061A (zh) * 2019-10-31 2021-02-02 北京京东尚科信息技术有限公司 用于查询数据的方法和装置
CN111209307A (zh) * 2020-01-07 2020-05-29 深圳迅策科技有限公司 数据动态归类处理方法、装置、终端设备及存储介质
CN111597776A (zh) * 2020-04-01 2020-08-28 深圳壹账通智能科技有限公司 自适应表单检索方法、装置、介质及电子设备
CN111460023B (zh) * 2020-04-29 2023-06-09 上海东普信息科技有限公司 基于Elasticsearch的业务数据处理方法、装置、设备及存储介质
CN111460023A (zh) * 2020-04-29 2020-07-28 上海东普信息科技有限公司 基于Elasticsearch的业务数据处理方法、装置、设备及存储介质
CN112052367A (zh) * 2020-07-23 2020-12-08 北京三快在线科技有限公司 一种搜索方法、装置、电子设备及存储介质
CN112231321B (zh) * 2020-10-20 2022-09-20 中国电子科技集团公司第二十八研究所 一种Oracle二级索引及索引实时同步方法
CN112231321A (zh) * 2020-10-20 2021-01-15 中国电子科技集团公司第二十八研究所 一种Oracle二级索引及索引实时同步方法

Also Published As

Publication number Publication date
CN108121709A (zh) 2018-06-05

Similar Documents

Publication Publication Date Title
WO2018095351A1 (zh) 搜索处理方法及装置
US7895181B2 (en) Configuration-based search
CA2976007C (en) Systems and methods for natural language question answering and analysis
US20180349355A1 (en) Artificial Intelligence Based Method and Apparatus for Constructing Comment Graph
US9639522B2 (en) Methods and apparatus related to determining edit rules for rewriting phrases
US20150074289A1 (en) Detecting error pages by analyzing server redirects
US20160253385A1 (en) Global query hint specification
US9189504B2 (en) Application source code scanning for database migration
US11030242B1 (en) Indexing and querying semi-structured documents using a key-value store
US10606839B2 (en) Preventing staleness in query results when using asynchronously updated indexes
US10678820B2 (en) System and method for computerized semantic indexing and searching
US20150205834A1 (en) PROVIDING FILE METADATA QUERIES FOR FILE SYSTEMS USING RESTful APIs
JP2021501402A (ja) 意味的豊富度に基づいた文書のランキング
CN111522905A (zh) 一种基于数据库的文档搜索方法和装置
US8805848B2 (en) Systems, methods and computer program products for fast and scalable proximal search for search queries
US11709831B2 (en) Cost-based query optimization for array fields in database systems
CN112883030A (zh) 数据收集方法、装置、计算机设备和存储介质
US20220083549A1 (en) Generating query answers from a user's history
US10635725B2 (en) Providing app store search results
CN111858760A (zh) 一种异构数据库的数据处理方法及装置
KR20200094074A (ko) 인덱스 관리 방법, 장치, 기기 및 저장 매체
US9292537B1 (en) Autocompletion of filename based on text in a file to be saved
CA3140845A1 (en) Query generation using natural language input
CN116910085A (zh) 数据查询方法、装置、设备和存储介质
US9037752B1 (en) Remote materialization of low velocity data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17873262

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17873262

Country of ref document: EP

Kind code of ref document: A1