CN111241135A - Commodity searching method and device, computer equipment and storage medium - Google Patents

Commodity searching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111241135A
CN111241135A CN201911419938.6A CN201911419938A CN111241135A CN 111241135 A CN111241135 A CN 111241135A CN 201911419938 A CN201911419938 A CN 201911419938A CN 111241135 A CN111241135 A CN 111241135A
Authority
CN
China
Prior art keywords
data
mall
backbone
request
demand
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
CN201911419938.6A
Other languages
Chinese (zh)
Other versions
CN111241135B (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.)
Guangzhou Kulyu Travel Agency Co ltd
Original Assignee
Guangzhou Kulyu Travel Agency 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 Guangzhou Kulyu Travel Agency Co ltd filed Critical Guangzhou Kulyu Travel Agency Co ltd
Priority to CN201911419938.6A priority Critical patent/CN111241135B/en
Publication of CN111241135A publication Critical patent/CN111241135A/en
Application granted granted Critical
Publication of CN111241135B publication Critical patent/CN111241135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • G06F16/24554Unary operations; Data partitioning operations
    • G06F16/24556Aggregation; Duplicate elimination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries

Landscapes

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

Abstract

The application relates to a commodity searching method, a commodity searching device, computer equipment and a storage medium. The method comprises the following steps: when the mall data are updated, integrating original mall data according to the updated mall data to obtain main data; receiving a data request, and acquiring backbone source data from the backbone data according to the data request; wherein the backbone source data is used for providing demand data according to the data request. The original mall data is asynchronously triggered through the updated mall data, the updated mall data is arranged to obtain trunk data, and then the trunk source data is obtained from the trunk data, so that the commodity or merchant information can be rapidly stored, the demand data can be rapidly given, and the query speed is high.

Description

Commodity searching method and device, computer equipment and storage medium
Technical Field
The present application relates to the technical field of mall search, and in particular, to a method and an apparatus for searching for a commodity, a computer device, and a storage medium.
Background
With the development of e-commerce technology, online shopping has become a consumer, and more people are beginning to use online shopping.
When the online shopping mall first page is used for inquiring commodities, the current technical means is to obtain search data by directly inquiring a database according to a search request, however, in the current inquiry method, in the same time period, when the number of search inquiry connections is suddenly increased, the problem that the mall first page is slow to inquire, and even the page is rushed occurs.
Disclosure of Invention
In view of the above, it is necessary to provide a commodity search method, apparatus, computer device and storage medium capable of solving the problem of slow home page query in a mall.
A method of merchandise searching, the method comprising:
when the mall data are updated, integrating original mall data according to the updated mall data to obtain main data;
receiving a data request, and acquiring backbone source data from the backbone data according to the data request; wherein the backbone source data is used for providing demand data according to the data request.
In one embodiment, after integrating the original mall data according to the updated mall data to obtain the backbone data, the method further includes:
and if the same data of the commodities same as the original mall data exist in the trunk data, discarding the same data in the trunk data.
In one embodiment, obtaining the main source data from the main data according to the data request includes:
pushing the backbone data to a message queue;
and the search service layer acquires the backbone source data from the message queue according to the data request.
In one embodiment, obtaining the backbone source data from the backbone data according to the data request further comprises:
storing the acquired backbone source data into a database; wherein the database is used for providing the demand data through the Solr cluster.
A method of merchandise searching, the method comprising:
sending a data request to a server according to the received commodity request;
receiving demand data returned by a search server, wherein the demand data is obtained from main source data according to a data request; the backbone source data is obtained from backbone data; the main data is obtained by integrating original mall data by the server according to the updated mall data;
and returning the demand data to the terminal equipment of the user according to the commodity request.
In one embodiment, receiving the demand data returned by the server includes:
acquiring the state of the interface according to the scheduling information of the interface;
if the state of the interface is normal, accessing a search service layer through an Api gateway, and acquiring required data from a database through a Solr cluster, wherein the Solr cluster is used for providing a distributed search scheme;
synchronously storing the acquired demand data into a disaster recovery memory; wherein the disaster recovery memory further comprises: the user shares the relationship data of the commodity and the basic data of the commodity.
In one embodiment, the receiving the demand data returned by the server further comprises:
and if the state of the interface is abnormal, directly acquiring the required data from the disaster recovery memory.
A method of merchandise searching, the method comprising:
when the mall data in the search server are updated, integrating original mall data according to the updated mall data to obtain backbone data, obtaining backbone source data from the backbone data according to a received data request, and providing demand data according to the backbone source data;
the platform server receives the commodity request, sends a data request to the search server and acquires the demand data returned by the search server; and returning the demand data to the terminal equipment of the user according to the commodity request.
An article search device, the device comprising: an integration module and an acquisition module;
an integration module: when the mall data are updated, integrating original mall data according to the updated mall data to obtain main data;
an obtaining module: the data processing device is used for receiving a data request and obtaining backbone source data from the backbone data according to the data request; wherein the backbone source data is used for providing demand data according to the data request.
In one embodiment, the integration module is further configured to discard the same data in the main data if the same data of the same commodity as the original mall data exists in the main data.
In one embodiment, the obtaining module is further configured to push the backbone data into a message queue; and searching a service layer according to the data request to acquire backbone source data from a message queue.
In one embodiment, the obtaining module is further configured to store the obtained backbone source data in a database; wherein the database is used for providing the demand data through the Solr cluster.
An article search device, the device comprising:
a sending module: the data request is sent to the server according to the received commodity request;
a receiving module: the system comprises a server, a data processing unit and a data processing unit, wherein the data processing unit is used for receiving demand data returned by the server, and the demand data is obtained from main source data according to a data request; the backbone source data is obtained from backbone data; the main data is obtained by integrating original mall data by the server according to the updated mall data;
a return module: and the terminal equipment is used for returning the demand data to the user according to the commodity request.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 8 when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
According to the data management, device, computer equipment and storage medium of the application mall, effective data are extracted according to the mall data, backbone source data are generated, and required data are obtained from the backbone source data, so that repeated and invalid data are effectively reduced, and the query speed is increased.
Drawings
FIG. 1 is a diagram showing an application environment of a commodity search method according to an embodiment;
FIG. 2 is a flowchart illustrating a method for searching for merchandise according to an embodiment;
FIG. 3 is a flowchart illustrating the step of obtaining stem source data in one embodiment;
FIG. 4 is a flowchart illustrating a method for searching for merchandise according to another embodiment;
FIG. 5 is a block diagram that illustrates the steps of receiving demand data returned by the search server, in one embodiment;
FIG. 6 is a flowchart illustrating a merchandise search interaction method according to another embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data management method of the application mall provided by the application mall can be applied to the application environment shown in fig. 1. The system comprises a mall disaster recovery standby data source, a mall list, a PHP service, list backbone data, a Solr cluster, an Api gateway, a search service layer, a user library and a search library. The mall disaster recovery standby data source is stored in a disaster recovery buffer and used for providing required data when a scheduling interface is abnormal; the mall list is used for storing demand data; the PHP is used in the preprocessing language of the application; the list main data is a main data table obtained according to the search request; the Solr cluster is used for providing a distributed search scheme; the Api gateway is a server, is the only entrance of the system, and is used for connecting the client and the search service layer; the search service layer is used for acquiring valid data in the basic attribute list.
In an embodiment, as shown in fig. 2, a data management method for an application mall is provided, which is described by taking a server in fig. 1 as an example, and includes the following steps:
step S11: and when the mall data is updated, integrating the original mall data according to the updated mall data to obtain the backbone data.
Wherein the updated mall data may include: merchant data and merchandise data. The main data is effective data in the mall data.
Specifically, the mall data is stored in the search server, and when product data, merchant data or other data in the mall data are updated, the mall data source integration script integrates and updates the updated mall data with respect to the original mall data to obtain the backbone data.
Step S12: and receiving a data request, and acquiring backbone source data from the backbone data according to the data request.
Wherein the backbone source data is used for providing the demand data according to the search request.
Specifically, a search server receives a data request sent by a platform server, and filters out failure main data from the obtained main data, wherein the failure main data is effectively identified in advance; and after filtering out the invalid backbone data, acquiring the backbone data to generate backbone source data accessed externally.
In the commodity searching method, the original mall data is asynchronously triggered through the updated mall data, the updated mall data is sorted to obtain the trunk data, and then the trunk source data is obtained from the trunk data, so that the commodity or merchant information can be rapidly stored, the required data can be rapidly given, and the query speed is high.
In one embodiment, step S11 is followed by:
and if the same data of the commodities same as the original mall data exist in the trunk data, discarding the same data in the trunk data.
Specifically, the backbone data is processed first, and optionally, if parameters of the same data as those of the same commodity of the original mall data are found to exist in the backbone data, the same data parameters are discarded.
In the commodity searching method, the trunk source data is obtained from the message queue of the trunk data, and the parameters of the same data are discarded, so that the storage pressure is reduced, and the efficiency of the trunk data entering the message queue is improved.
In one embodiment, as shown in fig. 3, step S12 includes:
step S121: and pushing the backbone data to a message queue.
Step S122: and the search service layer acquires the backbone source data from the message queue according to the data request.
Specifically, the trunk data is pushed to the tail of the message queue to obtain list trunk data, and a search service layer of the search server starts to acquire trunk source data from the head of the message queue in the list trunk data according to the data request.
The search service layer further comprises, after acquiring the backbone source data from the message queue according to the data request: storing the acquired backbone source data into a designated database; wherein the database is used for providing the demand data through the Solr cluster.
Specifically, the search service layer stores the backbone source data into a designated database from the backbone data according to the data request. The database only stores effective data corresponding to the search request, so that the required data are conveniently distributed, and the query efficiency is effectively improved.
Based on the same inventive concept, as shown in fig. 4, a product search method shown in another exemplary embodiment of the present disclosure, which can be applied to the application environment shown in fig. 1, includes the steps of:
step S21: and sending a data request to the server according to the received commodity request.
The commodity request is commodity request information sent by a user in the shopping mall.
Specifically, the platform server layer obtains commodity request information sent by the mall user, and sends a data request to the search server according to the commodity request information, and optionally, the commodity request sent by the mall user may be 1 or at least 2 commodity requests.
Step S22: and receiving the demand data returned by the search server.
The demand data is obtained from the main source data according to the data request; the backbone source data is obtained from backbone data; and the main data is obtained by integrating the original mall data by the server according to the updated mall data.
Specifically, the platform server receives demand data returned by the search server according to a data link of the mall, transmits the demand data to a service layer of the platform server, supplements an auxiliary data source, namely a disaster tolerance buffer according to the demand data, the disaster tolerance buffer is used for a mall disaster tolerance standby data source, and then returns the demand data to a mall list in an interface layer of the platform server.
Step S23: and returning the demand data to the terminal equipment of the user according to the commodity request.
Specifically, the platform server interface layer receives demand data sent by the search server, and then returns the demand data to the terminal device of each mall user according to the commodity request information sent by each mall user according to the demand data obtained in the mall list.
In the commodity searching method, the demand data are distributed to each mall user according to the backbone source data obtained by asynchronous processing of the search server, so that the query efficiency of the home page of the client mall and the pressure resistance of the system are improved.
In one embodiment, as shown in fig. 5, step S22 includes:
step S221: and acquiring the state of the interface according to the scheduling information of the interface.
The interface is an external access interface.
Specifically, when the platform server receives commodity request information initiated by a mall user, the platform server schedules the interface and obtains the state of the interface according to the scheduling information of the interface.
Step S222: and if the state of the interface is normal, accessing a search service layer through the Api gateway, and acquiring the required data from the database through a Solr cluster, wherein the Solr cluster is used for providing a distributed search scheme.
Wherein the Solr clusters are used to provide a distributed search scheme; the Api gateway is a server, is the only entry of the system, and is used for connecting the client and the search service layer.
Specifically, when the state of the interface acquired by the platform server is not abnormal, the platform server directly accesses a search service layer of the search server through the Nginx and Api gateway; optionally, the nginnx is a high-performance HTTP and reverse proxy web server. And the search service layer acquires the demand data from the database based on the Solr cluster.
In the commodity searching method, the use of single service is reduced, the pressure resistance of the system is improved, and the access efficiency of the whole shopping mall can be improved.
Step S223: synchronously storing the acquired demand data into a disaster recovery memory; wherein the disaster recovery memory further comprises: the user shares the relationship data of the commodity and the basic data of the commodity.
Specifically, when the platform server acquires the required data, the required data needs to be synchronously stored in the disaster recovery memory to obtain a disaster recovery cache standby data source, so that the disaster recovery cache standby data source is synchronized with the backbone source data for providing the search data.
In the commodity searching method, the acquired demand data is synchronously stored in the disaster recovery memory, the mall users are not aware and are not coupled and associated with the mall commodity service data of the main source data, and whether the failure or not does not affect the platform server to receive the commodity information of the users, send the data request to the search server or acquire the demanded service.
In one embodiment, step S22 further includes:
and if the state of the interface is abnormal, directly acquiring the required data from the disaster recovery memory.
Specifically, when the platform server is in an abnormal state in the acquired interface state or the Solr cluster is abnormal and the platform server cannot acquire the required data from the search server, the platform server may directly acquire the required data from the disaster recovery cache standby data source of the disaster recovery memory according to a commodity request of a mall user.
In the commodity searching method, the disaster-tolerant link source is supplemented for the mall, the problem of collapse of the mall page when the client side directly obtains the main source data from the searching service layer and the abnormal condition occurs is solved, and the user in the mall can obtain the required data in time.
Based on the same inventive concept, the present application further provides a product search method, which can be applied to the application environment shown in fig. 1, as shown in fig. 6, where a search server 102 communicates with a platform server 104 through a network. The method comprises the following steps:
and the search server integrates the original mall data according to the updated mall data to obtain the trunk data, and pushes the trunk data to the message queue.
The platform server receives a commodity request initiated by a mall user and then sends a data request to the search server.
And a search service layer of the search server acquires the backbone source data from the message alignment according to the search request.
The platform server accesses the search service layer through the Api gateway, retrieves the backbone source data from the Solr cluster to obtain search data, returns the search data to the platform server service layer, returns the demand data to the platform server interface layer, and returns the demand information to the terminal equipment of each mall user according to the commodity request of the mall user.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
The present application also provides a commodity search device, the device includes: an integration module and an acquisition module.
An integration module: when the mall data are updated, integrating original mall data according to the updated mall data to obtain main data;
an obtaining module: the data processing device is used for receiving a data request and obtaining backbone source data from the backbone data according to the data request; wherein the backbone source data is used for providing demand data according to the data request.
The integration module is further used for discarding the same data in the main data if the same data of the commodities same as the original mall data exists in the main data.
The obtaining module is further configured to push the backbone data to a message queue; and searching a service layer according to the data request to acquire backbone source data from a message queue.
The acquisition module is further used for storing the acquired backbone source data into a database; wherein the database is used for providing the demand data through the Solr cluster.
Based on the same inventive concept, the present application further provides a commodity search device, the device comprising:
a sending module: the data request is sent to the server according to the received commodity request;
a receiving module: the system comprises a search server, a data processing unit and a data processing unit, wherein the search server is used for receiving demand data returned by the search server, and the demand data is obtained from main source data according to a data request; the backbone source data is obtained from backbone data; the main data is obtained by integrating original mall data by the server according to the updated mall data;
a return module: and the terminal equipment is used for returning the demand data to the user according to the commodity request.
For the specific limitation of the product searching device, reference may be made to the above limitation of the product searching method, and details are not repeated here. The modules in the commodity searching device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing backbone source data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a commodity search method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
when the mall data are updated, integrating original mall data according to the updated mall data to obtain main data;
receiving a data request, and acquiring backbone source data from the backbone data according to the data request; wherein the backbone source data is used for providing demand data according to the data request.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and if the same data of the commodities same as the original mall data exist in the trunk data, discarding the same data in the trunk data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
pushing the backbone data to a message queue;
and the search service layer acquires the backbone source data from the message queue according to the data request.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
storing the acquired backbone source data into a database; wherein the database is used for providing the demand data through the Solr cluster.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
sending a data request to a server according to the received commodity request;
receiving demand data returned by a search server, wherein the demand data is obtained from main source data according to a data request; the backbone source data is obtained from backbone data; the main data is obtained by integrating original mall data by the server according to the updated mall data;
and returning the demand data to the terminal equipment of the user according to the commodity request.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring the state of the interface according to the scheduling information of the interface;
if the state of the interface is normal, accessing a search service layer through an Api gateway, and acquiring required data from a database through a Solr cluster, wherein the Solr cluster is used for providing a distributed search scheme;
synchronously storing the acquired demand data into a disaster recovery memory; wherein the disaster recovery memory further comprises: the user shares the relationship data of the commodity and the basic data of the commodity.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and if the state of the interface is abnormal, directly acquiring the required data from the disaster recovery memory.
A method of merchandise searching, the method comprising:
when the mall data in the search server are updated, integrating original mall data according to the updated mall data to obtain backbone data, obtaining backbone source data from the backbone data according to a received data request, and providing demand data according to the backbone source data;
the platform server receives the commodity request, sends a data request to the search server and acquires the demand data returned by the search server; and returning the demand data to the terminal equipment of the user according to the commodity request.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when the mall data are updated, integrating original mall data according to the updated mall data to obtain main data;
receiving a data request, and acquiring backbone source data from the backbone data according to the data request; wherein the backbone source data is used for providing demand data according to the data request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the same data of the commodities same as the original mall data exist in the trunk data, discarding the same data in the trunk data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
pushing the backbone data to a message queue;
and the search service layer acquires the backbone source data from the message queue according to the data request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
storing the acquired backbone source data into a database; wherein the database is used for providing the demand data through the Solr cluster.
In one embodiment, the computer program when executed by the processor further performs the steps of:
sending a data request to a server according to the received commodity request;
receiving demand data returned by a search server, wherein the demand data is obtained from main source data according to a data request; the backbone source data is obtained from backbone data; the main data is obtained by integrating original mall data by the server according to the updated mall data;
and returning the demand data to the terminal equipment of the user according to the commodity request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring the state of the interface according to the scheduling information of the interface;
if the state of the interface is normal, accessing a search service layer through an Api gateway, and acquiring required data from a database through a Solr cluster, wherein the Solr cluster is used for providing a distributed search scheme;
synchronously storing the acquired demand data into a disaster recovery memory; wherein the disaster recovery memory further comprises: the user shares the relationship data of the commodity and the basic data of the commodity.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the state of the interface is abnormal, directly acquiring the required data from the disaster recovery memory.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the mall data in the search server are updated, integrating original mall data according to the updated mall data to obtain backbone data, obtaining backbone source data from the backbone data according to a received data request, and providing demand data according to the backbone source data;
the platform server receives the commodity request, sends a data request to the search server and acquires the demand data returned by the search server; and returning the demand data to the terminal equipment of the user according to the commodity request.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (15)

1. A method for searching for an item, the method comprising:
when the mall data are updated, integrating original mall data according to the updated mall data to obtain main data;
receiving a data request, and acquiring backbone source data from the backbone data according to the data request; wherein the backbone source data is used for providing demand data according to the data request.
2. The method of claim 1, wherein integrating the original mall data according to the updated mall data to obtain the backbone data further comprises:
and if the same data of the commodities same as the original mall data exist in the trunk data, discarding the same data in the trunk data.
3. The method of claim 1, wherein obtaining the backbone data from the backbone data according to the data request comprises:
pushing the backbone data to a message queue;
and the search service layer acquires the backbone source data from the message queue according to the data request.
4. The method of claim 3, wherein obtaining the backbone source data from the backbone data according to the data request further comprises:
storing the acquired backbone source data into a database; wherein the database is used for providing the demand data through the Solr cluster.
5. A method for searching for an item, the method comprising:
sending a data request to a search server according to the received commodity request;
receiving demand data returned by the search server; the demand data is obtained from the main source data according to the data request; the backbone source data is obtained from backbone data; the main data is obtained by integrating original mall data by the server according to the updated mall data;
and returning the demand data to the terminal equipment of the user according to the commodity request.
6. The method of claim 5, wherein receiving demand data returned by the server comprises:
acquiring the state of the interface according to the scheduling information of the interface;
if the state of the interface is normal, accessing a search service layer through an Api gateway, and acquiring required data from a database through a Solr cluster, wherein the Solr cluster is used for providing a distributed search scheme;
synchronously storing the acquired demand data into a disaster recovery memory; wherein the disaster recovery memory further comprises: the user shares the relationship data of the commodity and the basic data of the commodity.
7. The method of claim 6, wherein receiving demand data returned by the server further comprises:
and if the state of the interface is abnormal, directly acquiring the required data from the disaster recovery memory.
8. A method for searching for an item, the method comprising:
when the mall data in the search server are updated, integrating original mall data according to the updated mall data to obtain backbone data, obtaining backbone source data from the backbone data according to a received data request, and providing demand data according to the backbone source data;
the platform server receives the commodity request, sends a data request to the search server and acquires the demand data returned by the search server; and returning the demand data to the terminal equipment of the user according to the commodity request.
9. An article search apparatus, characterized in that the apparatus comprises: an integration module and an acquisition module;
an integration module: when the mall data are updated, integrating original mall data according to the updated mall data to obtain main data;
an obtaining module: the data processing device is used for receiving a data request and obtaining backbone source data from the backbone data according to the data request; wherein the backbone source data is used for providing demand data according to the data request.
10. The apparatus of claim 8, wherein the integration module is further configured to discard the same data in the main data if the same data of the same commodity as the original mall data exists in the main data.
11. The apparatus of claim 8, wherein the obtaining module is further configured to push the backbone data into a message queue; and searching a service layer according to the data request to acquire backbone source data from a message queue.
12. The apparatus of claim 9, wherein the obtaining module is further configured to store the obtained backbone source data in a database; wherein the database is used for providing the demand data through the Solr cluster.
13. An article search apparatus, characterized in that the apparatus comprises:
a sending module: the data request is sent to the server according to the received commodity request;
a receiving module: the system comprises a server, a data processing unit and a data processing unit, wherein the data processing unit is used for receiving demand data returned by the server, and the demand data is obtained from main source data according to a data request; the backbone source data is obtained from backbone data; the main data is obtained by integrating original mall data by the server according to the updated mall data;
a return module: and the terminal equipment is used for returning the demand data to the user according to the commodity request.
14. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 8 are implemented when the computer program is executed by the processor.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN201911419938.6A 2019-12-31 2019-12-31 Commodity searching method, commodity searching device, computer equipment and storage medium Active CN111241135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911419938.6A CN111241135B (en) 2019-12-31 2019-12-31 Commodity searching method, commodity searching device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911419938.6A CN111241135B (en) 2019-12-31 2019-12-31 Commodity searching method, commodity searching device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111241135A true CN111241135A (en) 2020-06-05
CN111241135B CN111241135B (en) 2024-04-09

Family

ID=70874159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911419938.6A Active CN111241135B (en) 2019-12-31 2019-12-31 Commodity searching method, commodity searching device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111241135B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831252A (en) * 2012-09-21 2012-12-19 北京奇虎科技有限公司 Method and device for updating index database and search method and system
CN104794177A (en) * 2015-04-02 2015-07-22 广州神马移动信息科技有限公司 Data storing method and device
CN106709003A (en) * 2016-12-23 2017-05-24 长沙理工大学 Hadoop-based mass log data processing method
CN107133362A (en) * 2017-06-01 2017-09-05 北京凤凰理理它信息技术有限公司 Commodity Information Search method, system, computer program and electronic equipment
CN109284334A (en) * 2018-09-05 2019-01-29 拉扎斯网络科技(上海)有限公司 Real-time data base synchronous method, device, electronic equipment and storage medium
CN110300050A (en) * 2019-05-23 2019-10-01 中国平安人寿保险股份有限公司 Information push method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831252A (en) * 2012-09-21 2012-12-19 北京奇虎科技有限公司 Method and device for updating index database and search method and system
CN104794177A (en) * 2015-04-02 2015-07-22 广州神马移动信息科技有限公司 Data storing method and device
CN106709003A (en) * 2016-12-23 2017-05-24 长沙理工大学 Hadoop-based mass log data processing method
CN107133362A (en) * 2017-06-01 2017-09-05 北京凤凰理理它信息技术有限公司 Commodity Information Search method, system, computer program and electronic equipment
CN109284334A (en) * 2018-09-05 2019-01-29 拉扎斯网络科技(上海)有限公司 Real-time data base synchronous method, device, electronic equipment and storage medium
CN110300050A (en) * 2019-05-23 2019-10-01 中国平安人寿保险股份有限公司 Information push method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111241135B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN110636130B (en) Delayed message processing method and device, computer equipment and storage medium
CN109788053B (en) Data synchronization method and system
CN108449405B (en) Event reminding method and device, computer equipment and storage medium
CN105373448B (en) The restoration methods and system of fault data in database
US20190102103A1 (en) Techniques for storing and retrieving data from a computing device
CN109492019B (en) Service request response method, device, computer equipment and storage medium
WO2016110209A1 (en) Page display method and system
CN110795427B (en) Data separation storage method and device, computer equipment and storage medium
CN110795457B (en) Data caching processing method, device, computer equipment and storage medium
CN107656937B (en) Method and device for realizing consistency of read-write data
CN110708247B (en) Message routing method, message routing device, computer equipment and storage medium
CN103207882A (en) Shop visiting data processing method and system
CN112351068A (en) Information synchronization method, system, device, computer equipment and storage medium
CN108512869B (en) Method and system for processing concurrent data in asynchronous mode
CN104243582A (en) Online shopping platform concurrent access optimizing device and method
CN107229656A (en) Full dose data export method, apparatus and system
CN112261090A (en) Web data processing method and device, computer equipment and readable storage medium
CN110765131B (en) Data compression method and device for goods source data, computer equipment and storage medium
CN114637611A (en) Information processing method and device based on message queue and computer equipment
CN111193789A (en) Subscription information pushing method and device, computer equipment and readable storage medium
CN113949889A (en) Object processing method and device, electronic equipment and storage medium
CN111241135A (en) Commodity searching method and device, computer equipment and storage medium
CN111273964B (en) Data loading method and device
US11023440B1 (en) Scalable distributed data processing and indexing
CN110851477B (en) Stream data processing method, stream data processing device, computer equipment and storage medium

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