CN112232903A - Business object display method and device - Google Patents

Business object display method and device Download PDF

Info

Publication number
CN112232903A
CN112232903A CN202011035178.1A CN202011035178A CN112232903A CN 112232903 A CN112232903 A CN 112232903A CN 202011035178 A CN202011035178 A CN 202011035178A CN 112232903 A CN112232903 A CN 112232903A
Authority
CN
China
Prior art keywords
attribute
target
attribute parameter
parameters
parameter
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.)
Granted
Application number
CN202011035178.1A
Other languages
Chinese (zh)
Other versions
CN112232903B (en
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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN202011035178.1A priority Critical patent/CN112232903B/en
Publication of CN112232903A publication Critical patent/CN112232903A/en
Application granted granted Critical
Publication of CN112232903B publication Critical patent/CN112232903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy
    • G06Q30/0627Directed, with specific intent or strategy using item specifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Software Systems (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a method and a device for displaying a business object, wherein a terminal can respond to the input operation of a user to obtain a keyword corresponding to the input operation, compare the keyword with a preset business attribute parameter to obtain at least one hit attribute parameter matched with the keyword, and then obtain a target attribute parameter corresponding to the hit attribute parameter according to a preset attribute parameter index, wherein the attribute parameter index can be an index of a many-to-many mapping relation established according to the business attribute parameter of the business object, then obtain and display the target business object matched with the target attribute parameter, and through establishing the attribute parameter index, on one hand, the data redundancy of a system can be reduced, and on the other hand, the query efficiency of the business object can be improved.

Description

Business object display method and device
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method and an apparatus for displaying a business object.
Background
With the rapid development of electronic commerce, the number of commodities on an electronic commerce platform is increased sharply, and a user can purchasely select commodities matched with the demand of the user in an internet shop. For goods in internet stores, they need to be sorted in order. The category system is a basic part in the classified information system and can be used for inquiring and storing the relationship between category attributes, generally, the categories and the attributes adopt tree structures to store data, and in order to facilitate a user to accurately and quickly find a required commodity, a merchant can add attribute parameters to the commodity as much as possible, so that part of attribute data starts to be redundant, the data maintenance cost of the system starts to be increased, the system performance starts to be reduced, and the commodity inquiring efficiency is easily influenced.
Disclosure of Invention
The embodiment of the invention provides a method for displaying a business object, which aims to solve the problem of low business object query efficiency caused by system data redundancy in the prior art.
Correspondingly, the embodiment of the invention also provides a device for displaying the business object, which is used for ensuring the realization and the application of the method.
In order to solve the above problem, an embodiment of the present invention discloses a method for displaying a business object, including:
acquiring input operation of a user, and determining a keyword corresponding to the input operation;
comparing the keyword with preset service attribute parameters to obtain at least one hit attribute parameter matched with the keyword;
acquiring a target attribute parameter corresponding to the hit attribute parameter according to a preset attribute parameter index, wherein the attribute parameter index is an index established according to a service attribute parameter of a service object;
and displaying the target business object matched with the target attribute parameters.
Optionally, the attribute parameter index includes a first index and a second index, and the attribute parameter index is generated as follows:
acquiring service attribute parameters of a service object, wherein the service attribute parameters comprise main attribute parameters and secondary attribute parameters related to the main attribute parameters;
generating a first index for the business object by adopting a first main attribute parameter and at least one first secondary attribute parameter aiming at the first main attribute parameter;
and generating a second index aiming at the business object by adopting a second secondary attribute parameter and at least one second main attribute parameter aiming at the second secondary attribute parameter.
Optionally, the obtaining, according to the preset attribute parameter index, the target attribute parameter corresponding to the hit attribute parameter includes:
judging whether the hit attribute parameters conflict or not;
if the hit attribute parameters do not conflict with each other, querying target primary attribute parameters matched with the hit attribute parameters from the second index, and querying target secondary attribute parameters matched with the hit attribute parameters from the first index;
and integrating the target primary attribute parameters and the target secondary attribute parameters to obtain first target attribute parameters.
Optionally, the integrating the target primary attribute parameter and the target secondary attribute parameter to obtain a first target attribute parameter includes:
obtaining a hierarchical relationship for the service attribute parameters, the hierarchical relationship including hierarchical levels of the primary attribute parameters and the secondary attribute parameters;
aggregating the target main attribute parameters of the same hierarchy level to obtain aggregated target main attribute parameters;
aggregating the target secondary attribute parameters of the same hierarchy level to obtain aggregated target secondary attribute parameters;
and taking the aggregated target primary attribute parameter and the aggregated target secondary attribute parameter as a first target attribute parameter matched with the keyword.
Optionally, the determining whether the hit attribute parameters conflict with each other includes:
judging whether the initial main attribute parameters conflict or not;
if the initial primary attribute parameters do not conflict, judging whether the initial secondary attribute parameters conflict or not;
if the initial secondary attribute parameters do not conflict, judging whether the initial primary attribute parameters and the initial secondary attribute parameters conflict or not;
if there is no conflict between the hit attribute parameters, querying a target primary attribute parameter matched with the hit attribute parameter from the second index, and querying a target secondary attribute parameter matched with the hit attribute parameter from the first index, including:
if the initial primary attribute parameters and the initial secondary attribute parameters do not conflict, querying target primary attribute parameters matched with the initial secondary attribute parameters from the second index, and querying target secondary attribute parameters matched with the initial primary attribute parameters from the first index.
Optionally, the obtaining, according to the preset attribute parameter index, a target attribute parameter corresponding to the hit attribute parameter further includes:
and if the hit attribute parameters conflict, acquiring a second target attribute parameter aiming at the keyword, wherein the second target attribute parameter is a top-layer attribute parameter aiming at the business object.
Optionally, the obtaining an input operation of a user, and determining a keyword corresponding to the input operation includes:
responding to an input operation acted on a preset input box, acquiring text information corresponding to the input operation, and extracting corresponding keywords from the text information.
The embodiment of the invention also discloses a device for displaying the business object, which comprises:
the keyword determining module is used for acquiring input operation of a user and determining a keyword corresponding to the input operation;
a hit attribute parameter obtaining module, configured to compare the keyword with a preset service attribute parameter, and obtain at least one hit attribute parameter matching the keyword;
a target attribute parameter obtaining module, configured to obtain a target attribute parameter corresponding to the hit attribute parameter according to a preset attribute parameter index, where the attribute parameter index is an index established according to a service attribute parameter of a service object;
and the target business object display module is used for displaying the target business object matched with the target attribute parameters.
Optionally, the attribute parameter index includes a first index and a second index, and the attribute parameter index is generated by:
a service attribute parameter obtaining module, configured to obtain a service attribute parameter of a service object, where the service attribute parameter includes a primary attribute parameter and a secondary attribute parameter associated with the primary attribute parameter;
a first index generating module, configured to generate a first index for the service object by using a first primary attribute parameter and at least one first secondary attribute parameter for the first primary attribute parameter;
and the second index generating module is used for generating a second index aiming at the business object by adopting a second secondary attribute parameter and at least one second main attribute parameter aiming at the second secondary attribute parameter.
Optionally, the target attribute parameter obtaining module includes:
a hit attribute parameter judgment submodule for judging whether the hit attribute parameters conflict with each other;
an attribute parameter query submodule, configured to query, if there is no conflict between the hit attribute parameters, a target primary attribute parameter that is matched with the hit attribute parameter from the second index, and a target secondary attribute parameter that is matched with the hit attribute parameter from the first index;
and the first attribute parameter obtaining submodule is used for integrating the target primary attribute parameter and the target secondary attribute parameter to obtain a first target attribute parameter.
Optionally, the first attribute parameter obtaining sub-module is specifically configured to:
obtaining a hierarchical relationship for the service attribute parameters, the hierarchical relationship including hierarchical levels of the primary attribute parameters and the secondary attribute parameters;
aggregating the target main attribute parameters of the same hierarchy level to obtain aggregated target main attribute parameters;
aggregating the target secondary attribute parameters of the same hierarchy level to obtain aggregated target secondary attribute parameters;
and taking the aggregated target primary attribute parameter and the aggregated target secondary attribute parameter as a first target attribute parameter matched with the keyword.
Optionally, the hit attribute parameter judgment sub-module is specifically configured to:
judging whether the initial main attribute parameters conflict or not;
if the initial primary attribute parameters do not conflict, judging whether the initial secondary attribute parameters conflict or not;
if the initial secondary attribute parameters do not conflict, judging whether the initial primary attribute parameters and the initial secondary attribute parameters conflict or not;
the attribute parameter query submodule is specifically configured to:
if the initial primary attribute parameters and the initial secondary attribute parameters do not conflict, querying target primary attribute parameters matched with the initial secondary attribute parameters from the second index, and querying target secondary attribute parameters matched with the initial primary attribute parameters from the first index.
Optionally, the target attribute parameter obtaining module further includes:
and the second attribute parameter obtaining sub-module is used for obtaining a second target attribute parameter aiming at the keyword if the hit attribute parameters have conflicts, wherein the second target attribute parameter is a top-layer attribute parameter aiming at the business object.
Optionally, the keyword determination module is specifically configured to:
responding to an input operation acted on a preset input box, acquiring text information corresponding to the input operation, and extracting corresponding keywords from the text information.
The embodiment of the invention also discloses an electronic device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform the method as described above.
Embodiments of the invention also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the methods as described above.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the terminal can respond to the input operation of the detected user, obtain the keyword corresponding to the input operation, compare the keyword with the preset service attribute parameter to obtain at least one hit attribute parameter matched with the keyword, and then obtain the target attribute parameter corresponding to the hit attribute parameter according to the preset attribute parameter index, wherein the attribute parameter index can be an index of a many-to-many mapping relation established according to the service attribute parameter of the service object, and then obtain and display the target service object matched with the target attribute parameter.
Drawings
FIG. 1 is a flowchart illustrating steps of an embodiment of a method for displaying a business object according to the present invention;
FIG. 2 is a diagram of a many-to-many mapping relationship in an embodiment of the invention;
FIG. 3 is a block diagram of an embodiment of a business object display apparatus according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
With the rapid development of electronic commerce, the number of commodities on an electronic commerce platform is increased sharply, and a user can purchasely select commodities matched with the demand of the user in an internet shop. In order to facilitate the user to query the happy business objects such as commodities, services and the like, the merchant or the operation platform can orderly classify the commodities, the services and the like through the category system, so that the relationship between the category attributes can be rapidly queried and stored through the category system. However, as the number of goods (services) increases, a large amount of redundancy of attribute parameters begins to appear, which causes the maintenance cost of system data to increase, the system performance to decrease, and further the inquiry of goods (services) is easily affected. Therefore, a way to reduce the system data maintenance cost and improve the query efficiency is needed.
The service object may include goods, services, and the like, and the service attribute parameter of the service object may be basic parameter information of the service object, for example, for a mobile phone, the service attribute parameter may include parameter information such as a brand, resolution, a memory, a screen size, and a pixel.
The hit attribute parameter is the text information corresponding to the user input operation determined according to the user input operation, the text information is subjected to word segmentation and other processing to obtain corresponding keywords, and relevant parameter information of the service object is obtained based on the keywords.
The target attribute parameters are parameter information obtained by positioning, expanding and the like through hitting the attribute parameters, and finally, the parameter information is adopted to obtain a business object, for example, a commodity or a service corresponding to the target attribute parameters is searched, and a final search result is displayed.
The difference between the primary attribute parameter and the secondary attribute parameter is the fineness of the parameter information, optionally, the most relevant attribute of the business object may be used as the primary attribute parameter, that is, the product attribute of the business object is used as the primary attribute parameter, and the relevant other attributes are used as the secondary attributes, for example, for a mobile phone, a brand may be used as the primary attribute parameter, including brand a, brand B, brand A5 s, and the like may be used as the primary attribute parameters, and a screen size, a resolution, a memory, and the like may be used as the secondary attribute parameters, and the present invention is not limited thereto. If the same attribute parameters can exist between different business objects, a many-to-many mapping relationship can be established according to the relationship between the attribute parameters, and the system overhead caused by the redundancy of the attribute parameters is reduced.
Therefore, one of the core invention points of the embodiment of the present invention is that, by establishing indexes of many-to-many mapping relationships according to attribute parameters of service objects, establishing service parameters on an original mapping relationship, and supporting many-to-many mapping relationships through derivative branch configuration, redundancy of system data is reduced, and under the condition of reducing system data storage, service object query can be performed through indexes corresponding to service parameters, thereby improving query efficiency.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for displaying a business object according to the present invention is shown, which may specifically include the following steps:
step 101, acquiring input operation of a user, and determining a keyword corresponding to the input operation;
as an example, a corresponding application, such as a shopping application, may be installed in the user terminal, and through a search page provided by the shopping application, the user may input text information, so that the terminal may obtain an input operation of the user, and determine a keyword corresponding to the input operation, thereby performing a query for goods, services, and the like according to the obtained keyword. In addition, different controls can be provided for the user to select, and then the information corresponding to the selected control is obtained according to the selection of the user, so as to determine the keyword, which is not limited in the present invention.
For convenience of explanation and understanding, the following embodiments take a business object as an example for illustration, it is understood that the business object such as a service is the same as or similar to a commodity, and the present invention is not limited thereto.
Step 102, comparing the keyword with preset service attribute parameters to obtain at least one hit attribute parameter matched with the keyword;
in the embodiment of the present invention, the service attribute parameter may be an attribute parameter of the service object, and may include basic parameter information of the service object, for example, a mobile phone, where each mobile phone may include attribute parameters such as a brand, a resolution, a place of origin, a pixel, and a memory, and these attribute parameters may be used as the service attribute parameters of the mobile phone.
Optionally, in order to describe the commodity information, the public attribute parameter under each category may be used as the category attribute of the category, some public attributes of each category may be abstracted as the category attributes, for example, each automobile has attributes such as brand, color, displacement, and vehicle type, these common attributes may be set as the attributes of this automobile category, and when a subsequent merchant puts on the commodity of this category of the automobile, these commodity attributes are filled in, so that the information displayed to the user by the commodity under each same category is also relatively consistent.
In a specific implementation, the terminal may determine a corresponding keyword according to an input operation of a user, match the keyword with a service attribute parameter stored in the system, find whether the service attribute parameter is the same as the keyword, and use the service attribute parameter as a hit attribute parameter.
In one example, after the user inputs information such as "car 1.8T", the terminal may identify the text information to obtain keywords such as "car", and "1.8T", and based on the keywords, find out whether the same attribute parameters exist in the service attribute parameters, and if all the same attribute parameters exist, may use "car", and "1.8T" as the hit attribute parameters.
103, acquiring a target attribute parameter corresponding to the hit attribute parameter according to a preset attribute parameter index, wherein the attribute parameter index is an index established according to a service attribute parameter of a service object;
in an embodiment of the present invention, the attribute parameter index may be a many-to-many mapping relationship established according to the service attribute parameters of the service object, and the reverse lookup between the attribute parameters may be implemented by the index, so as to improve the validity of the lookup result.
In a specific implementation, the service attribute parameters may include a primary attribute parameter and a secondary attribute parameter associated with the primary attribute parameter, and then a first index for the service object is generated using the first primary attribute parameter and at least one first secondary attribute parameter for the first primary attribute parameter, and a second index for the service object is generated using the second secondary attribute parameter and at least one second primary attribute parameter for the second secondary attribute parameter.
Specifically, the service object may correspond to at least one primary attribute parameter and at least one secondary attribute parameter, and then one of the primary attribute parameters and a plurality of corresponding secondary attribute parameters may be selected to perform establishment of the forward index; one secondary attribute parameter and a plurality of corresponding primary attribute parameters are selected to establish reverse indexes, so that indexes are established between the primary attribute parameters and the secondary attribute parameters of the business objects, indexes of a many-to-many mapping relation are established according to the attribute parameters of the business objects, the business parameters are established on the original mapping relation, the many-to-many mapping relation is supported through derivative branch configuration, redundancy of system data is reduced, and the operation efficiency of the system is guaranteed.
In an example, referring to fig. 2, a schematic diagram of a many-to-many mapping relationship in the embodiment of the present invention is shown, and includes attribute parameters P1, P2, P3, and the like, where P2 may be a sub-attribute of P1, and at the same time, a sub-attribute of P3, and then an indirect relationship exists between P1 and P3, that is, a many-to-many mapping relationship exists between an attribute parameter of P1 and an attribute parameter of P3. For example, taking the car category as an example, because audi a6 is a sub-attribute value of audi and is a sub-attribute value of a car, a mapping relationship exists between audi and the car, so that a many-to-many mapping relationship can be established according to the relationship between attribute parameters, wherein a forward index can be used for representing the index relationship from fine retrieval to fuzzy retrieval, and a reverse index can be used for representing the index relationship from fuzzy retrieval to fine retrieval.
In the embodiment of the invention, after at least one hit attribute parameter is obtained, whether the hit attribute parameters conflict or not can be judged, if the hit attribute parameters do not conflict, the target main attribute parameter matched with the hit attribute parameters is inquired from the second index, the target secondary attribute parameter matched with the hit attribute parameters is inquired from the first index, and the target main attribute parameter and the target secondary attribute parameters are integrated to obtain the first target attribute parameter.
In the specific implementation, after the hit attribute parameters are determined, whether conflicts among the hit attribute parameters need to be checked, if the conflicts among the hit attribute parameters exist, keywords input by a user or selected controls are represented to be invalid, and the top-layer attribute parameters are directly returned; if the hit attribute parameters are not conflicted, the keyword input by the user is effective, and the retrieval of the service object can be carried out.
Specifically, the hit attribute parameters may include at least one of initial primary attribute parameters and initial secondary attribute parameters, and if the initial primary attribute parameters do not conflict with each other, it is determined whether the initial secondary attribute parameters conflict with each other; if the initial secondary attribute parameters are not in conflict, judging whether the initial primary attribute parameters are in conflict with the initial secondary attribute parameters, if the initial primary attribute parameters are not in conflict with the initial secondary attribute parameters, inquiring target primary attribute parameters matched with the initial secondary attribute parameters from the second index, and inquiring target secondary attribute parameters matched with the initial primary attribute parameters from the first index; and if the hit attribute parameters have conflicts, acquiring a second target attribute parameter aiming at the keyword, wherein the second target attribute parameter is a top-layer attribute parameter aiming at the business object.
In one example, assuming that the hit attribute parameters include "audi", "gallop", "a 4", and "displacement 1.8T", etc., a conflict occurs between "audi", "a 4", and "gallop", which are the primary attribute parameters, and a conflict occurs between "gallop" and "displacement 1.8T", which is the secondary attribute parameters, that is, a conflict between brands exists, and a conflict that does not correspond between brands and displacements exists, the keyword input by the user is determined to be invalid, and the top-level attribute parameters, that is, the attribute parameters of the car and the corresponding car, are directly returned; assuming that the hit attribute parameters include "audi", "a 4", and "displacement 1.8T", etc., there is no conflict between the primary attribute parameters, and there is no conflict between the primary attribute parameters and the secondary attribute parameters, the target secondary attribute parameters matching "audi", "a 4", such as different displacements, prices, models, etc. associated with "audi", and target secondary attribute parameters such as different displacements, prices, etc. associated with "a 4", may be searched from the forward index, and the target primary attribute parameters such as audi models, audi vehicle models, etc. associated with "displacement 1.8T" may be searched from the reverse index, which is not limited by the present invention.
In a specific implementation, after obtaining the target secondary attribute parameter and the target primary attribute parameter, a hierarchical relationship for the service attribute parameter may be obtained, where the hierarchical relationship includes hierarchical levels of the primary attribute parameter and the secondary attribute parameter, and the target primary attribute parameters of the same hierarchical level are aggregated to obtain an aggregated target primary attribute parameter, and the target secondary attribute parameters of the same hierarchical level are aggregated to obtain an aggregated target secondary attribute parameter, and then the aggregated target primary attribute parameter and the aggregated target secondary attribute parameter are used as a first target attribute parameter matched with the keyword.
Under the condition that the hit attribute parameters are not conflicted, a plurality of main attribute parameters and a plurality of secondary attribute parameters which are matched with the hit attribute parameters can be obtained through the forward index and the reverse index, different main attribute parameters can correspond to different hierarchical relationships, different secondary attribute parameters can also correspond to different hierarchical relationships, and the hierarchical relationships can exist between the main attribute parameters and the secondary attribute parameters.
For example, for the automobile category, the attribute parameter of "automobile" may be used as the top-level attribute parameter, the sub-attribute parameters may be set according to different types under the top-level attribute parameter, including setting the attribute parameters according to the brand of the automobile, the type of the automobile, and the like, and if the setting is performed according to the brand of the automobile, the attribute parameters of "audi", "gallow", "bmu", and "rexas" and the like may be used as the attribute parameters of "automobile", and under the corresponding automobile brand, the setting of the next-level attribute parameters, including color, displacement, model, price, and the like, may be performed, so that after obtaining the target secondary attribute parameters and the target primary attribute parameters, the target primary attribute parameters of the same level may be aggregated, and the target secondary attribute parameters of the same level may be aggregated, so as to obtain the aggregated target primary attribute parameters and the aggregated target secondary attribute parameters, and the target attribute parameters are used as target attribute parameters matched with keywords input by the user, then the business object is searched based on the target attribute parameters, and the target business object aiming at the input operation of the user is determined.
It should be noted that the embodiment of the present invention includes but is not limited to the above examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art can set the method according to practical situations, and the present invention is not limited to this.
And 104, displaying the target business object matched with the target attribute parameters.
In the specific implementation, after the terminal determines the target attribute parameters, the terminal can acquire the target business objects corresponding to the target attribute parameters, and then display the target business objects, so as to acquire the keywords matched with the input operation according to the input operation of the user, perform business object search based on the keywords, and then display the business objects.
In the embodiment of the invention, the terminal can respond to the input operation of the detected user, obtain the keyword corresponding to the input operation, compare the keyword with the preset service attribute parameter to obtain at least one hit attribute parameter matched with the keyword, and then obtain the target attribute parameter corresponding to the hit attribute parameter according to the preset attribute parameter index, wherein the attribute parameter index can be an index of a many-to-many mapping relation established according to the service attribute parameter of the service object, and then obtain and display the target service object matched with the target attribute parameter.
In order to make those skilled in the art better understand the technical solutions of the embodiments of the present invention, the following describes the embodiments of the present invention by an example.
The terminal can analyze the keywords according to the input of the user to obtain a plurality of attribute values of the hit service attribute values. The specific query process may include:
1. first, an index is built between a primary attribute value and a secondary attribute value
Forward indexing: primary Attribute value ID- > multiple Secondary Attribute value ID List
Reverse indexing: secondary Attribute value ID- > multiple Primary Attribute value ID List
2. Keyword resolution
And performing word segmentation analysis on the keywords input by the user, and comparing the keywords with the existing data attribute values in the system to obtain a series of hit attribute values.
3. Checking whether there is a conflict between multiple attribute values of a hit
First, whether the primary attribute values conflict or not is checked, that is, whether the secondary attribute values conflict or not is checked, and finally, whether the primary attribute values and the secondary attribute values conflict or not is checked. When there is conflict between multiple attribute values, the user inputs key word as invalid, and directly returns top-level attribute and attribute value
4. Marking primary property values
According to the established reverse index, inquiring a related main attribute value ID list through a secondary attribute value ID, merging the main attribute value ID lists according to the levels, merging the attribute value ID lists under the same attribute, then merging layer by layer from bottom to top according to the tree-shaped hierarchical structure of the main attribute, and marking the main attribute value ID list obtained by final merging.
5. Marking secondary attribute values
And inquiring the primary attribute value IDs marked in the previous step into associated secondary attribute value IDs according to the established forward indexes, aggregating the secondary attribute value IDs and marking.
6. Attribute value data integration
Traversing the attributes and attribute values of the specified categories in the system from top to bottom according to the hierarchy, and respectively identifying the hit attribute values and the marked primary attribute values and secondary attribute values.
7. Finding business objects
And inquiring the business object according to the attribute value marked in the last step, determining a target business object corresponding to the attribute value, and displaying.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a block diagram of a structure of an embodiment of a business object display apparatus of the present invention is shown, which may specifically include the following modules:
a keyword determining module 301, configured to obtain an input operation of a user, and determine a keyword corresponding to the input operation;
a hit attribute parameter obtaining module 302, configured to compare the keyword with a preset service attribute parameter, and obtain at least one hit attribute parameter matching the keyword;
a target attribute parameter obtaining module 303, configured to obtain a target attribute parameter corresponding to the hit attribute parameter according to a preset attribute parameter index, where the attribute parameter index is an index established according to a service attribute parameter of a service object;
and the target business object display module 304 is configured to display the target business object matched with the target attribute parameter.
In an optional embodiment of the present invention, the attribute parameter index includes a first index and a second index, and the attribute parameter index is generated by:
a service attribute parameter obtaining module, configured to obtain a service attribute parameter of a service object, where the service attribute parameter includes a primary attribute parameter and a secondary attribute parameter associated with the primary attribute parameter;
a first index generating module, configured to generate a first index for the service object by using a first primary attribute parameter and at least one first secondary attribute parameter for the first primary attribute parameter;
and the second index generating module is used for generating a second index aiming at the business object by adopting a second secondary attribute parameter and at least one second main attribute parameter aiming at the second secondary attribute parameter.
In an optional embodiment of the present invention, the target attribute parameter obtaining module 303 includes:
a hit attribute parameter judgment submodule for judging whether the hit attribute parameters conflict with each other;
an attribute parameter query submodule, configured to query, if there is no conflict between the hit attribute parameters, a target primary attribute parameter that is matched with the hit attribute parameter from the second index, and a target secondary attribute parameter that is matched with the hit attribute parameter from the first index;
and the first attribute parameter obtaining submodule is used for integrating the target primary attribute parameter and the target secondary attribute parameter to obtain a first target attribute parameter.
In an optional embodiment of the present invention, the first attribute parameter obtaining sub-module is specifically configured to:
obtaining a hierarchical relationship for the service attribute parameters, the hierarchical relationship including hierarchical levels of the primary attribute parameters and the secondary attribute parameters;
aggregating the target main attribute parameters of the same hierarchy level to obtain aggregated target main attribute parameters;
aggregating the target secondary attribute parameters of the same hierarchy level to obtain aggregated target secondary attribute parameters;
and taking the aggregated target primary attribute parameter and the aggregated target secondary attribute parameter as a first target attribute parameter matched with the keyword.
In an optional embodiment of the present invention, the hit attribute parameter determining sub-module is specifically configured to:
judging whether the initial main attribute parameters conflict or not;
if the initial primary attribute parameters do not conflict, judging whether the initial secondary attribute parameters conflict or not;
if the initial secondary attribute parameters do not conflict, judging whether the initial primary attribute parameters and the initial secondary attribute parameters conflict or not;
the attribute parameter query submodule is specifically configured to:
if the initial primary attribute parameters and the initial secondary attribute parameters do not conflict, querying target primary attribute parameters matched with the initial secondary attribute parameters from the second index, and querying target secondary attribute parameters matched with the initial primary attribute parameters from the first index.
In an optional embodiment of the present invention, the target attribute parameter obtaining module 303 further includes:
and the second attribute parameter obtaining sub-module is used for obtaining a second target attribute parameter aiming at the keyword if the hit attribute parameters have conflicts, wherein the second target attribute parameter is a top-layer attribute parameter aiming at the business object.
In an optional embodiment of the present invention, the keyword determining module 301 is specifically configured to:
responding to an input operation acted on a preset input box, acquiring text information corresponding to the input operation, and extracting corresponding keywords from the text information.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform methods as described in embodiments of the invention.
Embodiments of the invention also provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the methods described in embodiments of the invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention 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.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. 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 terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these 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 such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method for displaying a business object and the device for displaying a business object provided by the invention are described in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used to help understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for displaying a business object is characterized by comprising the following steps:
acquiring input operation of a user, and determining a keyword corresponding to the input operation;
comparing the keyword with preset service attribute parameters to obtain at least one hit attribute parameter matched with the keyword;
acquiring a target attribute parameter corresponding to the hit attribute parameter according to a preset attribute parameter index, wherein the attribute parameter index is an index established according to a service attribute parameter of a service object;
and displaying the target business object matched with the target attribute parameters.
2. The method of claim 1, wherein the attribute parameter index comprises a first index and a second index, and wherein the attribute parameter index is generated by:
acquiring service attribute parameters of a service object, wherein the service attribute parameters comprise main attribute parameters and secondary attribute parameters related to the main attribute parameters;
generating a first index for the business object by adopting a first main attribute parameter and at least one first secondary attribute parameter aiming at the first main attribute parameter;
and generating a second index aiming at the business object by adopting a second secondary attribute parameter and at least one second main attribute parameter aiming at the second secondary attribute parameter.
3. The method according to claim 2, wherein the obtaining the target attribute parameter corresponding to the hit attribute parameter according to the preset attribute parameter index comprises:
judging whether the hit attribute parameters conflict or not;
if the hit attribute parameters do not conflict with each other, querying target primary attribute parameters matched with the hit attribute parameters from the second index, and querying target secondary attribute parameters matched with the hit attribute parameters from the first index;
and integrating the target primary attribute parameters and the target secondary attribute parameters to obtain first target attribute parameters.
4. The method of claim 3, wherein the integrating the target primary attribute parameter and the target secondary attribute parameter to obtain a first target attribute parameter comprises:
obtaining a hierarchical relationship for the service attribute parameters, the hierarchical relationship including hierarchical levels of the primary attribute parameters and the secondary attribute parameters;
aggregating the target main attribute parameters of the same hierarchy level to obtain aggregated target main attribute parameters;
aggregating the target secondary attribute parameters of the same hierarchy level to obtain aggregated target secondary attribute parameters;
and taking the aggregated target primary attribute parameter and the aggregated target secondary attribute parameter as a first target attribute parameter matched with the keyword.
5. The method of claim 3 or 4, wherein the hit attribute parameters comprise an initial primary attribute parameter and an initial secondary attribute parameter, and wherein the determining whether the hit attribute parameters conflict with each other comprises:
judging whether the initial main attribute parameters conflict or not;
if the initial primary attribute parameters do not conflict, judging whether the initial secondary attribute parameters conflict or not;
if the initial secondary attribute parameters do not conflict, judging whether the initial primary attribute parameters and the initial secondary attribute parameters conflict or not;
if there is no conflict between the hit attribute parameters, querying a target primary attribute parameter matched with the hit attribute parameter from the second index, and querying a target secondary attribute parameter matched with the hit attribute parameter from the first index, including:
if the initial primary attribute parameters and the initial secondary attribute parameters do not conflict, querying target primary attribute parameters matched with the initial secondary attribute parameters from the second index, and querying target secondary attribute parameters matched with the initial primary attribute parameters from the first index.
6. The method of claim 5, wherein the obtaining of the target attribute parameter corresponding to the hit attribute parameter according to the preset attribute parameter index further comprises:
and if the hit attribute parameters conflict, acquiring a second target attribute parameter aiming at the keyword, wherein the second target attribute parameter is a top-layer attribute parameter aiming at the business object.
7. The method of claim 1, wherein the obtaining the input operation of the user and determining the keyword corresponding to the input operation comprises:
responding to an input operation acted on a preset input box, acquiring text information corresponding to the input operation, and extracting corresponding keywords from the text information.
8. A business object display apparatus, comprising:
the keyword determining module is used for acquiring input operation of a user and determining a keyword corresponding to the input operation;
a hit attribute parameter obtaining module, configured to compare the keyword with a preset service attribute parameter, and obtain at least one hit attribute parameter matching the keyword;
a target attribute parameter obtaining module, configured to obtain a target attribute parameter corresponding to the hit attribute parameter according to a preset attribute parameter index, where the attribute parameter index is an index established according to a service attribute parameter of a service object;
and the target business object display module is used for displaying the target business object matched with the target attribute parameters.
9. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-7.
10. One or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method of any of claims 1-7.
CN202011035178.1A 2020-09-27 2020-09-27 Business object display method and device Active CN112232903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011035178.1A CN112232903B (en) 2020-09-27 2020-09-27 Business object display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011035178.1A CN112232903B (en) 2020-09-27 2020-09-27 Business object display method and device

Publications (2)

Publication Number Publication Date
CN112232903A true CN112232903A (en) 2021-01-15
CN112232903B CN112232903B (en) 2022-01-11

Family

ID=74119278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011035178.1A Active CN112232903B (en) 2020-09-27 2020-09-27 Business object display method and device

Country Status (1)

Country Link
CN (1) CN112232903B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883246A (en) * 2021-03-09 2021-06-01 数字广东网络建设有限公司 Business item display method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100262607A1 (en) * 2009-04-10 2010-10-14 Sergei Vassilvitskii System and Method for Automatic Matching of Contracts to Impression Opportunities Using Complex Predicates and an Inverted Index
US20110016109A1 (en) * 2009-07-14 2011-01-20 Sergei Vassilvitskii System and Method for Automatic Matching of Highest Scoring Contracts to Impression Opportunities Using Complex Predicates and an Inverted Index
CN103092894A (en) * 2011-11-08 2013-05-08 阿里巴巴集团控股有限公司 Structured information retrieval method and system
CN103885949A (en) * 2012-12-19 2014-06-25 中国科学院声学研究所 Song searching system and method based on lyrics
CN103886081A (en) * 2014-03-26 2014-06-25 海信集团有限公司 Information sending method and system
CN106250409A (en) * 2016-07-21 2016-12-21 中国农业银行股份有限公司 Data query method and device
CN106294875A (en) * 2016-08-25 2017-01-04 中国国防科技信息中心 A kind of name entity fuzzy retrieval method and system
CN108846016A (en) * 2018-05-05 2018-11-20 复旦大学 A kind of searching algorithm towards Chinese word segmentation
CN110737747A (en) * 2019-09-12 2020-01-31 苏宁云计算有限公司 data operation method, device and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100262607A1 (en) * 2009-04-10 2010-10-14 Sergei Vassilvitskii System and Method for Automatic Matching of Contracts to Impression Opportunities Using Complex Predicates and an Inverted Index
US20110016109A1 (en) * 2009-07-14 2011-01-20 Sergei Vassilvitskii System and Method for Automatic Matching of Highest Scoring Contracts to Impression Opportunities Using Complex Predicates and an Inverted Index
CN103092894A (en) * 2011-11-08 2013-05-08 阿里巴巴集团控股有限公司 Structured information retrieval method and system
CN103885949A (en) * 2012-12-19 2014-06-25 中国科学院声学研究所 Song searching system and method based on lyrics
CN103886081A (en) * 2014-03-26 2014-06-25 海信集团有限公司 Information sending method and system
CN106250409A (en) * 2016-07-21 2016-12-21 中国农业银行股份有限公司 Data query method and device
CN106294875A (en) * 2016-08-25 2017-01-04 中国国防科技信息中心 A kind of name entity fuzzy retrieval method and system
CN108846016A (en) * 2018-05-05 2018-11-20 复旦大学 A kind of searching algorithm towards Chinese word segmentation
CN110737747A (en) * 2019-09-12 2020-01-31 苏宁云计算有限公司 data operation method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883246A (en) * 2021-03-09 2021-06-01 数字广东网络建设有限公司 Business item display method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112232903B (en) 2022-01-11

Similar Documents

Publication Publication Date Title
CN106126630B (en) A kind of collection of business object, searching method and device
US8190556B2 (en) Intellegent data search engine
US7270262B2 (en) Collecting and valuating used items for sale
US8533198B2 (en) Mapping descriptions
US20040143508A1 (en) Method and system for maintaining item authority
CN110968800B (en) Information recommendation method and device, electronic equipment and readable storage medium
US9195714B1 (en) Identifying potential duplicates of a document in a document corpus
CN108664637B (en) Retrieval method and system
JP2013531289A (en) Use of model information group in search
CN104899285A (en) Display method and apparatus for search result
CN105404680A (en) Searching recommendation method and apparatus
US9330071B1 (en) Tag merging
US20180189359A1 (en) Systems and Methods for Harvesting Data Associated with Fraudulent Content in a Networked Environment
CN112000748A (en) Data processing method and device, electronic equipment and storage medium
WO2023039048A1 (en) Machine-learned desking vehicle recommendation
CN110362702B (en) Picture management method and equipment
CN112232903B (en) Business object display method and device
CN106296240B (en) Business object accessory information processing method and device
US8577814B1 (en) System and method for genetic creation of a rule set for duplicate detection
JPWO2007004521A1 (en) Marker specifying device and marker specifying method
CN116186286A (en) International logistics information recommendation method, system and medium based on enterprise knowledge graph
CN108334522B (en) Method for determining customs code, and method and system for determining type information
CN111125499A (en) Data query method and device
CN113553477B (en) Graph splitting method and device
WO2020067870A1 (en) Method and system for providing a content list based on a search query

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
GR01 Patent grant
GR01 Patent grant