This document generally relates to performing online searches in retail procurement systems. More particularly, this document relates to performing an object search on partial data received from an external system.
Retail procurement is a branch of supply management in which businesses (such as retailers) acquire objects from other businesses (such as distributors, wholesalers, or manufacturers). Procurement in the retail industry goes beyond a transaction-based activity, to a strategic initiative that can drive significant savings. It is becoming more prevalent for retailers to utilize software to aid in the procurement process. Indeed, as a retailer grows larger, it becomes more and more necessary to automate and simplify the retail procurement process, so software has grown more advanced in the past few years.
Goods that are bought and sold in such retail procurement systems are often called “articles,” although they may also be known as “objects.” Typically, these objects will have categories (and possibly subcategories) assigned to them in a taxonomy. For example, a particular brand and model of pencil may be placed in the subcategory of “pencils,” which itself may be in the subcategory of “writing instruments,” which itself may be in the subcategory of “office supplies.”
Categories, subcategories, and objects may be assigned characteristics, such as color and size. For example, a particular brand and model of pencil may be assigned a color characteristic of “red” and a size characteristic of “small.” If the pencils subcategory were to be assigned those same characteristics, that would mean that all pencil objects assigned to that subcategory share those same characteristics. Additionally, multiple characteristics may be grouped into a characteristic profile, which can also then be applied to categories, subcategories, and objects.
At the technical level, each of the category, subcategory, and object information may be obtained by the retail procurement system from an external system, such as an Enterprise Resource Planning (ERP) system. Such external systems typically communicate with the retail procurement system via the Internet, and specifically using HyperText Transfer Protocol (HTTP) packets. The ordering of such HTTP transmissions, however, is not guaranteed by most networks, and thus it is common to send packets in one order and yet have them be received (and processed) in a different order on the other end of the communication. The result is that when downloading a hierarchy of categories, subcategories, and objects, as well as obtaining and processing their respective characteristics, there is no guarantee that the various pieces of information will be received in a particular order. For example, the category for an object may be received after the object itself is received, or the category may be received first and the object after.
From the technical perspective, this makes it difficult to implement search functionalities within these retail procurement systems. Because the objects, categories, subcategories, characteristics, and characteristic profiles may have varying degrees of dependencies on one another, no object in the hierarchy is searchable until all of its dependencies are obtained and resolved, which often means that no object is searchable until after most if not all of the hierarchy data has been downloaded and processed. This creates delays and can be frustrating to users who need the search capability enabled sooner in order to use object and related information to generate events.
The present disclosure is illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements.
The description that follows includes illustrative systems, methods, techniques, instruction sequences, and computing machine program products that embody illustrative embodiments. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide an understanding of various embodiments of the inventive subject matter. It will be evident, however, to those skilled in the art, that embodiments of the inventive subject matter can be practiced without these specific details. In general, well-known instruction instances, protocols, structures, and techniques have not been shown in detail.
In an example embodiment, various mechanisms are implemented in a retail procurement system to allow users to perform searches on downloaded object and object-related data when only partial data has been downloaded or the data is otherwise incomplete.
Additionally, certain characteristics, such as characteristics 110A-110D, may be assigned to one or more characteristic profiles 112A-112B, which then themselves can be assigned to objects, merchandise categories, and/or merchandise category hierarchical elements.
In an example embodiment, each node in the object hierarchy 100 may have a name, such as “All,” “Electronics,” “T-Shirts,” “Pencil,” etc., along with respective IDs, which may be unique in the retail procurement system. While the names of the nodes may have localized meaning (e.g., they may have the same meaning in English, Japanese, Arabic, etc.), the string literals for various translations of the names may be different, and different of these string literals may be presented to users based on location.
Thus, in the object hierarchy 100 of
All of the leaf nodes (e.g., objects 102A-102F) in this object hierarchy 100 represent articles that can be directly added to a sourcing event upon an article master search. Alternatively, after creating an ad-hoc item, a user can search a category from this hierarchy, and respective characteristics would be copied to the event pertaining to the category. Whenever any object or category is utilized for a sourcing event, the characteristics for all parent nodes in the hierarchy are copied for that line item. For example, if the category “T-shirt” is added to the line item, then the characteristics of “T-shirt,” “men's clothing,” “clothing,” and all node categories may also be copied.
As mentioned earlier, from the technical perspective, given the way data flows into a retail procurement system, it is not possible for an external source to send the entire hierarchy at once. Rather, the data is sent in chunks, with each chunk containing a payload for one article, one characteristic for an article ID, a relationship between article IDs, etc. Since the payloads in these chunks may be received in random order, prior-art systems would need to wait to become fully functional until all of the relevant information has been received through different payloads. The reasons for such delays and random order could vary based on factors such as delays in the external system creating the data, delays in waiting for approval in intermediate systems, network errors or delays, and the like.
In an example embodiment, techniques are used to allow searching to be performed when the payloads received are not complete enough to have all the dependencies/characteristics for each node. For example, in an example embodiment, searching is still possible if a payload showing a relationship between two objects and characteristics of the objects has been received but the article ID itself and the localization data of the characteristics still have not arrived. Likewise, searching is still possible if only relationships between article IDs have arrived but not the localization data or characteristics.
From the technical standpoint, some circumstances of partial data are relatively straightforward, while others are more complex. Several different scenarios and their respective handlings will now be described.
In a first scenario, only characteristics have arrived, along with their tag information, but not with the category associations. In this instance, the user can search only the characteristics by their tags.
In a second scenario, only the article ID and characteristic ID relationship along with the applied values for characteristics for the article have arrived, but the localization data has yet to arrive. Here, the user can search for the article by ID. On copying the article for the event, characteristics with their IDs and associated values are also copied.
In a third scenario, only the object information is received along with the category node's ID. The category node's localization information, which includes the localization data and other metadata, has yet to be received. In this case, partially linked data can be created, which is inferred through input data interpretation for the category with the received category ID. No characteristics are associated with this category, as these cannot be predicted, but the user is still free to search and add the object to the category. Upon adding the object, the user will at least have the characteristics pertaining to the selected article. The category's ID would also be set on the created line item.
Hence, the user can make use of their external system's capabilities to prioritize the data to be shown and start making use of it in their sourcing event without waiting for complete data arrival.
In an example embodiment, as each payload arrives, the retail procurement system checks if the dependent data is present or not in the system. If it is present, then its reference is used while creating the master data. If it is not present, the retail procurement system generates the partially linked data.
Other examples are hereby provided. In a first example, a category payload has arrived with a category ID C01, but the localized description has not arrived. The user is still able to search the category by its ID (C01).
In a second example, objects have arrived showing the category ID C02, but the category payload for C02 has not yet arrived. Here the user can still search the objects by their ID or name, or even search for the category C02 to see objects falling within that category.
In a third example, a characteristics payload has arrived for category C03, but the category payload still has not yet arrived. Here the user can still search for the category C03 and add it to an event, and all the identified attributes would be copied to the event.
In a fourth example, a characteristics payload has arrived but without the characteristics' localized descriptions. The user can still add these characteristics to the line item using their external IDs (not the localized descriptions).
It should be noted that the user can not only search through the nodes, but also browse through them as well.
The client applications 502A, 502B may provide data about nodes in a hierarchy of objects (such as articles in a product directory), categories, characteristics, and/or characteristic profiles in chunks that are received in potentially random order by the index and search manager 504.
For each client application 502A, 502B, an indexing adapter 512A, 512B may be provided. Each indexing adapter 512A, 512B can include a parser created to parse document types supported by the corresponding client application 502A, 502B. As an example, the client application 502A providing directory data may utilize the indexing adapter 512A, which may include a CIF parser (to parse primary CIF directory data) and various XML parsers for the auxiliary data, such as kit information, Units of Measure (UOM) maps, etc. Each parser may have two modes. The first mode can parse the byte stream of the incoming documents into rows. The second mode can parse the rows into an indexable object.
As pictured, the indexing adapters 512A, 512B may actually be contained in the index and search manager 504. An index manager 514 may act to manage the indexing process. This may include a queue manager 516 which manages a queue 518 containing incoming data from the client applications 502A, 502B which needs to be indexed. The index manager 514 may act to send data at the front of the queue 518 to the appropriate indexing adapter 512A, 512B for the corresponding client application 502A, 502B while also building a request to an index builder 522.
In an example embodiment, the index manager 514 may have a redundant architecture that provides an application programming interface (API) to the client applications 502A, 502B to allow the client applications 502A, 502B to submit indexing jobs. The indexing message produced through the API may contain enough information to uniquely identify the request. This identification could be used to track the status of the submitted jobs.
The index manager 514 may utilize feedback from the distributed database 506 to decide on the indexing jobs to be run in the distributed database 506 to allow a scalable computing architecture for building index shards 520. Specifically, the index manager 514 may send a request to build an index to the index builder 522, which may build the index shards 520. A search core 524 may contain an index updater 526, which can take the index shards 520 and update a local index cache 528 using the index shards 520. This local index cache 528 can then be synchronized with a network file system, which can then distribute the index to the distributed database 506. Each index shard 520 is a subset of the index for a given file type. For example, a shard could include directory objects from a subset of tenants. For large directories, a single directory may span multiple index shards 520.
The distributed database may 506 may contain a data access layer 530, a queue 532, tenant information 534, and documents 536.
The search core 524 may host search queries from the retailer applications 503A, 503B via a search load balancer 538, which acts to balance the load of search requests among multiple instantiations of the search core 524 on multiple physical or logical servers. The search core 524 may also expose a Representational State Transfer (REST)-based search and faceting API (not pictured). The search core 524 may perform aggregation, faceting, ranking, and relevance algorithms on search results. The source documents are primary indexing targets. Each source document may store a document identification key for auxiliary data. In an example embodiment, the auxiliary data itself is stored in the same index shard 520. This allows for locality of reference, so that an auxiliary data object related to a primary data object can be easily retrieved during a search.
The search core 524 may keep track of recent changes to the local index cache 528 in a special queue 540 for receiving the updates to support search. The updates may be immediately applied to the reader but may be batched before committing to the local index segments.
The index manager 514 may use information from the coordinator 508 and the sharding manager 510 to decide on the indexing jobs to be run in the distributed database 506 to allow a scalable computing architecture for building the index shards 520.
Each index shard 520 may contain Lucene index segments for a set of tenants, as will be described in more detail below. The job of indexing may be designed as a map-reduce job that parses the source document and any auxiliary documents to create the Lucene index segments.
Within the local index cache 528, the primary documents may be modeled as Lucene “documents.” The document fields, their indexing properties (stored, indexed, etc.), norms, etc. may be modeled in the bundle providing the local index cache 528. The auxiliary document identifications may be stored in the Lucene document for linking the auxiliary data. The actual auxiliary documents may be stored in the same index as separate documents. For example, a single shard may contain documents relating to a first tenant, including a first directory object (with object attributes and supplier identification), a second directory object (with object attributes and supplier identification), a third directory object (with object attributes and supplier identification), and a supplier document with three different supplier detail files. The supplier document is a single document, with the supplier detail files being auxiliary documents. The supplier document may be stored with a key matching the supplier identification field in each source document in the index.
The coordinator 508 may implement a protocol for routing, shard configuration, rolling-apply, and other management functions. The coordinator 508 may additionally provide the node status and consensus protocol.
The sharding manager 510 may implement the elasticity architecture for distributing the index across search cores 524. In an example embodiment, the sharding manager 510 may receive a HyperText Transfer Protocol (HTTP) request for a search and may be aware of which search core 524 can respond to this request. It can then route the request to the specific search core 524, perhaps based at least partially on load balancing if multiple search cores 524 can respond to the request. The search core 524 may then use libraries to parse the queries and launch a search, and then respond with matches found, in an extensible markup language (XML) document. The XML document may comprise primary data along with the supporting auxiliary data. Notably, the search core 524 may perform these searches on partial data, namely when localization information for only some but not all of the nodes in the hierarchy has been received, as described above. The index builder 522 may form the dummy nodes described earlier.
A graphical user interface 710 in
A graphical user interface 730 in
Thus, a system is provided where even partial data received for an object hierarchy is sufficient for searching even though auxiliary data has not yet arrived. This allows the system to be used via a graphical user interface as early as possible, thus making retail integration fast and more quickly available. Furthermore, users are then able to begin the procurement process more quickly.
In various implementations, the operating system 804 manages hardware resources and provides common services. The operating system 804 includes, for example, a kernel 820, services 822, and drivers 824. The kernel 820 acts as an abstraction layer between the hardware and the other software layers, consistent with some embodiments. For example, the kernel 820 provides memory management, processor management (e.g., scheduling), component management, networking, and security settings, among other functionality. The services 822 can provide other common services for the other software layers. The drivers 824 are responsible for controlling or interfacing with the underlying hardware, according to some embodiments. For instance, the drivers 824 can include display drivers, camera drivers, BLUETOOTH® or BLUETOOTH® Low-Energy drivers, flash memory drivers, serial communication drivers (e.g., Universal Serial Bus (USB) drivers), Wi-Fi® drivers, audio drivers, power management drivers, and so forth.
In some embodiments, the libraries 806 provide a low-level common infrastructure utilized by the applications 810. The libraries 806 can include system libraries 830 (e.g., C standard library) that can provide functions such as memory allocation functions, string manipulation functions, mathematic functions, and the like. In addition, the libraries 806 can include API libraries 832 such as media libraries (e.g., libraries to support presentation and manipulation of various media formats such as Moving Picture Experts Group-4 (MPEG4), Advanced Video Coding (H.264 or AVC), Moving Picture Experts Group Layer-3 (MP3), Advanced Audio Coding (AAC), Adaptive Multi-Rate (AMR) audio codec, Joint Photographic Experts Group (JPEG or JPG), or Portable Network Graphics (PNG)), graphics libraries (e.g., an OpenGL framework used to render in 2D and 3D in a graphic context on a display), database libraries (e.g., SQLite to provide various relational database functions), web libraries (e.g., WebKit to provide web browsing functionality), and the like. The libraries 806 can also include a wide variety of other libraries 834 to provide many other APIs to the applications 810.
The frameworks 808 provide a high-level common infrastructure that can be utilized by the applications 810, according to some embodiments. For example, the frameworks 808 provide various graphic user interface (GUI) functions, high-level resource management, high-level location services, and so forth. The frameworks 808 can provide a broad spectrum of other APIs that can be utilized by the applications 810, some of which may be specific to a particular operating system or platform.
In an example embodiment, the applications 810 include a home application 850, a contacts application 852, a browser application 854, a book reader application 856, a location application 858, a media application 860, a messaging application 862, a game application 864, and a broad assortment of other applications, such as a third-party application 866. According to some embodiments, the applications 810 are programs that execute functions defined in the programs. Various programming languages can be employed to create one or more of the applications 810, structured in a variety of manners, such as object-oriented programming languages (e.g., Objective-C, Java, or C++) or procedural programming languages (e.g., C or assembly language). In a specific example, the third-party application 866 (e.g., an application developed using the ANDROID™ or IOS™ software development kit (SDK) by an entity other than the vendor of the particular platform) may be mobile software running on a mobile operating system such as IOS™, ANDROID™, WINDOWS® Phone, or another mobile operating system. In this example, the third-party application 866 can invoke the API calls 812 provided by the operating system 804 to facilitate functionality described herein.
The machine 900 may include processors 910, memory 930, and I/O components 950, which may be configured to communicate with each other such as via a bus 902. In an example embodiment, the processors 910 (e.g., a Central Processing Unit (CPU), a Reduced Instruction Set Computing (RISC) processor, a Complex Instruction Set Computing (CISC) processor, a Graphics Processing Unit (GPU), a Digital Signal Processor (DSP), an application-specific integrated circuit (ASIC), a Radio-Frequency Integrated Circuit (RFIC), another processor, or any suitable combination thereof) may include, for example, a processor 912 and a processor 914 that may execute the instructions 916. The term “processor” is intended to include multi-core processors that may comprise two or more independent processors (sometimes referred to as “cores”) that may execute instructions contemporaneously. Although
The memory 930 may include a main memory 932, a static memory 934, and a storage unit 936, each accessible to the processors 910 such as via the bus 902. The main memory 932, the static memory 934, and the storage unit 936 store the instructions 916 embodying any one or more of the methodologies or functions described herein. The instructions 916 may also reside, completely or partially, within the main memory 932, within the static memory 934, within the storage unit 936, within at least one of the processors 910 (e.g., within the processor's cache memory), or any suitable combination thereof, during execution thereof by the machine 900.
The I/O components 950 may include a wide variety of components to receive input, provide output, produce output, transmit information, exchange information, capture measurements, and so on. The specific I/O components 950 that are included in a particular machine will depend on the type of machine. For example, portable machines such as mobile phones will likely include a touch input device or other such input mechanisms, while a headless server machine will likely not include such a touch input device. It will be appreciated that the I/O components 950 may include many other components that are not shown in
In further example embodiments, the I/O components 950 may include biometric components 956, motion components 958, environmental components 960, or position components 962, among a wide array of other components. For example, the biometric components 956 may include components to detect expressions (e.g., hand expressions, facial expressions, vocal expressions, body gestures, or eye tracking), measure biosignals blood pressure, heart rate, body temperature, perspiration, or brain waves), identify a person (e.g., voice identification, retinal identification, facial identification, fingerprint identification, or electroencephalogram-based identification), and the like. The motion components 958 may include acceleration sensor components (e.g., accelerometer), gravitation sensor components, rotation sensor components (e.g., gyroscope), and so forth. The environmental components 960 may include, for example, illumination sensor components (e.g., photometer), temperature sensor components (e.g., one or more thermometers that detect ambient temperature), humidity sensor components, pressure sensor components (e.g., barometer), acoustic sensor components (e.g., one or more microphones that detect background noise), proximity sensor components (e.g., infrared sensors that detect nearby objects), gas sensors (e.g., gas detection sensors to detect concentrations of hazardous gases for safety or to measure pollutants in the atmosphere), or other components that may provide indications, measurements, or signals corresponding to a surrounding physical environment. The position components 962 may include location sensor components (e.g., a Global Positioning System (GPS) receiver component), altitude sensor components (e.g., altimeters or barometers that detect air pressure from which altitude may be derived), orientation sensor components (e.g., magnetometers), and the like.
Communication may be implemented using a wide variety of technologies. The I/O components 950 may include communication components 964 operable to couple the machine 900 to a network 980 or devices 970 via a coupling 982 and a coupling 972, respectively. For example, the communication components 964 may include a network interface component or another suitable device to interface with the network 980. In further examples, the communication components 964 may include wired communication components, wireless communication components, cellular communication components. Near Field Communication (NFC) components, Bluetooth® components (e.g., Bluetooth® Low Energy), components, and other communication components to provide communication via other modalities. The devices 970 may be another machine or any of a wide variety of peripheral devices (e.g., coupled via a USB).
Moreover, the communication components 964 may detect identifiers or include components operable to detect identifiers. For example, the communication components 964 may include RFID tag reader components, NFC smart tag detection components, optical reader components (e.g., an optical sensor to detect one-dimensional bar codes such as Universal Product Code (UPC) bar code, multi-dimensional bar codes such as QR code, Aztec code, Data Matrix, Dataglyph, MaxiCode, PDF417, Ultra Code, UCC RSS-2D bar code, and other optical codes), or acoustic detection components (e.g., microphones to identify tagged audio signals). In addition, a variety of information may be derived via the communication components 964, such as location via Internet Protocol (IP) geolocation, location via Wi-Fi® signal triangulation, location via detecting an NFC beacon signal that may indicate a particular location, and so forth.
The various memories (i.e., 930, 932, 934, and/or memory of the processor(s) 910) and/or the storage unit 936 may store one or more sets of instructions and data structures (e.g., software) embodying or utilized by any one or more of the methodologies or functions described herein. These instructions (e.g., the instructions 916), when executed by the processor(s) 910, cause various operations to implement the disclosed embodiments.
As used herein, the terms “machine-storage medium,” “device-storage medium,” and “computer-storage medium” mean the same thing and may be used interchangeably. The terms refer to a single or multiple storage devices and/or media (e.g., a centralized or distributed database, and/or associated caches and servers) that store executable instructions and/or data. The terms shall accordingly be taken to include, but not be limited to, solid-state memories, and optical and magnetic media, including memory internal or external to processors. Specific examples of machine-storage media, computer-storage media, and/or device-storage media include non-volatile memory, including by way of example semiconductor memory devices, e.g., erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), field-programmable gate array (FPGA), and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The terms “machine-storage media,” “computer-storage media,” and “device-storage media” specifically exclude carrier waves, modulated data signals, and other such media, at least some of which are covered under the term “signal medium” discussed below.
In various example embodiments, one or more portions of the network 980 may be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local-area network (LAN), a wireless LAN (WLAN), a wide-area network (WAN), a wireless WAN (WWAN), a metropolitan-area network (MAN), the Internet, a portion of the Internet, a portion of the public switched telephone network (PSTN), a plain old telephone service (POTS) network, a cellular telephone network, a wireless network, a Wi-Fi® network, another type of network, or a combination of two or more such networks. For example, the network 980 or a portion of the network 980 may include a wireless or cellular network, and the coupling 982 may be a Code Division Multiple Access (CDMA) connection, a Global System for Mobile communications (GSM) connection, or another type of cellular or wireless coupling. In this example, the coupling 982 may implement any of a variety of types of data transfer technology, such as Single Carrier Radio Transmission Technology (1×RTT), Evolution-Data Optimized (EVDO) technology, General Packet Radio Service (GPRS) technology, Enhanced Data rates for GSM Evolution (EDGE) technology, third Generation Partnership Project (3GPP) including 3G, fourth generation wireless (4G) networks, Universal Mobile Telecommunications System (UMTS), High-Speed Packet Access (HSPA), Worldwide Interoperability for Microwave Access (WiMAX), Long-Term Evolution (LTE) standard, others defined by various standard-setting organizations, other long-range protocols, or other data transfer technology.
The instructions 916 may be transmitted or received over the network 980 using a transmission medium via a network interface device (e.g., a network interface component included in the communication components 964) and utilizing any one of a number of well-known transfer protocols (e.g., HTTP). Similarly, the instructions 916 may be transmitted or received using a transmission medium via the coupling 972 (e.g., a peer-to-peer coupling) to the devices 970. The terms “transmission medium” and “signal medium” mean the same thing and may be used interchangeably in this disclosure. The terms “transmission medium” and “signal medium” shall be taken to include any intangible medium that is capable of storing, encoding, or carrying the instructions 916 for execution by the machine 900, and include digital or analog communications signals or other intangible media to facilitate communication of such software. Hence, the terms “transmission medium” and “signal medium” shall be taken to include any form of modulated data signal, carrier wave, and so forth. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal.
The terms “machine-readable medium,” “computer-readable medium,” and “device-readable medium” mean the same thing and may be used interchangeably in this disclosure. The terms are defined to include both machine-storage media and transmission media. Thus, the terms include both storage devices/media and carrier waves/modulated data signals.
Number | Name | Date | Kind |
---|---|---|---|
8024221 | Porte | Sep 2011 | B2 |
9262498 | Ferris | Feb 2016 | B2 |
9378359 | Qureshi | Jun 2016 | B2 |
20050125251 | Berger | Jun 2005 | A1 |
20110066658 | Rhoads | Mar 2011 | A1 |
Number | Date | Country | |
---|---|---|---|
20200151262 A1 | May 2020 | US |