Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
For solve existing each APP or website be the function of search block search that user provides content it is not comprehensive enough
The problem of, this specification embodiment provides a kind of content search method based on block chain.The side that this specification embodiment provides
The executing subject of method, which can be, but not limited to target search service end etc., can be configured as executing provided in an embodiment of the present invention be somebody's turn to do
At least one of square law device.
For ease of description, hereafter executing subject in this way is to be able to carry out the target search service end of this method to be
Example, is introduced the embodiment of this method.It is appreciated that the executing subject of this method is that content grabs platform only one kind
Illustrative explanation, is not construed as the restriction to this method.
Specifically, a kind of reality for content search method based on block chain that this specification one or more embodiment provides
Existing flow diagram is as shown in Figure 1, comprising:
Step 110, the searching request of user is received, the search key of the user is carried in the searching request;
Optionally, after obtaining the search key of user, in order to provide the user with the search key
With higher content is spent, to improve the accuracy of search, the content search experience of user is promoted, this specification embodiment is in base
In the search key of user, before obtaining the contents list to match with the search key of user, this method further include:
Content search record is obtained from block chain;
Wherein, the search key in content search record and the degree of association between corresponding content are greater than or equal to pre-
If threshold value, content search record is uploaded in block chain by other search service ends.
It should be understood that in order to enable the content search in target search service end more comprehensively and accuracy is higher, target is searched
Rope server-side can be obtained from block chain content search record, the content search record can by other search service end groups in
User searches in its corresponding APP or website and gets and periodically uploaded in block chain by other search service ends.For
The content search record to timely update in target search service end, target search service end can be with every preset time periods from area
Content search record is obtained in block chain.It in content search record may include multiple search keys and closed with this multiple search
The degree of association between content and each search key and corresponding content that keyword matches.
Wherein, the degree of association between each search key and corresponding content, can be based on user to each search key
The behavior operation note of corresponding content is calculated.Wherein, user operates the behavior of the corresponding content of each search key
Record may include: that user goes to the click behavior of the corresponding content of each search key, replication, splitting glass opaque, browsing
For and browsing duration.The degree of association between each search key and corresponding content is for corresponding to each search key interior
Hold and carry out ranking, ranking is showed into user in former higher contents of position, that is, degree of association, to improve search accuracy.
In general, the format of content includes the combination of one or more of text, image, video, audio, this just makes
The capacity for obtaining different content also can be different, only often smaller comprising its capacity of the content of text, and if in content including image, view
Frequency or audio, then can make the capacity of this kind of content larger.In order to reduce this kind of content be uploaded in block chain occupy it is a large amount of
Memory space, in this specification embodiment, target search service end is out of in the content search record obtained in block chain
Holding is usually the corresponding link of content.
Step 120, based on the search key of user, the contents list to match with the search key of user is obtained;
It should be understood that should safeguard a content search library in target search service end, searched in the content search library comprising multiple
Rope keyword content corresponding with this multiple search key, then, the search key based on user is obtained and is searched with user
The contents list that rope keyword matches specifically can be obtained in the content search library at target search service end and be searched with user
The contents list that rope keyword matches.In order to provide the user with more full search result, which searches this specification embodiment
Suo Ku is in addition to further including target search service comprising the existing search key in target search service end and corresponding content
Hold the search key uploaded by other search service ends downloaded from block chain and corresponding content.
Step 130, by least one target in the top with the degree of association of the search key of user in contents list
Content shows user, wherein content is acquired from block chain some or all of in the contents list.
Wherein, at least one object content in the top with the degree of association of the search key of user in contents list,
The content in contents list can specifically be carried out based on the degree of association of the search key of content and user in contents list
Sequence, for example can be ranked up according to the sequence of the degree of association from high to low, and by ranking in contents list in former
Appearance shows user, for example ranking in contents list can be showed user in preceding 10 contents.
Optionally, in order to provide the user with more accurate search result, this specification embodiment can also obtain user couple
The behavior operation note of search result, and the specified intelligent contract by being pre-configured in block chain is remembered to be based on behavior operation
Record calculates the degree of association between search key and corresponding content so that next user input same search key it
It afterwards, can be to show the higher content of the degree of association for user, to improve the search experience of user.Specifically, it is arranged by content
After at least one object content in the top with the degree of association of the search key of user shows user in table, this method
Further include:
Obtain behavior operation note of the user at least one object content;
The transaction that the content search for carrying user records is uploaded in block chain, to trigger the specified intelligence in block chain
Energy contract Behavior-based control operation note, determines the search key of user and the degree of association of at least one object content;
Wherein, user content search record include user search key, at least one object content link, with
And behavior operation note of the user to multiple object contents.
Optionally, user includes following at least one to the behavior operation note of at least one object content:
Replication of the user at least one object content;
Browsing duration of the user at least one object content;
Splitting glass opaque of the user at least one object content;
Click behavior of the user at least one object content.
It should be understood that due to the limited storage space in block chain, to be stored convenient for the behavior operation note to user,
This specification embodiment can preset the corresponding mark of different operation behaviors, for example user can be set at least one
Be identified as C, the user of the replication of object content are identified as R_time to the browsing duration of at least one object content
(time is specific duration, and unit can be the second), user are identified as S, use to the splitting glass opaque of at least one object content
Family is identified as D to the click behavior of at least one object content.
To determine the search key of user and being associated at least one object content convenient for Behavior-based control operation note
Degree, this specification embodiment can be pre-configured with specified intelligent contract in block chain, row of the specified intelligent contract in user
Triggering when being uploaded in block chain for operation note is also possible in multiple users to same search key in one
The behavior operation note of appearance is uploaded to triggering when in block chain.More specifically, can be preset in specified intelligent contract
The corresponding score value of every kind of operation behavior of user and corresponding weight, so that the specified intelligent behavior of the contract based on user
It is corresponding with every kind interior to calculate search key for the corresponding score value of every kind of operation behavior and corresponding weight in operation note
The degree of association between appearance.
Optionally, due between different search service ends may it is online under reached cooperation agreement, it is also possible to do not reach
Cooperation agreement, in this case, this specification embodiment can be under the content search record setting uploaded in block chain
Carry permission.Specifically, the content search record of user carries content share identification list, the content in content share identification list
Share mark, is used to indicate the permission for having the content search record of downloading user.That is, when target search service end from
When downloading the content search record of other search service ends upload in block chain, it can only download and carry target search service end mark
The content search of knowledge records.
Optionally, in the case where being provided with download permission, the method for this specification embodiment offer further include:
The content search record for the mark for carrying target search service end is obtained from block chain;
Wherein, the content search record for carrying the mark at target search service end, is uploaded to for other search service ends
In block chain;Carry the mark at target search service end content search record in include at least one search key,
And the corresponding content of at least one search key link and the chain of at least one search key and corresponding content
The degree of association between connecing.
Optionally, in order to guarantee the degree of association between each search key and corresponding content in target search service end
It is maintained at higher level, this specification embodiment provides two kinds and obtains the mark for carrying target search service end from block chain
Content search record mode: timer is locally located at target search service end in first way so that target search take
Business end every preset time period obtains the content search record for the mark for carrying target search service end from block chain;Second
Mode configures trigger condition in the specified intelligent contract in block chain, so that the specified intelligent contract in block chain, at other
Search service end is triggered when recording to the content search that block chain uploads the mark for carrying target search service end.
Specifically, the content search record for the mark for carrying target search service end is obtained from block chain, comprising:
Every preset time period obtains the content search record for the mark for carrying target search service end from block chain;
Or
Through the specified intelligent contract in block chain, out of, mark that obtain carrying target search service end in block chain
Hold search record.
Optionally, this specification embodiment can also by target search service end calculate user search key with extremely
The degree of association of a few object content, and after a computation, which is uploaded in block chain.By in contents list with
After the degree of association of search key at least one object content in the top shows user, this method further include:
Obtain behavior operation note of the user at least one object content;
Behavior-based control operation note determines the search key of user and the degree of association of at least one object content;
By the specified intelligent contract in block chain, the search key and at least one object content of user will be carried
The transaction of the degree of association be uploaded in block chain;
Wherein, user content search record include user search key, at least one object content link, with
And behavior operation note of the user to multiple object contents.
Below with actual scene shown in Fig. 2, the content search side based on block chain that this specification embodiment is provided
Method describes in detail, wherein A server-side and B server-side are search service end, and specific implementation process includes:
Local content search record is uploaded in block chain by S21, A server-side, and content search record includes multiple
Search key, the corresponding content link of multiple search keys and user are to the corresponding content of this multiple search key
The behavior operation note of link;
Wherein, user is to the behavior operation note of the corresponding content link of this multiple search key for triggering block chain
In specified intelligent contract calculate the degree of association between this multiple search key and corresponding content link.
S22, B server-side every preset time period download the content search record of other server-sides upload from block chain,
The content search records in addition to carrying multiple search keys, the corresponding content link of multiple search keys, also carries
There is the degree of association between multiple search keys and corresponding content link;
S23, user carries out content search in the corresponding APP of B server-side or browser, so that the corresponding APP of B server-side
Or browser sends searching request to B server-side, includes the search key of user in the searching request;
S24, B service based on local content search record and the content search record downloaded from block chain, search with
The contents list that the search key of user matches, and will be arranged in the contents list with the degree of association of the search key of user
The higher content of name is by APP or browser-presented to user;
S25, APP or browser obtain behavior operation note of the user to the content of displaying, for example click, share, replicating,
Browse the record such as duration, and by user information, the search key of user, user the corresponding content of search key and
The behavior operation note of the corresponding content of the search key of user is uploaded in block chain;
S26, the behavior operation note of the corresponding content of search key based on the user uploaded in block chain, triggering
Specified intelligent contract in block chain calculates and updates the degree of association between the search key of user and corresponding content;
For the accuracy for improving the degree of association, the specified intelligent contract in block chain can be in the key uploaded in block chain
When the behavior operation note of the corresponding content of word reaches preset quantity, that is, there is the user of preset quantity corresponding to same keyword
After the behavior operation note of content is uploaded in block chain, then the specified intelligent contract triggered in block chain calculates and updates this
The degree of association between keyword and corresponding content.
S27, A server-side download the content search record of other server-sides upload from block chain, wherein the content search
Including the pass between multiple keywords, the corresponding content of multiple keywords and multiple keywords and corresponding content in record
Connection degree.
When user carries out content search at target search service end, the searching request of user can be received, which asks
The middle search key for carrying user is sought, and the search key phase with user can be obtained based on the search key of user
Matched contents list, finally by least one mesh in the top with the degree of association of the search key of user in contents list
Mark content shows user, wherein content is acquired from block chain some or all of in the contents list.Due to
Target search service end can obtain the content of block chain offer from block chain, integrate more comprehensive content in block chain,
At least one object content in the top with the degree of association of the search key of user is provided for user.This aspect to use
Family is more comprehensive based on the content that search key is got;On the other hand the accuracy of content search is also improved.
Fig. 3 is the structural schematic diagram at the target search service end 300 that this specification embodiment provides.Referring to FIG. 3, one
In kind of Software Implementation, target search service end 300 may include receiving unit 301, acquiring unit 302 and display unit 303,
Wherein:
Receiving unit 301, receives the searching request of user, and the search that the user is carried in described search request is crucial
Word;
Acquiring unit 302 is obtained and is matched with the search key of the user based on the search key of the user
Contents list;
Display unit 303, will be in the top with the degree of association of the search key of the user in the contents list
At least one object content shows the user, wherein content is from block chain some or all of in the contents list
In acquire.
Optionally, in one embodiment, the display unit 303 by the contents list with the user's
After the degree of association of search key at least one object content in the top shows the user, the destination service end
Further include:
First acquisition unit 304 obtains behavior operation note of the user at least one object content;
The transaction that the content search for carrying the user records is uploaded in block chain by uploading unit 305, with triggering
Specified intelligent contract in the block chain is based on the behavior operation note, determine the search key of the user with it is described
The degree of association of at least one object content;
Wherein, the content search record of the user includes the search key of the user, at least one described target
The behavior operation note of the link of content and the user to the multiple object content.
Optionally, in one embodiment, the content search record of the user carries content share identification list, institute
The content share mark in content share identification list is stated, the power for having the content search for downloading user record is used to indicate
Limit.
Optionally, in one embodiment, the target search service end further include:
Second acquisition unit 306 obtains the content for carrying the mark at the target search service end from the block chain
Search record;
Wherein, the content search record for carrying the mark at the target search service end, is on other search service ends
It reaches in the block chain;Carrying in the content search record of the mark at the target search service end includes at least one
Search key, content corresponding at least one described search key link and it is described at least one search close
The degree of association between the linking of keyword and corresponding content.
Optionally, in one embodiment, the second acquisition unit 306, is used for:
Every preset time period, the content that the mark for carrying the target search service end is obtained from the block chain are searched
Suo Jilu;Or
By the specified intelligent contract in the block chain, is obtained from the block chain and carry the target search service
The content search of the mark at end records.
Optionally, in one embodiment, it will be closed in the contents list with described search in the display unit 303
After the degree of association of keyword at least one object content in the top shows the user, the target search service end is also
Include:
Third acquiring unit 307 obtains behavior operation note of the user at least one object content;
Determination unit 308 is based on the behavior operation note, determines the search key and described at least one of the user
The degree of association of a object content;
By the specified intelligent contract in the block chain, by carry the user search key and it is described at least
The transaction of the degree of association of one object content is uploaded in the block chain;
Wherein, the content search record of the user includes the search key of the user, at least one described target
The behavior operation note of the link of content and the user to the multiple object content.
Optionally, in one embodiment, it in the search key of the acquiring unit 301 based on the user, obtains
Before taking the contents list to match with the search key of the user, the target search service end further include:
4th acquiring unit 309 obtains content search record from the block chain;
Wherein, the search key in the content search record is greater than or equal to the degree of association between corresponding content
Preset threshold, the content search record is uploaded in the block chain by other search service ends.
Optionally, in one embodiment, behavior operation note of the user at least one object content
Including following at least one:
Replication of the user at least one object content;
Browsing duration of the user at least one object content;
Splitting glass opaque of the user at least one object content;
Click behavior of the user at least one object content.
The method that target search service end 300 can be realized the embodiment of the method for FIG. 1 to FIG. 2 specifically refers to Fig. 1~figure
The content search method based on block chain of 2 illustrated embodiments, repeats no more.
Fig. 4 is the structural schematic diagram for the electronic equipment that one embodiment of this specification provides.Referring to FIG. 4, in hardware
Level, the electronic equipment include processor, optionally further comprising internal bus, network interface, memory.Wherein, memory can
It can include memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-easy
The property lost memory (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible to
Including hardware required for other business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..Only to be indicated with a four-headed arrow in Fig. 4, it is not intended that an only bus or a type of convenient for indicating
Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer
The content search device based on block chain is formed on face.Processor executes the program that memory is stored, and is specifically used for executing
It operates below:
The searching request of user is received, the search key of the user is carried in described search request;
Based on the search key of the user, the contents list to match with the search key of the user is obtained;
By at least one target in the top with the degree of association of the search key of the user in the contents list
Content shows the user, wherein content is acquired from block chain some or all of in the contents list.
The content search method based on block chain disclosed in the above-mentioned FIG. 1 to FIG. 2 illustrated embodiment such as this specification can answer
It is realized in processor, or by processor.Processor may be a kind of IC chip, the processing energy with signal
Power.During realization, each step of the above method can pass through the integrated logic circuit or software of the hardware in processor
The instruction of form is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing
Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute this specification one or more
Disclosed each method, step and logic diagram in embodiment.General processor can be microprocessor or the processor
It can be any conventional processor etc..The step of method in conjunction with disclosed in this specification one or more embodiment, can be straight
Connect and be presented as that hardware decoding processor executes completion, or in decoding processor hardware and software module combination executed
At.Software module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically-erasable can
In the storage medium of this fields such as programmable memory, register maturation.The storage medium is located at memory, and processor reads storage
Information in device, in conjunction with the step of its hardware completion above method.
The electronic equipment can also carry out the content search method based on block chain of FIG. 1 to FIG. 2, and this specification is herein no longer
It repeats.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of this specification, such as
Logical device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each
Logic unit is also possible to hardware or logical device.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, the one or more program include instruction, and the instruction is when by the portable electronic including multiple application programs
When equipment executes, the method that the portable electronic device can be made to execute FIG. 1 to FIG. 2 illustrated embodiment, and be specifically used for executing
It operates below:
The searching request of user is received, the search key of the user is carried in described search request;
Based on the search key of the user, the contents list to match with the search key of the user is obtained;
By at least one target in the top with the degree of association of the search key of the user in the contents list
Content shows the user, wherein content is acquired from block chain some or all of in the contents list.
In short, being not intended to limit the protection of this specification the foregoing is merely the preferred embodiment of this specification
Range.With within principle, made any modification, changes equivalent replacement all spirit in this specification one or more embodiment
Into etc., it should be included within the protection scope of this specification one or more embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.