CN111143349A - Method for quickly searching information from set, electronic equipment and storage medium - Google Patents

Method for quickly searching information from set, electronic equipment and storage medium Download PDF

Info

Publication number
CN111143349A
CN111143349A CN201911172042.2A CN201911172042A CN111143349A CN 111143349 A CN111143349 A CN 111143349A CN 201911172042 A CN201911172042 A CN 201911172042A CN 111143349 A CN111143349 A CN 111143349A
Authority
CN
China
Prior art keywords
index
information
objects
query
computer
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
CN201911172042.2A
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.)
Shunde Samyang Co ltd
Guangdong Sanyang Network Technology Co Ltd
Original Assignee
Shunde Samyang Co ltd
Guangdong Sanyang Network Technology 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 Shunde Samyang Co ltd, Guangdong Sanyang Network Technology Co Ltd filed Critical Shunde Samyang Co ltd
Priority to CN201911172042.2A priority Critical patent/CN111143349A/en
Publication of CN111143349A publication Critical patent/CN111143349A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • 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/242Query formulation
    • G06F16/2433Query languages
    • G06F16/244Grouping and aggregation

Landscapes

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

Abstract

The invention belongs to the field of computers, and particularly relates to a method for quickly searching information from a set, an electronic device and a storage mediumnEach group of objects xnEach corresponding to a unique computer index inThe object xnComprises an element part consisting of a number of features, wherein N is equal to N*When searching information, determining the object x to which the characteristic belongs according to the input characteristicnIndex i ofnAnd passes through the index inExtracting the corresponding object xnThe invention improves the speed of information inquiry, determines the corresponding index by using the characteristics during inquiry, extracts the object corresponding to the index and completes the inquiry of the information, thereby avoiding the operation of circular comparison in the prior inquiry technology and overcoming the defect of the circular comparison during inquiryThe randomness of the method enables the query to be more targeted, not only reduces the time consumed during the query, but also reduces the resources occupied by the computer during the query.

Description

Method for quickly searching information from set, electronic equipment and storage medium
Technical Field
The invention belongs to the field of computers, and particularly relates to a method for quickly searching information from a set, electronic equipment and a storage medium.
Background
In the existing computer data query technology, by comparing the queried features with the objects in the database one by one, whether the current object contains the features is judged, if yes, the current object is called out, the search process is ended, otherwise, the current object is skipped, and whether the next object meets the requirements is continuously and circularly judged.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a method for quickly searching information from a set.
In order to solve the technical problems, the invention adopts the following technical scheme:
a method for quickly searching information from a set comprises the operation of searching information from a set, wherein the set comprises a plurality of groups of objects xnEach group of objects xnEach corresponding to a unique computer index inThe object xnComprises an element part consisting of a number of features, wherein N is equal to N*
When searching information, determining the object x to which the characteristic belongs according to the input characteristicnIndex i ofnAnd passes through the index inExtracting the corresponding object xn
Compared with the prior art, the method improves the speed of information query, and determines the corresponding index by using the characteristics during query by respectively corresponding each object in the set with a unique index in the computer, and extracts the object corresponding to the index to complete the query of the information, thereby avoiding the operation of circular comparison in the prior query technology, overcoming the randomness during query, leading the query to be more targeted, reducing the time consumed during query, and reducing the resources occupied by the computer during query.
Preferably, the index inThe number of the query is positive integer, so that the running speed of the program is increased, and the query time is shortened.
Preferably, the object xnFurther comprises a code part IDnSaid code part IDnIs set to be equal to the index inSame number code, where N ∈ N*By setting a coding part IDnThe method is favorable for inputting information when the set is formed, and facilitates the sorting and sequencing of the information.
Preferably, when searching for information, the object x to which the feature belongs is determined according to the input featurenIs encoded by the encoding part IDnAnd by the coded partial IDnDirectly determining the computer index inDue to encoding of part IDnAnd index inIs a digital character, so the running speed of the program can be effectively improved.
Preferably, the step of establishing the set comprises: selecting a digital code from a database to form a set of objects xnIs encoded by the encoding part IDnBy the coded partial IDnSetting and the set of objects xnCorresponding computer index inAnd entering features extracted from the database to form the set of objects xnThe elemental part of (1). The formation rule of the set is convenient and fast, clear in order and easy to operate.
Preferably, the query schema information is generated while establishing the set, wherein the query schema information is composed of each object xnWhen searching for information, by querying the schema informationTo determine the corresponding object xnIndex i ofnThereby extracting a corresponding object xn. The query convenience can be improved by forming the query outline information, and the user can know the content of the set more clearly by arranging the query outline.
The invention also provides an electronic device, which comprises a processor and a memory, wherein the processor and the memory are in communication with each other, and the memory is used for storing executable instructions, so that the processor executes the instructions to realize the method for quickly searching the information from the set.
The present invention also provides a storage medium storing a computer program which, when executed by a processor, implements the above-described method for quickly finding information from a collection.
Drawings
FIG. 1 is a flow diagram of one embodiment of a method for quickly locating information from a collection;
FIG. 2 is a schematic diagram of a set composition;
FIG. 3 is a flow chart of one embodiment of a collection;
FIG. 4 is a schematic diagram of a specific configuration of an object;
FIG. 5 is a flow diagram of one embodiment of a method for quickly locating information from a collection;
FIG. 6 is a flow chart of one particular form of aggregation.
Detailed Description
The following describes embodiments of the present invention with reference to the drawings.
The first embodiment is as follows:
referring to fig. 1 to fig. 3, the present embodiment provides a method for quickly searching information from a set, including an operation of searching information from a set that has been established before information search is performed, where the set includes a plurality of groups of objects xnEach group of objects xnEach corresponding to a unique computer index inThe object xnComprising an element part, said elementThe element part consists of a plurality of characteristics, wherein N belongs to N*(ii) a The computer index inIs a self-contained functional feature of the existing computer, wherein the index inPurely numeric characters, english characters, or other characters may be used that may represent that the index is the only one present.
When searching information, determining the object x to which the characteristic belongs according to the input characteristicnIndex i ofnAnd passes through the index inExtracting the corresponding object xn
Referring to fig. 3, for example, in an embodiment of searching for personal information, before information query, required features are screened and extracted from a personal information database, and are stored according to a certain classification manner: setting a computer index inAnd inputting the extracted characteristics according to the requirements to form and index inCorresponding object xnAnd repeating the steps until all objects x are completednTo form a collection of related personal information. In the following, a description is given of an embodiment in which the set of people contains an object x1To x4Wherein the object xnThe element parts of (1) respectively comprise three characteristics of 'name', 'occupation' and 'gender', and each characteristic respectively has a corresponding value:
x1the element part of (a), a is Person (name: zhangsan, occupation: student, gender: male);
x2b, Person (name: liquad, occupation: teacher, sex: male);
x3c, C is Person (name: king, occupation: logistics, gender: woman);
x4the element part of (1) is D, D is Person (name is Zhao six, career is length, gender is female);
object x1Corresponding computer index i110, object x2Corresponding computer index i212, object x3Corresponding computer index i319, object x4Correspond toComputer index i425, the element parts of each object in the above set are respectively composed of characteristics such as "name", "occupation" and "sex", when detailed data of "wangwu" needs to be extracted, the "wangwu" is input to obtain an index of the corresponding object as 19, and an object x related to the "wangwu" is selected from the set according to the index3And (4) extracting. The present invention is not limited to the above embodiments, and can also be applied to information search in fields such as material information, warehouse management information, or others.
The invention improves the speed of information inquiry, and each object in the set corresponds to a unique index in the computer respectively, and the corresponding index is determined by utilizing the characteristics during inquiry, and the object corresponding to the index is extracted to finish the inquiry of the information, thereby avoiding the operation of circular comparison in the prior inquiry technology, overcoming the randomness during inquiry, leading the inquiry to be more targeted, reducing the time consumed during inquiry and also reducing the resources occupied by the computer during inquiry.
As an improved scheme, in order to increase the query speed and reduce the occupied resources when the computer queries, the index inSet to a positive integer.
Referring to fig. 4 and fig. 6, the object x is based on the above improved schemenFurther comprises a code part IDn,n∈N*The coding part is set to be corresponding to the index inSame number code, where N ∈ N*When searching information, determining the object x to which the characteristic belongs according to the input characteristicnIs encoded by the encoding part IDnIs equal to the index inDirectly determining said computer index in
For example, in the above-described set of person information, object x1Is encoded by the encoding part ID1Computer index i110, object x2Is encoded by the encoding part ID2Computer index i212, object x3Is encoded by the encoding part ID3Computer index i319, object x4Is encoded by the encoding part ID4Computer indexi1When inquiring information, 25, according to the input characteristic, determining the corresponding coding part, and directly determining the computer index i by the coding partnBecause the coding part and the computer index are digital codes, the running speed of the program can be further improved, and the query efficiency is improved.
Referring to fig. 6, on the basis of the above improved scheme, the step of establishing the set includes:
selecting a digital code from a database to form a set of objects xnIs encoded by the encoding part IDnBy the coded partial IDnSetting and the set of objects xnCorresponding computer index inAnd entering features extracted from the database to form the set of objects xnThe elemental part of (1).
Repeating the above steps until all the objects x are completednTo form a set.
It should be noted that the database described in the present invention is already established before the information search is performed, and the establishment manner does not affect the implementation of the present invention, for example, the database may be implemented by establishing a table, in which various related information and codes are pre-stored.
For example, when the set of the related person information is formed, different numerical codes are selected from the database to form the objects x in the setnIs encoded by the encoding part IDnAnd is specifically ID1=10、ID2=12、ID3=19、ID425 and by the corresponding coding part IDnSetting and the set of objects xnCorresponding computer index inSo that the set computer index inIs set to correspond to the coded part IDnIdentical purely digital characters, in particular i1=10、i2=12、i3=19、i425, and respectively inputting the related personnel information extracted from the database according to the requirements to form a corresponding object xnUntil all objects x are completed, the steps are repeatednThus constituting a collection of information about the person.
In a specific embodiment, when searching for information, the user can obtain the corresponding object x by inputting features on the pagenIndex i ofnFor example, through a pop-up page, the features to be queried are input in the pop-up page, after the features are determined, the computer runs a query operation, extracts the corresponding object and returns the object to the user.
In a specific embodiment, query schema information is generated while establishing the set, wherein the query schema information is composed of objects xnWhen searching information, the corresponding object x is determined by selecting one of the characteristics in the query outline informationnIndex i ofnThereby extracting a corresponding object xnThe query method is convenient and fast, and a step of inputting features by a user is omitted, for example, a query schema about the person information is generated while forming the set of the person information, the query schema information is composed of features of each object in the set, for example, the query schema information includes features of names such as "zhang san", "li xi", "wang wu", "zhao xi", and the like, one of the features is selected by clicking to determine an index of the corresponding object, so that the corresponding object is extracted through the index to complete the query of the information.
Example two:
the embodiment provides an electronic device, which includes a processor and a memory, where the processor and the memory are in communication with each other, and the memory is used for storing executable instructions, so that when the processor executes the instructions, the method for quickly searching information from a set according to the first embodiment is implemented.
The electronic device provided above can perform operations related to the method for quickly searching information from a set provided in the first embodiment, and has corresponding functions and advantages.
Example three:
the present embodiment provides a storage medium storing a computer program, which when executed by a processor implements the method for quickly searching information from a collection according to the first embodiment.
The storage medium provided above stores a computer program related to the operations of the method for quickly searching information from a collection provided in the first embodiment, and has corresponding functions and advantages.
Variations and modifications to the above-described embodiments may occur to those skilled in the art, which fall within the scope and spirit of the above description. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and variations of the present invention should fall within the scope of the claims of the present invention. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

Claims (9)

1. A method for quickly searching information from a set, which is characterized by comprising the operation of searching information from a set established by a plurality of groups of objects xnEach group of objects xnEach corresponding to a unique computer index inThe object xnComprises an element part consisting of a number of features, wherein N is equal to N*
When searching information, determining the object x to which the characteristic belongs according to the input characteristicnIndex i ofnAnd passes through the index inExtracting the corresponding object xn
2. The method of claim 1, wherein the index i is a set of indicesnIs a positive integer.
3. The method of claim 2, wherein the object x is a collection of objectsnFurther comprises a code part IDnSaid code part IDnIs set to be equal to the index inSame number code, where N ∈ N*
4. According toA method for quickly searching information from a collection as claimed in claim 3, characterized in that, when searching information, the object x to which the characteristic belongs is determined according to the input characteristicnIs encoded by the encoding part IDnAnd by the coded partial IDnDirectly determining the computer index in
5. The method of claim 3, wherein the step of creating the set comprises:
selecting a digital code from a database to form a set of objects xnIs encoded by the encoding part IDnBy the coded partial IDnSetting and the set of objects xnCorresponding computer index inAnd entering features extracted from the database to form the set of objects xnThe elemental part of (1).
6. The method of claim 1, wherein the step of creating the set comprises:
setting a computer index inAnd entering features extracted from the database to form the index inCorresponding object xnThe elemental part of (1).
7. The method according to any one of claims 1 to 5, wherein the query schema information is generated while the set is being built, wherein the query schema information is composed of objects xnWhen searching information, the corresponding object x is determined by selecting one of the characteristics in the query outline informationnIndex i ofnThereby extracting a corresponding object xn
8. An electronic device comprising a processor and a memory, the processor and the memory being in communication with each other, the memory being configured to store executable instructions that, when executed by the processor, implement a method for quickly retrieving information from a collection as claimed in any one of claims 1 to 7.
9. A storage medium storing a computer program, wherein the computer program, when executed by a processor, implements a method for quickly finding information from a collection according to any one of claims 1 to 7.
CN201911172042.2A 2019-11-26 2019-11-26 Method for quickly searching information from set, electronic equipment and storage medium Pending CN111143349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911172042.2A CN111143349A (en) 2019-11-26 2019-11-26 Method for quickly searching information from set, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911172042.2A CN111143349A (en) 2019-11-26 2019-11-26 Method for quickly searching information from set, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111143349A true CN111143349A (en) 2020-05-12

Family

ID=70516693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911172042.2A Pending CN111143349A (en) 2019-11-26 2019-11-26 Method for quickly searching information from set, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111143349A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6427145B1 (en) * 1999-06-30 2002-07-30 Hitachi, Ltd. Database processing method, apparatus for carrying out the same and medium storing processing program
JP2005056223A (en) * 2003-08-06 2005-03-03 Inax Corp Text data retrieval system, method therefor and its program
CN101676899A (en) * 2008-09-18 2010-03-24 上海宝信软件股份有限公司 Profiling and inquiring method for massive database records
CN102043782A (en) * 2009-10-19 2011-05-04 英业达股份有限公司 Search system and method capable of establishing index according to codes
CN102262640A (en) * 2010-05-31 2011-11-30 中国移动通信集团贵州有限公司 Method and device for full-text retrieval of document database
US20120197864A1 (en) * 2009-08-31 2012-08-02 Bourdoncle Francois Trusted query system and method
US9275155B1 (en) * 2015-01-23 2016-03-01 Attivio Inc. Querying across a composite join of multiple database tables using a search engine index
CN106227788A (en) * 2016-07-20 2016-12-14 浪潮软件集团有限公司 Database query method based on Lucene
CN107239454A (en) * 2016-03-28 2017-10-10 福建天晴数码有限公司 Search method and system based on text database
US20180129708A1 (en) * 2016-11-04 2018-05-10 International Business Machines Corporation Query processing management in a database management system
CN110201393A (en) * 2019-05-29 2019-09-06 北京金山安全软件有限公司 Configuration data storage method and device and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6427145B1 (en) * 1999-06-30 2002-07-30 Hitachi, Ltd. Database processing method, apparatus for carrying out the same and medium storing processing program
JP2005056223A (en) * 2003-08-06 2005-03-03 Inax Corp Text data retrieval system, method therefor and its program
CN101676899A (en) * 2008-09-18 2010-03-24 上海宝信软件股份有限公司 Profiling and inquiring method for massive database records
US20120197864A1 (en) * 2009-08-31 2012-08-02 Bourdoncle Francois Trusted query system and method
CN102043782A (en) * 2009-10-19 2011-05-04 英业达股份有限公司 Search system and method capable of establishing index according to codes
CN102262640A (en) * 2010-05-31 2011-11-30 中国移动通信集团贵州有限公司 Method and device for full-text retrieval of document database
US9275155B1 (en) * 2015-01-23 2016-03-01 Attivio Inc. Querying across a composite join of multiple database tables using a search engine index
CN107239454A (en) * 2016-03-28 2017-10-10 福建天晴数码有限公司 Search method and system based on text database
CN106227788A (en) * 2016-07-20 2016-12-14 浪潮软件集团有限公司 Database query method based on Lucene
US20180129708A1 (en) * 2016-11-04 2018-05-10 International Business Machines Corporation Query processing management in a database management system
CN110201393A (en) * 2019-05-29 2019-09-06 北京金山安全软件有限公司 Configuration data storage method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US9870392B2 (en) Retrieval method and system
CN110019647B (en) Keyword searching method and device and search engine
CN107092659B (en) Universal tree structure storage and analysis method
US20120084291A1 (en) Applying search queries to content sets
CN107590128B (en) Paper homonymy author disambiguation method based on high-confidence characteristic attribute hierarchical clustering method
CN106503223B (en) online house source searching method and device combining position and keyword information
CN102053992A (en) Clustering method and system
CN101794307A (en) Vehicle navigation POI (Point of Interest) search engine based on internetwork word segmentation idea
CN108846016A (en) A kind of searching algorithm towards Chinese word segmentation
CN104636429A (en) Trademark category retrieval method and device
US20180276244A1 (en) Method and system for searching for similar images that is nearly independent of the scale of the collection of images
CN104572685A (en) Data ranking method
CN115563313A (en) Knowledge graph-based document book semantic retrieval system
CN111274454B (en) Spatio-temporal data processing method and device, electronic equipment and storage medium
CN103500222A (en) Method and device for searching for chat object through communication software
CN110442741A (en) A kind of mutual search method of cross-module state picture and text for merging and reordering based on tensor
CN112182264B (en) Method, device and equipment for determining landmark information and readable storage medium
CN102981607B (en) With the computer implemented method of predefine order arrangement text items
CN106484782B (en) A kind of large-scale medical image retrieval based on the study of multicore Hash
CN102385597A (en) Fault-tolerant searching method for point of interest (POI)
CN111143349A (en) Method for quickly searching information from set, electronic equipment and storage medium
CN111190937A (en) Native place information query method and device, electronic equipment and storage medium
CN106294784B (en) resource searching method and device
KR101052220B1 (en) Skyline Query Execution Device and Method Including Search Terms
CN106021475A (en) Multi-mixing method product information classification and coding method

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