Query method and device

A query method and a query device technology, applied in the Internet field, can solve the problems of high learning and development costs, and achieve the effects of reduced learning difficulty, reduced development costs, and good readability

Inactive Publication Date: 2017-09-01
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF5 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, when users use Elasticsearch to search the server, the cost of learning and development is relatively high

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Query method and device
  • Query method and device
  • Query method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0062] The embodiment of the present invention proposes a query method and device, which converts a user's query language that conforms to custom specifications and imitates SQL into an Elasticsearch query API, which can reduce the development cost and learning difficulty of Elasticsearch users. The query method is first described below. Detailed description.

[0063] see figure 1 , figure 1 A flowchart of a query method according to ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

Embodiments of the invention provide a query method and device, and the method and device are applied to the technical field of internet. The method comprises the following steps of: obtaining a query parameter and judging whether the query parameter accords with a grammatical norm or not; when the query parameter accords with the grammatical norm, extracting a self-defined query language included in the query parameter; analyzing the self-defined query language and encapsulating the query parameter into a structured query language corresponding to a search server; and sending a query request to a cluster of the search server according to the structured query language so as to obtain a query result, aiming at the query parameter, returned by the cluster of the search server. Compared with the existing query method, the query method provided by the invention is capable of achieving the aim of carrying out query according to a self-defined query expression language, and the self-defined query expression language is concise in language and easy to learn, so that the development cost is reduced and the development efficiency is improved.

Description

technical field [0001] The present invention relates to the field of Internet technologies, and in particular, to a query method and device. Background technique [0002] With the rapid development of the Internet, the amount of network information data has grown exponentially. Internet users are increasingly searching for data, and the requirements for the accuracy of data captured from massive data are also getting higher and higher. Elasticsearch is a Lucence-based search server that provides a full-text engine with multi-user distributed search capabilities. [0003] However, the learning and maintenance costs required by Elasticsearh are relatively high, especially the RESTful query API (Application Programming Interface) with JSON (JavaScriptObject Notation) as the data format. The query syntax is complex and diverse. There is a certain difficulty for users of database SQL (Structured Query Language, Structured Query Language). Among them, JSON is a lightweight data...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/2455G06F16/2453G06F16/284
Inventor 类兴邦
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products