CN107870935A - A kind of searching method and device - Google Patents

A kind of searching method and device Download PDF

Info

Publication number
CN107870935A
CN107870935A CN201610854408.4A CN201610854408A CN107870935A CN 107870935 A CN107870935 A CN 107870935A CN 201610854408 A CN201610854408 A CN 201610854408A CN 107870935 A CN107870935 A CN 107870935A
Authority
CN
China
Prior art keywords
target
key
value
concordance list
critical information
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
CN201610854408.4A
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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201610854408.4A priority Critical patent/CN107870935A/en
Priority to PCT/CN2017/103621 priority patent/WO2018059430A1/en
Publication of CN107870935A publication Critical patent/CN107870935A/en
Pending legal-status Critical Current

Links

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
    • 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

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)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiments of the invention provide a kind of searching method and device, method includes:Determine target classification attribute corresponding to target critical information and target critical information that search condition includes;According to default conversion regime, target critical information is converted into target reference;The object key Key corresponding to target reference is searched in the target concordance list corresponding to target classification attribute;Record has the corresponding relation of the Key and reference value in Key value Value databases in target concordance list, wherein, reference value corresponding to every Key is:According to default conversion regime, key message corresponding to target classification attribute in Value corresponding to the Key is changed obtained by value;Based on the target Key found, search result is obtained.Using the embodiment of the present invention, the search efficiency scanned in Key Value databases based on Value contents is improved.

Description

A kind of searching method and device
Technical field
The present invention relates to search technique field, more particularly to a kind of searching method and device.
Background technology
At present, Key-Value (key-value) databases due to inquiry velocity is fast, storage data volume is big, support high concurrent and by Extensive use.But Key-Value databases are primarily adapted for use in and scanned for based on Key (key), and based in Value (value) The search of appearance and imperfection.
Such as:Redis databases, it is a kind of Key-Value databases, it only supports to carry out Key by Keys orders Fast search, if necessary to being scanned for Value contents, then with to be searched after data in Value can only be taken out Data are compared one by one.
It can be seen that for Key-Value databases, the searcher that is scanned in the prior art based on Value contents The shortcomings that search efficiency is relatively low be present in formula.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of searching method and device, to improve in Key-Value databases In the search efficiency that is scanned for based on Value contents.Concrete technical scheme is as follows:
In a first aspect, the embodiments of the invention provide a kind of searching method, methods described can include:
Determine target classification attribute corresponding to target critical information that search condition includes and the target critical information;
According to default conversion regime, the target critical information is converted into target reference;
The target corresponding to the target reference is searched in the target concordance list corresponding to the target classification attribute Key Key;Record has the corresponding relation of the Key and reference value in Key- value Value databases in the target concordance list, wherein, Reference value corresponding to every Key is:According to the default conversion regime, to target classification category described in Value corresponding to the Key Key message corresponding to property changed obtained by value;
Based on the target Key found, search result is obtained.
Second aspect, the embodiments of the invention provide a kind of searcher, described device can include:
Determining unit, for determining corresponding to target critical information that search condition includes and the target critical information Target classification attribute;
Converting unit, for according to default conversion regime, the target critical information to be converted into target reference;
Searching unit, for searching the target reference in the target concordance list corresponding to the target classification attribute Corresponding object key Key;Record has pair of the Key and reference value in Key- value Value databases in the target concordance list It should be related to, wherein, reference value corresponding to every Key is:According to the default conversion regime, to institute in Value corresponding to the Key Key message corresponding to stating target classification attribute changed obtained by value;
Acquiring unit, for based on the target Key found, obtaining search result.
In embodiments of the present invention, the target critical information and the target critical information pair that search condition includes are determined The target classification attribute answered, according to default conversion regime, by the target critical information in search condition, be converted to object reference Value.After target Key corresponding to the target reference is found in target concordance list corresponding to the target classification attribute, it is based on Target Key, obtain search result.In this programme, it is not necessary to directly searched for according to search condition in Key-Value databases Value including search condition, but target Key is first determined by concordance list, target Key is then recycled from Key-Value Value values corresponding to being searched in database, as search result.So when search condition is Value content, it can improve Search efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
A kind of searching method flow chart that Fig. 1 is provided by the embodiment of the present invention;
Fig. 2 is the method flow diagram that target concordance list is built in the embodiment of the present invention;
A kind of structural representation for searcher that Fig. 3 is provided by the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
In order to improve the search efficiency scanned in Key-Value databases based on Value contents, the present invention is implemented Example provides a kind of searching method and device.
Searching method provided in an embodiment of the present invention is illustrated first below.
Can be to be arranged at equipment special secondary school it is understood that realizing the functional software of searching method of the embodiment of the present invention Door is used for the software that is scanned for Key-Value databases, or be arranged in equipment it is existing, for Key- Feature card in the software that Value databases scan for.
Wherein, the equipment can be the terminal devices such as desktop computer, notebook computer and mobile phone or service Device, this is all rational;In addition, the Key-Value databases can be Redis databases, it is not limited thereto certainly.
As shown in figure 1, searching method provided in an embodiment of the present invention, may include steps of:
S101:Determine target classification corresponding to target critical information that search condition includes and the target critical information Attribute;
Wherein, when needs are in key Key- value Value databases, when search includes the Value of the search condition, elder generation is really Target critical information included by the fixed search condition, and target classification attribute corresponding to the target critical information.
It should be noted that include Value and Key in Key-Value databases, and every Value uniquely corresponds to one Individual Key.For example, record has N datas in Key-Value databases, the full content per data is the data Value, then the Key-Value databases N number of Value be present;A Key is corresponded to because each Value is unique, then the Key- N number of Key be present in Value databases.
In addition, the search condition can be the data for the search interface input that user shows in equipment, search circle Face is the human-computer interaction interface of search Key-Value databases;Certainly, the search condition can also be transmitted by other equipment Data.
For example, record has student number, and student information corresponding to student number in Key-Value databases.Wherein, each Student number is a Key, and student information corresponding to each student number is Value, and student information includes name, age and professional decile Generic attribute.
It is Zhang San when requiring to look up name in Key-Value databases, can be with when the age is all information of the people of 26 years old Determine that search condition including a target critical information is Zhang San, another target critical information is 26 years old, and determines to obtain Zhang San corresponding to target classification attribute be name, target classification attribute corresponding to 26 years old is the age.
S102:According to default conversion regime, the target critical information is converted into target reference;
Wherein, it is determined that after search condition, identified target critical information can be changed according to default conversion regime For target reference, that is, by identified target critical information be converted to one can target critical described in unique mark believe The numeral of breath.
Requiring emphasis is, can use existing conversion regime, target critical information is converted into target reference, in order to clear Clear layout, subsequently default conversion regime is illustrated.
S103:Searched in the target concordance list corresponding to the target classification attribute corresponding to the target reference Object key Key;Record has the corresponding relation of the Key and reference value in Key- value Value databases in the target concordance list, its In, reference value corresponding to every Key is:According to the default conversion regime, to target described in Value corresponding to the Key point Key message corresponding to generic attribute changed obtained by value;
It should be noted that every kind of classification category can be prestored in embodiments of the present invention, in Key-Value databases Concordance list corresponding to property;Each concordance list includes:Key, reference value in Key-Value databases, and Key and reference value Corresponding relation.Wherein reference value is to use the default conversion regime, and the key message corresponding to categorical attribute is turned Change acquisition.
With reference to table one and table two, the target concordance list in this programme is illustrated.
Referring to table one, table one is the target concordance list corresponding to name categorical attribute, i.e. name concordance list:
Table one
Wherein, being recorded in name concordance list has:Reference value 100 corresponding to name " Zhang San " corresponding to student number 1, student number 1, with And student number 1 and the corresponding relation of reference value 100;Reference value 200 corresponding to name " Li Si " corresponding to student number 2, student number 2, and Student number 2 and the corresponding relation of reference value 200 etc..Wherein, student number Key;The reference value 100 is according to default conversion side Formula, carry out what numerical value was converted to " Zhang San ";The reference value 200 is according to default conversion regime, enters line number to " Li Si " What value was converted to, and the default conversion regime of reference value conversion is carried out to name categorical attribute, referred to above-mentioned steps S102 To name categorical attribute carry out target reference conversion default conversion regime it is identical.
When requiring to look up the information of people that name in Key-Value databases is Zhang San, determine that target critical information is Zhang San, and the target classification attribute corresponding to Zhang San is name;According to default conversion regime, Zhang San is converted into object reference Value 100;Name concordance list is searched using target reference 100.
Referring to table two, table two is the target concordance list corresponding to character classification by age attribute, i.e. age concordance list:
Table two
Wherein, in age concordance list there is record:Reference value 26 corresponding to age " 26 " corresponding to student number 1, student number 1, and The corresponding relation of student number 1 and reference value 26;Reference value 26 corresponding to age " 26 " corresponding to student number 2, student number 2, and the He of student number 2 Corresponding relation of reference value 26 etc..Wherein, student number Key;The reference value 26 is according to default conversion regime, and " 26 " are entered Line number value is converted to, and this carries out the default conversion regime of reference value conversion to character classification by age attribute, with above-mentioned steps The default conversion regime that reference value conversion is carried out to character classification by age attribute that S102 is referred to is identical.
When requiring to look up the information of people that the age in Key-Value databases is 26 years old, determine that target critical information is 26 years old, and the target classification attribute corresponding to 26 years old is the age;According to default conversion regime, object reference was converted to by 26 years old Value 26;The age concordance list is searched using target reference 26.
It is emphasized that table one and table two provide corresponding to reference value it is merely illustrative, do not form to default conversion The restriction of mode.
It is understood that this kind by way of target reference scans for, can directly be compared using numerical value Compared with, it is fast relative to the speed being compared using other kinds of character string, drastically increase search efficiency.
S104:Based on the target Key found, search result is obtained.
Wherein, when according to a target critical information inquiry to one or more target Key, target Key will be found Corresponding Value contents are directly as search result.
When target critical information is at least two, the target that will can be found according to each target critical information Key takes common factor, obtains common K ey, and the Value corresponding to common K ey described in Key-Value databases ties as search Fruit.For example, obtained with reference to above-mentioned example:
It is Zhang San when searching name in Key-Value databases, when the age is all information of the people of 26 years old, based on mesh Key message Zhang San is marked, target Key1 (i.e. student number 1) is found in name concordance list;Based on target critical information 26 years old, Target Key1 (i.e. student number 1) and target Key2 (i.e. student number 2) are found in age concordance list.Then the target Key found is taken Occur simultaneously, the common K ey of acquisition is target Key1, now by target Key1 corresponding to Value, as search result.
In addition, being scanned for according to above-mentioned two target critical information to the Key-Value databases, do not search During to target Key, the prompting that can not find search result can be returned to user.
In embodiments of the present invention, the target critical information and the target critical information pair that search condition includes are determined The target classification attribute answered, according to default conversion regime, by the target critical information in search condition, be converted to object reference Value.After target Key corresponding to the target reference is found in target concordance list corresponding to the target classification attribute, it is based on Target Key, obtain search result.In this programme, it is not necessary to directly searched for according to search condition in Key-Value databases Value including search condition, but target Key is first determined by concordance list, target Key is then recycled from Key-Value Value values corresponding to being searched in database, as search result.So when search condition is Value content, it can improve Search efficiency.
Target critical information and target classification attribute are further described below.
For example, when the search condition of user is:The Value daily record generation time is in search Key-Value databases During the daily record of " 20160507 ", then " 20160507 " can be defined as to target critical information, the daily record generation time is defined as institute State the target classification attribute corresponding to " 20160507 ".When the search condition of user is:Search in Key-Value databases When Value log content is the daily record of " deletion client ", log content " deletion client " is defined as target critical letter Breath, log content are defined as target classification attribute corresponding to " the deletion client ".
It is understood that the example above is merely illustrative, should not form to target critical information and target classification attribute Restriction.
With reference to above-mentioned to target critical information and the specific example of target classification attribute, to target critical information is converted to The default conversion regime of target reference illustrates.
For example, when target critical information is date " 20160507 ", i.e., when target critical information is pure digi-tal, preset Conversion regime can be:Target critical information is continued to use, then the target reference corresponding to target critical information 20160507 is 20160507.Certainly presetting conversion regime can also be:A millisecond number is converted into by 20160507, then target critical information Target reference corresponding to 20160507 is 1462593600000.Wherein, it is existing skill to be converted into millisecond number by 20160507 Art, specific conversion method is not described in detail herein.
, can be according to corresponding to default " deletion client " when target critical information is defined as " deletion client " Numeral, such as 1101, then the deletion client is converted into target reference 1101.Key message corresponding to every kind of categorical attribute Corresponding reference value, it can pre-set and preserve.
It is understood that the example above is merely illustrative, it is not the specific restriction to presetting conversion regime.
It is understood that as a kind of embodiment, can it is determined that the target critical information that search condition includes, and Before target classification attribute corresponding to the target critical information, target concordance list corresponding to the target classification attribute is built.I.e. Structure obtains target concordance list in advance, when performing search operation, the target concordance list need to be only called, improve search Speed.
As another embodiment, institute can also searched in the target concordance list corresponding to the target classification attribute Before stating the target Key corresponding to target reference, the operation of structure target concordance list is performed.So that constructed target index Table is newest concordance list, improves the search degree of accuracy.
The step of below to building target concordance list corresponding to the target classification attribute, illustrates, as shown in Fig. 2 structure The target concordance list is built to may include steps of:
S1:Obtain multiple Key in Key-Value databases;
Wherein, when needing to build target concordance list corresponding to the Key-Value databases, it is necessary to described in first obtaining Multiple Key included in Key-Value databases.
For example, it is assumed that N bar daily records, the corresponding Key of every daily record are included in Key-Value databases.Work as needs It is, it is necessary to first obtain corresponding to the N bar daily records when daily record generates the target concordance list corresponding to the time to build target classification attribute Key.Wherein, Key corresponding to every daily record being capable of unique mark this daily record.
S2:Obtain Value corresponding to each Key;
Wherein it is possible to according to the Key of acquisition, Value contents corresponding to the Key are found.N number of Key be present for example, working as When, then corresponding N bars Value contents can be found, this is prior art, and it is not described here in detail.
S3:Institute in the Value according to corresponding to Value corresponding to each Key determines the first Key and the first Key State the first key message corresponding to target classification attribute;First Key is that the Key-Value databases include the mesh Mark Key corresponding to the Value of key message corresponding to categorical attribute;
After the Value contents corresponding to each Key are obtained, target classification attribute described in every Value content is searched Corresponding key message.Value contents are included into Key corresponding to the Value of key message corresponding to target classification attribute, It is defined as the first Key;By key message corresponding to target classification attribute is defined as first described in Value corresponding to the first Key Key message.
For example, N bar daily records, the corresponding Key of every daily record are stored with Key-Value databases.It is such as a certain It is 20160101 that the daily record generation time is stored with bar daily record, the information such as log content " deletion client ", and this daily record pair The Key1 answered is the journal number of this daily record.After it is determined that target classification attribute is log content, it is Sino-Japan to obtain this daily record First key message corresponding to will content, that is, the first key message is obtained to delete client.
S4:According to the default conversion regime, first key message is converted into the first reference value;
Wherein, according to default conversion regime, the first key message of Value corresponding to each first Key is converted to One reference value.Such as by above-mentioned first key message " deletion client ", it is corresponding according to the deletion client set in advance Transforming numerical, switched to the first reference value 1101.
S5:Target concordance list corresponding to the target classification attribute is generated, wherein, record has the in the target concordance list One Key and the first reference value corresponding relation.
For above-mentioned example, generate the target classification attribute corresponding to target concordance list, refer to generate in the daily record Log content concordance list corresponding to appearance.Record has journal number with the first ginseng corresponding to log content in the log content concordance list Examine the corresponding relation between value.
It should be noted that the structure to target concordance list can be realized by above-mentioned S1-S5, certain structure flow It is merely exemplary, it should not form the restriction of the sequencing to building target concordance list.
Alternatively, the corresponding relation in the target concordance list generated is deposited according to reference value ascending order mode or descending mode Storage.
It is understood that because search procedure needs to be matched using target concordance list, therefore in order to improve matching Speed, according to reference value ascending order mode or descending mode, the corresponding relation in target concordance list is stored.This kind of sequence side Formula, while being ranked up according to reference value progress ascending order mode or descending mode, the Key corresponding to reference numeral is also entered Sequence is gone.
For example, Key-Value databases include N bar daily records, the Key of every daily record is journal number.Journal number is 1 Log content is " deletion client ", and according to default conversion regime, " deletion client " is converted into reference value 12345678;Compile Number log content for being 2 is " modification client ", and according to default conversion regime, " modification client " is converted into reference value 12345679;……;The keyword for the daily record that numbering is N is " detection client ", will " detection visitor according to default conversion regime Family end " is converted to reference value 123xxxxx.Wherein, the bigger corresponding reference value of number value is bigger.
Therefore the ascending sort established based on reference value to corresponding relation is:1(12345678)→2(12345679) →……→N(123xxxxx)。
It is understood that Key-Value databases, such as Redis databases, can be by way of sorted set Store above-mentioned sequencing information.Wherein sorted set mode is prior art, this kind of storage mode is not done specifically retouched herein State.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of searcher, as shown in figure 3, this is searched Rope device can include:
Determining unit 301, for determining target critical information and the target critical information pair that search condition includes The target classification attribute answered;
Converting unit 302, for according to default conversion regime, the target critical information to be converted into target reference;
Searching unit 303, for searching the target ginseng in the target concordance list corresponding to the target classification attribute Examine the corresponding object key Key of value;Record has the Key and reference value in Key- value Value databases in the target concordance list Corresponding relation, wherein, reference value corresponding to every Key is:According to the default conversion regime, to Value corresponding to the Key Described in key message corresponding to target classification attribute changed obtained by value;
Acquiring unit 304, for based on the target Key found, obtaining search result.
In embodiments of the present invention, the target critical information and the target critical information pair that search condition includes are determined The target classification attribute answered, according to default conversion regime, by the target critical information in search condition, be converted to object reference Value.After target Key corresponding to the target reference is found in target concordance list corresponding to the target classification attribute, it is based on Target Key, obtain search result.In this programme, it is not necessary to directly searched for according to search condition in Key-Value databases Value including search condition, but target Key is first determined by concordance list, target Key is then recycled from Key-Value Value values corresponding to being searched in database, as search result.So when search condition is Value content, it can improve Search efficiency.
Alternatively, when the search condition that the determining unit determines includes at least two target key messages;Institute Searching unit 303 is stated to be specifically used for:
Common factor is taken to the target Key found based on each target critical information, obtains common K ey;
By the Value corresponding to the common K ey, as search result.
Alternatively, described device can also include:
Construction unit, for determining the target critical information and the target that search condition includes in the determining unit Before target classification attribute corresponding to key message, target concordance list corresponding to the target classification attribute is built.
Alternatively, construction unit is specifically used for:
Obtain multiple Key in Key-Value databases;
Obtain Value corresponding to each Key;
The mesh described in Value according to corresponding to Value corresponding to each Key determines the first Key and the first Key Mark the first key message corresponding to categorical attribute;First Key is that the Key-Value databases include the target point Key corresponding to the Value of key message corresponding to generic attribute;
According to the default conversion regime, first key message is converted into the first reference value;
Target concordance list corresponding to the target classification attribute is generated, wherein, record has first in the target concordance list Key and the first reference value corresponding relation.
Alternatively, the corresponding relation in the target concordance list constructed by construction unit is according to reference value ascending order mode or descending Mode stores.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for system For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (10)

  1. A kind of 1. searching method, it is characterised in that including:
    Determine target classification attribute corresponding to target critical information that search condition includes and the target critical information;
    According to default conversion regime, the target critical information is converted into target reference;
    The object key corresponding to the target reference is searched in the target concordance list corresponding to the target classification attribute Key;Record has the corresponding relation of the Key and reference value in Key- value Value databases in the target concordance list, wherein, often Reference value corresponding to one Key is:According to the default conversion regime, to target classification attribute described in Value corresponding to the Key Corresponding key message changed obtained by value;
    Based on the target Key found, search result is obtained.
  2. 2. according to the method for claim 1, it is characterised in that the search condition includes at least two target critical letters Breath;
    It is described that search result is obtained based on the target Key found, including:
    Common factor is taken to the target Key found based on each target critical information, obtains common K ey;
    By the Value corresponding to the common K ey, as search result.
  3. 3. according to the method for claim 2, it is characterised in that in the target critical information that the determination search condition includes And before target classification attribute corresponding to the target critical information, in addition to:Build mesh corresponding to the target classification attribute Mark concordance list.
  4. 4. according to the method for claim 3, it is characterised in that target rope corresponding to the structure target classification attribute The step of drawing table, including:
    Obtain multiple Key in Key-Value databases;
    Obtain Value corresponding to each Key;
    The target described in Value point according to corresponding to Value corresponding to each Key determines the first Key and the first Key First key message corresponding to generic attribute;First Key is that the Key-Value databases include the target classification category Key corresponding to the Value of key message corresponding to property;
    According to the default conversion regime, first key message is converted into the first reference value;
    Generate target concordance list corresponding to the target classification attribute, wherein, in the target concordance list record have the first Key and The corresponding relation of first reference value.
  5. 5. according to the method described in claim any one of 1-4, it is characterised in that the corresponding relation in the target concordance list is pressed Stored according to reference value ascending order mode or descending mode.
  6. A kind of 6. searcher, it is characterised in that including:
    Determining unit, for determining target corresponding to target critical information that search condition includes and the target critical information Categorical attribute;
    Converting unit, for according to default conversion regime, the target critical information to be converted into target reference;
    Searching unit is right for searching the target reference institute in the target concordance list corresponding to the target classification attribute The object key Key answered;Record has the Key in Key- value Value databases is corresponding with reference value to close in the target concordance list System, wherein, reference value corresponding to every Key is:According to the default conversion regime, to mesh described in Value corresponding to the Key Mark categorical attribute corresponding to key message changed obtained by value;
    Acquiring unit, for based on the target Key found, obtaining search result.
  7. 7. device according to claim 6, it is characterised in that the search condition that the determining unit determines is included extremely Few two target key messages;
    The searching unit is specifically used for:
    Common factor is taken to the target Key found based on each target critical information, obtains common K ey;
    By the Value corresponding to the common K ey, as search result.
  8. 8. device according to claim 7, it is characterised in that also include:
    Construction unit, for determining the target critical information and the target critical that search condition includes in the determining unit Before target classification attribute corresponding to information, target concordance list corresponding to the target classification attribute is built.
  9. 9. device according to claim 8, it is characterised in that the construction unit is specifically used for:
    Obtain multiple Key in Key-Value databases;
    Obtain Value corresponding to each Key;
    The target described in Value point according to corresponding to Value corresponding to each Key determines the first Key and the first Key First key message corresponding to generic attribute;First Key is that the Key-Value databases include the target classification category Key corresponding to the Value of key message corresponding to property;
    According to the default conversion regime, first key message is converted into the first reference value;
    Generate target concordance list corresponding to the target classification attribute, wherein, in the target concordance list record have the first Key and The corresponding relation of first reference value.
  10. 10. according to the device described in claim any one of 6-9, it is characterised in that the corresponding relation in the target concordance list Stored according to reference numeral ascending order mode or descending mode.
CN201610854408.4A 2016-09-27 2016-09-27 A kind of searching method and device Pending CN107870935A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610854408.4A CN107870935A (en) 2016-09-27 2016-09-27 A kind of searching method and device
PCT/CN2017/103621 WO2018059430A1 (en) 2016-09-27 2017-09-27 Database searching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610854408.4A CN107870935A (en) 2016-09-27 2016-09-27 A kind of searching method and device

Publications (1)

Publication Number Publication Date
CN107870935A true CN107870935A (en) 2018-04-03

Family

ID=61752207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610854408.4A Pending CN107870935A (en) 2016-09-27 2016-09-27 A kind of searching method and device

Country Status (2)

Country Link
CN (1) CN107870935A (en)
WO (1) WO2018059430A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175176A (en) * 2019-05-31 2019-08-27 杭州复杂美科技有限公司 A kind of KV configuration method for database, querying method, equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866557B (en) * 2019-11-12 2022-12-13 贵州医渡云技术有限公司 Data evaluation method and device, storage medium and electronic device
CN112214571B (en) * 2020-10-10 2024-02-20 中国平安人寿保险股份有限公司 Index generation method, device, equipment and medium based on KV storage
CN116756301B (en) * 2023-08-17 2023-11-10 北京睿企信息科技有限公司 User information searching method, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092860A (en) * 2011-11-02 2013-05-08 中国移动通信集团四川有限公司 Search prompt message generation method and device
CN103514201A (en) * 2012-06-27 2014-01-15 阿里巴巴集团控股有限公司 Method and device for querying data in non-relational database
US20150269171A1 (en) * 2014-03-20 2015-09-24 Nec Corporation Information storage system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332030A (en) * 2011-10-17 2012-01-25 中国科学院计算技术研究所 Data storing, managing and inquiring method and system for distributed key-value storage system
CN104424258B (en) * 2013-08-28 2020-06-16 腾讯科技(深圳)有限公司 Multidimensional data query method, query server, column storage server and system
CN105574054B (en) * 2014-11-06 2018-12-28 阿里巴巴集团控股有限公司 A kind of distributed caching range query method, apparatus and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092860A (en) * 2011-11-02 2013-05-08 中国移动通信集团四川有限公司 Search prompt message generation method and device
CN103514201A (en) * 2012-06-27 2014-01-15 阿里巴巴集团控股有限公司 Method and device for querying data in non-relational database
US20150269171A1 (en) * 2014-03-20 2015-09-24 Nec Corporation Information storage system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175176A (en) * 2019-05-31 2019-08-27 杭州复杂美科技有限公司 A kind of KV configuration method for database, querying method, equipment and storage medium

Also Published As

Publication number Publication date
WO2018059430A1 (en) 2018-04-05

Similar Documents

Publication Publication Date Title
Dasu et al. Mining database structure; or, how to build a data quality browser
CN101119326B (en) Method and device for managing instant communication conversation record
CN104809117B (en) Video data aggregation processing method, paradigmatic system and video search platform
US7574446B2 (en) Converting arbitrary strings into numeric representations to facilitate complex comparisons
CN107870935A (en) A kind of searching method and device
CN102622371B (en) Historical association database system, implementation method and electronic learning equipment thereof
CN101369278B (en) Approximate adaptation method and apparatus
CN112100396A (en) Data processing method and device
CN112000790B (en) Legal text accurate retrieval method, terminal system and readable storage medium
CN103984700B (en) A kind of isomeric data analysis method for scientific and technological information vertical search
JP4769822B2 (en) Information search service providing server, method and system using page group
KR20110133909A (en) Semantic dictionary manager, semantic text editor, semantic term annotator, semantic search engine and semantic information system builder based on the method defining semantic term instantly to identify the exact meanings of each word
CN107291951B (en) Data processing method, device, storage medium and processor
CN104240107B (en) Community data screening system and method thereof
CN109918420B (en) Competitor recommendation method and server
EP2506540B1 (en) Enhanced contact information
Carmel et al. Entity oriented search and exploration for cultural heritage collections: the EU cultura project
CN109492117A (en) Patent data analysis system
CN105512270A (en) Method and device for determining related objects
JP2006023968A (en) Unique expression extracting method and device and program to be used for the same
CN104461494B (en) A kind of method and device for the data packet generating data processing tools
CN114706962A (en) Information retrieval method and device and knowledge graph construction method and device
JPH07146878A (en) Information retrieval device
GB2520993A (en) Indexing presentation slides
JP2006127325A (en) Content discovery apparatus, and content discovery 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180403

RJ01 Rejection of invention patent application after publication