HK1188847B - Information providing method and server - Google Patents
Information providing method and server Download PDFInfo
- Publication number
- HK1188847B HK1188847B HK14101893.0A HK14101893A HK1188847B HK 1188847 B HK1188847 B HK 1188847B HK 14101893 A HK14101893 A HK 14101893A HK 1188847 B HK1188847 B HK 1188847B
- Authority
- HK
- Hong Kong
- Prior art keywords
- information
- sorting
- mode
- supported
- attribute
- Prior art date
Links
Description
Technical Field
The present application relates to the field of information processing technologies, and in particular, to an information providing method and a server.
Background
With the continuous development of internet technology, more and more information resources select networks as carriers for propagation. In order to enable a user to obtain required information from a large amount of internet information, most web servers provide information search services to the user.
When a user needs to search information, a server of a website can be provided with a search condition corresponding to a search intention and a sorting mode for sorting the searched information, the server searches information meeting the search condition in each stored information, then sorts the searched information according to the sorting mode set by the user, and provides each sorted information for the user, so that the user can smoothly find the required information in massive internet information. The ordering mode can be ordering according to the issuing party and ordering according to the issuing time, and in a server of an e-commerce website, the commodity information can be ordered according to price, sales volume, credit value of a seller user and the like.
In the prior art, some information may not be suitable for being displayed according to the sorting mode set by the user in the information searched according to the search condition set by the user. For example, in a server of an e-commerce website, it is highly possible that a buyer user sorts searched information in a sequence from a low price to a high price, and some seller users may intentionally lower prices of commodities owned by the seller users in order to improve attention and volume of the commodities, so that commodity information corresponding to the commodities can be ranked at a front position in the information searched by the buyer users, and at this time, prices of the commodity information are intentionally modified and are not normal, and the commodity information is not suitable for being displayed in a sequence from a low price to a high price. For another example, in a server of an e-commerce website, some buyer users may also sort the searched information in an order from high to low according to credit values of the seller users, and then some seller users may perform some malicious credit stir-up actions (for example, false transactions, in which both transaction parties evaluate the transactions without completing actual transactions, thereby raising credit values of both transaction parties) in order to improve attention and volume of the goods, so that the goods information corresponding to the goods owned by the seller users can be ranked at a front position in the information searched by the buyer users, at this time, the credit value of the seller users is raised by the false transactions, which is not normal, and then the goods information corresponding to the goods owned by the seller users is not suitable for being displayed in an order from high to low according to the credit values.
As can be seen from the above, in the prior art, some information may not be suitable for being displayed according to the sorting manner set by the user in the information searched according to the search condition set by the user, which makes the accuracy of the search result provided by the server to the user lower.
Disclosure of Invention
The embodiment of the application provides an information providing method and a server, and aims to solve the problems that in the prior art, the accuracy of a search result provided by the server for a user is low, and more processing resources of the server are wasted.
The technical scheme of the embodiment of the application is as follows:
an information providing method, the method comprising the steps of: receiving an information search request carrying search conditions and a specified sorting mode; searching each information which meets the search condition and contains the specified sorting mode in the stored information and the supported sorting modes which are respectively set for the information in advance; sequencing the searched information according to the specified sequencing mode; and returning at least one piece of information which is ranked at the top after the ranking.
An information providing server comprising: a sorting mode setting unit for setting supported sorting modes for each information in advance; the information search request receiving unit is used for receiving an information search request carrying search conditions and a specified sorting mode; the first information searching unit is used for searching each piece of information which meets the searching condition and contains the specified sorting mode in the stored information and the supported sorting modes which are respectively set for the information in advance by the sorting mode setting unit; the information sorting unit is used for sorting the information searched by the first information searching unit according to the specified sorting mode; and the information providing unit is used for returning at least one piece of information which is sequenced at the front after the information sequencing unit sequences.
In the technical solution of the embodiment of the present application, a supported sorting manner is respectively set for each stored information in advance, after receiving an information search request carrying a search condition and a specified sorting manner, instead of only searching each information satisfying the search condition, each information satisfying the search condition and including the specified sorting manner is searched in each stored information and the sorting manner supported by each information, and then, after sorting the searched information according to the specified sorting manner, at least one information with top sorting is returned, that is, the specified sorting manner set by a user is not only used for sorting the searched information, but also used for searching information, when the information satisfies the search condition set by the user and the specified sorting manner set by the user belongs to the sorting manner supported by the information, the information is used as the searched information, so that the searched information can necessarily support the specified sorting mode and is necessarily suitable for displaying according to the specified sorting mode, the accuracy of the search result provided for the user is improved, the information which is not suitable for displaying to the user is not required to be sorted, and the like, and the processing resources of a server are effectively saved.
Drawings
Fig. 1 is a schematic diagram of an information providing method according to a second embodiment of the present application;
fig. 2 is a schematic structural diagram of an information providing server in the third embodiment of the present application.
Detailed Description
The main implementation principle, the specific implementation manner and the corresponding beneficial effects of the technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The information providing method provided by the embodiment of the application comprises an offline processing process for setting a supported sorting mode for each information in advance and an online processing process for searching the information in real time according to an information search request of a user, wherein the two processing processes are respectively described below.
First, an offline processing procedure in which supported sort modes are set for each piece of information in advance is described.
Example one
The server providing the information search service for the user stores each piece of information, and the first embodiment of the present application proposes to set a supported sorting mode for each piece of stored information in advance, and store each piece of information and the sorting mode supported by each piece of information correspondingly.
Each piece of information stored in the server corresponds to a plurality of information attributes, each piece of information corresponds to an attribute value, for example, in a server of an e-commerce website, the information attributes of the commodity information include a commodity identification attribute, a commodity name attribute, a commodity price attribute, a commodity sales volume attribute, a credit value attribute of a seller user to which the commodity belongs, and the like, the attribute value of a certain piece of commodity information for the commodity identification attribute is a1, the attribute value for the commodity name attribute is Nike sports shoes, the attribute value for the commodity price attribute is 200, the attribute value for the commodity sales volume attribute is 100, and the attribute value for the credit value attribute of the seller user to which the commodity belongs is 5000.
When the sorting mode supported by each piece of information is set, the following operations can be respectively executed for each information attribute of each piece of information: and judging whether the attribute value of the information aiming at the information attribute is normal or not according to the judgment rule corresponding to the information attribute, and if so, setting the sorting mode corresponding to the information attribute as the sorting mode supported by the information. Each information attribute of the information corresponds to a judgment rule, the judgment rules of different information attributes may be different, and the information attributes may correspond to a plurality of sorting modes, for example, the sorting mode corresponding to the commodity price attribute is price ascending sorting and/or price descending sorting, and the sorting mode corresponding to the commodity sales volume attribute is sales volume ascending sorting and/or sales volume descending sorting.
If the attribute value of the information for a certain information attribute is judged to be normal, the attribute value of the information for the information attribute is not obtained through deliberate modification or cheating (such as false transaction), so that the information can be sorted according to the sorting mode corresponding to the information attribute, and at the moment, the sorting mode corresponding to the information attribute can be set as the sorting mode supported by the information; if the attribute value of the information for a certain information attribute is judged to be abnormal, the attribute value of the information for the information attribute can be considered to be obtained through deliberate modification or cheating (such as false transaction), so that the information is not suitable for being sorted according to the sorting mode corresponding to the information attribute, and at the moment, the sorting mode corresponding to the information attribute is not set as the sorting mode supported by the information.
In the server of the e-commerce website, the judgment rule corresponding to the commodity price attribute may be: the method comprises the steps of determining average attribute values corresponding to commodity price attributes of various categories in advance, wherein the average attribute values can be obtained by calculating the average value of the attribute values of the commodity price attributes of various commodity information of the categories, if the difference value between the attribute value of certain commodity information corresponding to the commodity price attribute and the average attribute value corresponding to the commodity price attribute of the category to which the commodity information belongs is larger than a preset specified threshold value, confirming that the attribute value of the commodity information corresponding to the commodity price attribute is abnormal, and otherwise, confirming that the attribute value of the commodity information corresponding to the commodity price attribute is normal. For example, since the average attribute value corresponding to the commodity price attribute of "sports shoes" is 300, the preset predetermined threshold value is 150, and the difference between the attribute value of a certain commodity information of "sports shoes" with respect to the commodity price attribute of 2000 and the average attribute value of 300 is 1700, which is greater than the preset predetermined threshold value 150, it is confirmed that the attribute value of the commodity information with respect to the commodity price attribute is abnormal.
In the first embodiment of the present application, an information providing server (a server corresponding to an information providing method) may set a supported sorting manner for each piece of information according to the above method, and then store the set sorting manner and each piece of information correspondingly, where the sorting manner may be, but is not limited to, stored in a form of a tag, that is, each sorting manner corresponds to one tag, and a corresponding relationship between the information and the sorting manner as shown in table one is obtained.
Table one:
| information | Sorting mode |
| Information 1 | a |
| Information 2 | b,c |
| Information 3 | a |
| Information 4 | c |
Wherein, label a, label b and label c represent different sorting modes.
In the server of the e-commerce site, the correspondence between the commodity information and the sorting manner is shown in table two.
Table two:
wherein, the label P represents the sorting mode of price ascending sorting, and the label S represents the sorting mode of sales descending sorting.
Furthermore, a first embodiment of the present application further provides that the supported sorting manners may be manually set for each piece of information according to the above method, and then the set sorting manners are stored in the information providing server, where the set sorting manners stored in the information providing server include the following two manners:
the first storage mode is as follows: the correspondence between each information and the set supported sorting manner is stored in advance, and then read and stored by the information providing server.
The second storage method is to set a supported sorting method for each information in advance, the information providing server provides a web interface to the outside, and the information stored in the information providing server is set with a sorting method through the web interface, specifically:
the information providing server stores each piece of information in advance, and the stored information is shown in table three, taking the server of the e-commerce website as an example.
Table three:
and respectively setting supported sorting modes aiming at each information to obtain the corresponding relation between the identification of the information and the sorting modes. Taking the server of the e-commerce website as an example, the corresponding relationship between the attribute value of the commodity information for the commodity identification attribute and the set sorting mode is shown in table four.
Table four:
| commodity identification attributes | Sorting mode |
| A1 | P |
| A2 | P,S |
| A3 | P,S |
| A4 | S |
| A5 | P,S |
When setting is carried out on certain information, a setting request is sent through a web interface, an identifier of the information to be set and a sorting mode (which can be in a label mode) set for the information are indicated, after the information providing server receives the setting request through the web interface, the information providing server searches information corresponding to the identifier of the information carried in the setting request in each stored information, and then the sorting mode supported by the information is set as the sorting mode carried in the setting request.
If the identifier of the information is X and the sorting mode to be set for the information is Y, the setting request sent through the web interface may be in the form of, but is not limited to: http:// mytest/disp _ stat _ set. If X is a1 and Y is P, the form of the setup request sent by the web interface may be, but is not limited to: http:// mytest/disp _ stat _ set? A1& stat.
In addition, in the first embodiment of the present application, it is further provided that, in addition to setting the supported sorting manner for each piece of information, a sorting level for each piece of information in each supported sorting manner may be further set. Specifically, the ranking levels under each supported ranking mode can be set for each piece of information by, but not limited to, the following modes: and determining the sorting level of the information in the sorting mode in each sorting level corresponding to the sorting mode according to the attribute value of the information to the information attribute corresponding to the sorting mode for each sorting mode supported by the information. That is, each sort mode corresponds to a plurality of sort levels. For example, the sorting mode "price ascending sorting" has three corresponding sorting levels, namely level 1, level 2 and level 3.
When determining the ranking level of the information in the ranking mode, the attribute value range of each ranking level corresponding to the ranking mode may be obtained first, then in each obtained attribute value range, the attribute value range to which the information belongs for the attribute value of the information attribute corresponding to the ranking mode is searched, and the ranking level corresponding to the searched attribute value range is determined as the ranking level of the information in the ranking mode. For example, the ordering mode supported by certain commodity information is "price ascending ordering", and there are three ordering levels corresponding to the "price ascending ordering", which are level 1, level 2 and level 3, respectively, where the attribute value range corresponding to the level 1 is (150, 250), the attribute value range corresponding to the level 2 is (250, 350), the attribute value range corresponding to the level 3 is (350, 450), and the attribute value of the commodity information for the commodity price attribute is 300, so that the ordering level of the commodity information in the ordering mode of "price ascending ordering" is level 2.
In the first embodiment of the present application, the information providing server may set the sorting manner and the sorting level for each piece of information according to the above method, and then store each piece of information, the sorting manner supported by each piece of information, and the correspondence between the sorting levels of each piece of information in each supported sorting manner, as shown in table five.
Table five:
in the server of the e-commerce site, the correspondence among the commodity information, the sort mode, and the sort level is shown in table six.
Table six:
in addition, the first embodiment of the present application further provides that a sorting manner and a sorting level may be manually set for each piece of information according to the above method, and then the set sorting manner and the set sorting level are stored in the information providing server, where the manner of storing the set sorting manner and the set sorting level in the information providing server includes the following two manners:
the first storage mode is as follows: the information providing server stores the information, the sorting modes supported by the information and the corresponding relation between the sorting levels of the information under each supported sorting mode in advance, and then reads and stores the corresponding relation.
A second storage method, in which a supported sorting method and a sorting level under each supported sorting method are respectively set for each piece of information in advance, the information providing server provides a web interface to the outside, and sets a sorting method and a sorting level for each piece of information stored in the information providing server through the web interface, specifically:
the information providing server stores each information in advance, and the server sets the supported sorting modes and the sorting levels under each supported sorting mode respectively for each information to obtain the corresponding relation among the identification, the sorting modes and the sorting levels of the information. Taking the server of the e-commerce website as an example, the correspondence between the attribute values of the commodity identification attributes, the set sorting modes and the sorting levels in each sorting mode of the commodity information is shown in table seven.
TABLE VII:
when setting is carried out on certain information, a setting request is sent through a web interface, an identifier of the information to be set, a sorting mode (which can be in a label form) set for the information and a sorting level set for the information under each sorting mode supported by the information are indicated, after the information providing server receives the setting request through the web interface, the information corresponding to the identifier of the information carried in the setting request is searched in each stored information, then the sorting mode supported by the information is set as the sorting mode carried in the setting request, and the sorting level of the information under the sorting mode is set as the sorting level carried in the setting request.
If the identifier of the information is X, the ordering mode to be set for the information is Y, and the ordering level to be set for the information under the supported ordering mode Y is N, the form of the setting request sent through the web interface may be, but is not limited to: htp:// mytest/disp _ stat _ set. If X is a1, Y is P, and N is 2, the form of the setting request sent by the web interface may be, but is not limited to: http:// mytest/disp _ stat _ set.
In the first embodiment of the present application, the information, the sorting manner supported by the information, and the sorting level of the information in each of the supported sorting manners may be stored by, but not limited to, a database server or a reverse-ranking index system.
The following describes an online process of searching for information according to a user's information search request in real time.
Example two
As shown in fig. 1, a flow chart of an information providing method provided in the second embodiment of the present application is specifically described as follows:
and 11, receiving an information search request carrying the search condition and the specified sorting mode.
When a user searches for information, the user may set a search condition and a designated sorting mode, and when the user confirms the search (for example, the user clicks a "search" button in a web page), the user equipment used by the user may send an information search request carrying the search condition and the designated sorting mode.
In the second embodiment of the present application, the search condition set by the user includes: the search keyword and/or a restriction condition set by the user for at least one attribute of the information, respectively. That is, the search condition may include only the search keyword, may include only the restriction condition, or may include both the search keyword and the restriction condition. The attributes of the information may be, but are not limited to, category attributes, publication time attributes, and the like. For example, when a user searches for information in a server of an electronic commerce site and wants to search for "blue sweater" under the category of "women's clothing", the input search keyword is "blue sweater" and the restriction condition set for the category attribute of the information is "women's clothing". The user may set the restriction conditions for each of the plurality of attributes. For example, the user sets a restriction condition not only for the category attribute of the information but also for the issue time attribute.
In addition, when the user searches information, a designated ranking range can be set, that is, the information search request not only carries the search condition and the designated ranking mode, but also carries the designated ranking range, and the ranking range corresponds to at least one ranking level.
And step 12, searching each information which meets the search condition and is provided with the specified sorting mode in the stored information and the supported sorting modes which are respectively set for the information in advance.
The second embodiment of the present application proposes that a reverse list of search keyword units, a reverse list of restriction conditions, and a forward list of information are pre-established, that is, at least the following contents are stored: a reverse list of each search keyword unit, a reverse list of each constraint, and a forward list of information.
The inverted list of the search keyword units is the corresponding relation between each search keyword unit and the information identifier of each piece of information; the inverted list of the limiting conditions is the corresponding relation between each limiting condition and the information identifier of each information; the positive list of information is the corresponding relation between the identification of each information and the information content, and the information content comprises the attribute value of the information aiming at each information attribute.
When searching for information satisfying the search condition:
if the search condition only contains search keywords, dividing the search keywords into search keyword units, respectively searching information identifications corresponding to the search keyword units in an inverted list of the search keyword units aiming at each divided search keyword unit, and respectively searching corresponding information contents in a forward list of the information according to each searched information identification, thereby obtaining each information meeting the search condition;
if the search condition only contains the limiting condition, respectively searching each information identifier corresponding to the limiting condition in the inverted list of the limiting condition aiming at each limiting condition, and then respectively searching corresponding information content in the forward list of the information according to each searched information identifier, thereby obtaining each information meeting the search condition;
if the search condition comprises a search keyword and a restriction condition, dividing the search keyword into search keyword units, respectively searching information identifications corresponding to the search keyword units in an inverted list of the search keyword units aiming at each divided search keyword unit, respectively searching corresponding information contents in a forward list of the information according to each searched information identification, respectively searching each information identification corresponding to the restriction condition in the inverted list of the restriction condition aiming at each restriction condition, respectively searching corresponding information contents in the forward list of the information according to each searched information identification, acquiring each information according to the search keyword and acquiring intersection of each information according to the restriction condition, and finally acquiring each information which is each information meeting the search condition.
The information searched in the second embodiment of the present application not only meets the search condition carried in the information search request, but also includes the specified sorting mode carried in the information search request in the sorting mode supported by the information. For example, each item information in the server of the e-commerce website and the supported sorting manner respectively set for each item information in advance are shown in table two, and the item information searched according to different search conditions and the specified sorting manner is shown in table eight.
Table eight:
in addition, if the received information search request also carries a specified ranking range, when searching for information, in each stored information, a supported ranking mode which is respectively set for each information in advance, and a ranking level under each supported ranking mode, each information which meets the search condition, includes the specified ranking mode, and has a ranking level under the specified ranking mode within the specified ranking range is searched for, that is, the searched information not only meets the search condition carried in the information search request, but also includes the specified ranking mode carried in the information search request in the ranking mode supported by the information, and the ranking level under the specified ranking mode is within the specified ranking range. For example, each item information in the server of the e-commerce website and the supported sorting manner respectively set for each item information in advance are shown in table six, and the item information searched according to different search conditions, designated sorting manners, and designated sorting level ranges is shown in table nine.
Table nine:
and step 13, sequencing the searched information according to the specified sequencing mode.
And step 14, returning at least one piece of information ranked in front after the ranking.
In addition, in the second embodiment of the present application, it is further provided that, when performing information search, a user may also set not to use a sorting manner for filtering, and then the information search request carries a preset all check identifier, and after subsequently receiving the information search request, it may first determine whether the received information search request carries the preset all check identifiers, and if the determination result is yes, it indicates that information filtering does not need to use a designated sorting manner, and therefore, in each stored information, it is sufficient to search for each information meeting the search condition, and then according to the designated sorting manner, after sorting the searched information, return at least one information with a top sorting order, and if the determination result is no, it indicates that information filtering needs to be performed using the designated sorting manner, so steps 12 to 14 are performed.
Wherein the global view identifier may be, but is not limited to, disp _ all = yes.
As can be seen from the above processing procedures, in the technical solution of the embodiment of the present application, supported sorting manners are respectively set for the stored pieces of information in advance, then after receiving an information search request carrying a search condition and a specified sorting manner, instead of only searching the pieces of information satisfying the search condition, the stored pieces of information and the sorting manners supported by the pieces of information are searched for pieces of information satisfying the search condition and including the specified sorting manner, and then according to the specified sorting manner, after sorting the searched pieces of information, at least one piece of information with top sorting is returned, that is, the specified sorting manner set by the user is not only used for sorting the searched pieces of information, but also used for searching for information, when the information satisfies the search condition set by the user and the specified sorting manner set by the user belongs to the sorting manner supported by the information, the information is used as the searched information, so that the searched information can necessarily support the specified sorting mode and is necessarily suitable for displaying according to the specified sorting mode, the accuracy of the search result provided for the user is improved, the information which is not suitable for displaying to the user is not required to be sorted, and the like, and the processing resources of a server are effectively saved.
EXAMPLE III
Corresponding to the information providing method provided in the second embodiment of the present application, a third embodiment of the present application provides an information providing server, whose structure is shown in fig. 2, including:
a sorting mode setting unit 21 configured to set a supported sorting mode for each information in advance;
an information search request receiving unit 22, configured to receive an information search request carrying a search condition and a specified sorting manner;
a first information search unit 23, configured to search, among the stored pieces of information and the supported sorting manners that are set in advance for the pieces of information by the sorting manner setting unit 21, pieces of information that satisfy the search condition and that include the specified sorting manner;
the information sorting unit 24 is configured to sort the pieces of information found by the first information finding unit 23 according to the specified sorting manner;
and an information providing unit 25 for returning at least one top-ranked information ranked by the information ranking unit 24.
Preferably, the sorting manner setting unit 21 specifically includes:
an attribute value judging subunit, configured to, for each information attribute of each piece of information, respectively judge whether an attribute value of the piece of information for the information attribute is normal according to a judgment rule corresponding to the information attribute;
and the sorting mode setting subunit is used for setting the sorting mode corresponding to the information attribute as the sorting mode supported by the information when the judgment result of the attribute value judgment subunit is yes.
Preferably, the information providing server further includes:
a sorting level setting unit for setting a sorting level in each supported sorting mode for each information in advance;
the information search request received by the information search request receiving unit 22 also carries a specified level range;
the first information searching unit 23 is specifically configured to search, among the stored pieces of information, the supported sorting manners preset by the sorting manner setting unit 21 for the pieces of information, and the sorting levels preset by the sorting level setting unit for the pieces of information in each supported sorting manner, pieces of information that satisfy the search condition, include the specified sorting manner in the supported sorting manner, and have a sorting level in the specified sorting level range in the specified sorting manner.
Preferably, the sorting level setting unit is specifically configured to, for each sorting manner supported by each piece of information, determine, in each sorting level corresponding to the sorting manner, a sorting level of the piece of information in the sorting manner according to an attribute value of the piece of information for an information attribute corresponding to the sorting manner.
More preferably, the sorting level setting unit specifically includes:
the attribute value range obtaining subunit is configured to, for each sorting mode supported by each piece of information, respectively obtain an attribute value range of each sorting level corresponding to the sorting mode;
the attribute value range searching subunit is used for searching the attribute value range to which the attribute value of the information attribute corresponding to each sorting mode belongs in each attribute value range obtained by the attribute value range obtaining subunit according to each sorting mode supported by each information;
and the sorting level confirmation subunit is used for respectively searching the sorting level corresponding to the attribute value range searched by the attribute value range searching subunit according to various sorting modes supported by each piece of information, and confirming the sorting level of the information in the sorting mode.
Preferably, the information providing server further includes:
an identifier determining unit, configured to determine whether the information search request received by the information search request receiving unit 22 carries all preset check identifiers before the first information searching unit 23 searches, in the stored information and the supported sorting manners that are set by the sorting manner setting unit 21 for the information in advance, for each piece of information that satisfies the search condition and that includes the specified sorting manner;
a second information searching unit, configured to search, when the determination result of the identification determining unit is yes, each piece of information that satisfies the search condition from among the pieces of stored information;
the information sorting unit 24 is further configured to sort the pieces of information found by the second information searching unit according to the designated sorting manner;
the first information searching unit 23 is specifically configured to, when the determination result of the identification determining unit is negative, search for each piece of information that satisfies the search condition and includes the specified sorting manner, from among the stored pieces of information and the supported sorting manners that are respectively set in advance for the pieces of information by the sorting manner setting unit 21.
Preferably, the search condition carried in the information search request received by the information search request receiving unit 22 includes a search keyword and/or a restriction condition set for at least one information attribute of the information.
The information providing server provided in the third embodiment of the present application may be, but is not limited to, a server of an e-commerce website, that is, the server of the e-commerce website may provide information to a user according to the method provided in the second embodiment of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus (device), or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (10)
1. An information providing method, comprising:
the server receives an information search request carrying search conditions and a specified sorting mode;
searching each information which meets the search condition and contains the specified sorting mode in the stored information and the supported sorting modes which are respectively set for the information in advance; the supported sorting mode respectively set for each information is set according to the attribute value of each information attribute;
sequencing the searched information according to the specified sequencing mode; and returning at least one piece of information ranked in the front after the ranking.
2. The method of claim 1, wherein the supported ordering modes are set separately for each information by:
and judging whether the attribute value of the information for the information attribute is normal or not according to the judgment rule corresponding to the information attribute for each information attribute of each information, and if so, setting the sorting mode corresponding to the information attribute as the sorting mode supported by the information.
3. The method of claim 1, wherein the received information search request further carries a specified rank range;
the searching for each information which satisfies the search condition and includes the specified sorting mode in the stored information and the supported sorting modes which are respectively set for the information in advance specifically includes:
and searching each piece of information which meets the search condition, contains the specified sorting mode in the supported sorting mode and has the sorting level in the specified sorting level range in the specified sorting mode from the stored information, the supported sorting modes which are respectively set for the information in advance and the sorting level in each supported sorting mode.
4. A method according to claim 3, characterized in that the ranking level for each supported ranking is set separately for each information by:
and determining the sorting level of the information in the sorting mode in each sorting level corresponding to the sorting mode according to the attribute value of the information to the information attribute corresponding to the sorting mode for each sorting mode supported by the information.
5. The method according to claim 4, wherein determining the ranking level of the information in the ranking mode among the ranking levels corresponding to the ranking mode according to the attribute value of the information to the information attribute corresponding to the ranking mode specifically comprises:
obtaining the attribute value range of each sorting level corresponding to the sorting mode;
searching the attribute value range of the information corresponding to the attribute value of the information attribute corresponding to the sorting mode in each obtained attribute value range;
and determining the sorting level corresponding to the searched attribute value range as the sorting level of the information in the sorting mode.
6. The method according to claim 1, wherein before searching for each information that satisfies the search condition and includes the specified sorting manner among the stored information and the supported sorting manners respectively set for each information in advance, the method further comprises:
judging whether the received information search request carries all preset check identifiers or not;
if the judgment result is yes, searching each piece of information meeting the search condition in each piece of stored information, and executing the step of sequencing each piece of searched information according to the specified sequencing mode;
and if the judgment result is negative, searching the information which meets the search condition and is contained in the specified sorting mode in the stored information and the supported sorting modes which are respectively set for the information in advance.
7. The method according to any one of claims 1 to 6, wherein the search condition includes a search keyword and/or a restriction condition set for at least one information attribute of the information, respectively.
8. An information providing server, comprising:
a sorting mode setting unit, configured to set a supported sorting mode for each information in advance, where the supported sorting mode set for each information is set according to an attribute value of each information attribute;
the information search request receiving unit is used for receiving an information search request carrying search conditions and a specified sorting mode;
the first information searching unit is used for searching each piece of information which meets the searching condition and contains the specified sorting mode in the stored information and the supported sorting modes which are respectively set for the information in advance by the sorting mode setting unit;
the information sorting unit is used for sorting the information searched by the first information searching unit according to the specified sorting mode;
and the information providing unit is used for returning at least one piece of information which is sequenced at the front after the information sequencing unit sequences.
9. The server according to claim 8, wherein the sorting manner setting unit specifically includes:
an attribute value judging subunit, configured to, for each information attribute of each piece of information, respectively judge whether an attribute value of the piece of information for the information attribute is normal according to a judgment rule corresponding to the information attribute;
and the sorting mode setting subunit is used for setting the sorting mode corresponding to the information attribute as the sorting mode supported by the information when the judgment result of the attribute value judgment subunit is yes.
10. The server of claim 8, further comprising:
a sorting level setting unit for setting a sorting level in each supported sorting mode for each information in advance;
the information search request received by the information search request receiving unit also carries a specified grade range;
the first information searching unit is specifically configured to search, in the stored pieces of information, the supported sorting manners that are set for the pieces of information in advance by the sorting manner setting unit, and the sorting levels that are set for the pieces of information in advance by the sorting level setting unit under each supported sorting manner, pieces of information that satisfy the search condition, include the specified sorting manner in the supported sorting manners, and have a sorting level within the specified sorting level range under the specified sorting manner.
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1188847A HK1188847A (en) | 2014-05-16 |
| HK1188847B true HK1188847B (en) | 2018-03-09 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5575902B2 (en) | Information retrieval based on query semantic patterns | |
| TWI512653B (en) | Information providing method and apparatus, method and apparatus for determining the degree of comprehensive relevance | |
| CN103914492A (en) | Method for query term fusion, method for commodity information publish and method and system for searching | |
| US20150221023A1 (en) | Information providing device, information providing method, information providing program, and computer-readable storage medium storing the program | |
| JP2015513165A (en) | Search for supplier information based on trading platform | |
| CN103970850A (en) | Website information recommending method and system | |
| TWI539306B (en) | Information delivery method, processing server and merge server | |
| CN107292666A (en) | Sales potential determination methods and device | |
| CN113689258A (en) | Commodity recommendation heat generation method and system | |
| CN105574015A (en) | Search recommendation method and device | |
| CN103514187B (en) | Method and device for providing search results | |
| CN110110222B (en) | Target object determination method and device and computer storage medium | |
| CN112579896A (en) | Information recommendation method and device, electronic equipment and storage medium | |
| CN114417137B (en) | Information recommendation method and device | |
| CN103425688B (en) | Method and server for providing information | |
| HK1188847B (en) | Information providing method and server | |
| HK1188847A (en) | Information providing method and server | |
| CN108182608B (en) | Electronic device, product recommendation method, and computer-readable storage medium | |
| CN115017410A (en) | Task pushing method and device and cloud server | |
| HK1170820B (en) | Method and device for determining correlation degree, method and device for providing information | |
| CN105718464A (en) | Information retrieval method and device | |
| HK1170820A1 (en) | Method and device for determining correlation degree, method and device for providing information | |
| CN106202090B (en) | Information processing method, information searching method, information processing device, information searching device and server | |
| HK1186812B (en) | Method and device for providing relevant information of image | |
| HK1186812A (en) | Method and device for providing relevant information of image |