Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Search method and device and storage medium

A search method and conversion device technology, applied in the computer field, can solve problems such as codes cannot be reused, business function access costs are high, search pages cannot be reused, etc.

Active Publication Date: 2017-12-15
BEIJING 58 INFORMATION TTECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, each business entry page implements its own set of search logic, such as figure 2 As shown, this would result in over 10,000 lines of duplicated code
[0007] (2) High coupling problem:
This is more severe coupling
[0012] (3) The problem that the search page cannot be reused:
There is no city business in the whole site search, and there are no hot words and other services on the city selection page search page. Such customization makes the search page unable to be reused
[0015] (4) The problem of high access cost of business functions:
[0020] In summary, with the iteration of the version and the complexity of the business, the existing search framework is constantly being challenged
Problems such as non-reusable code, high degree of coupling, and high access cost of business functions have accumulated over time and become urgent problems to be solved

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Search method and device and storage medium
  • Search method and device and storage medium
  • Search method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0119] In a specific embodiment of the present invention, the implementation of converting the searched raw data into a data model suitable for the business that triggers the search operation through the data model adapter includes:

[0120] (1) Utilize the data model adapter to traverse the original data to obtain the key in the data;

[0121] (2) Search the data model component registry according to the key, and obtain the ClassName of the data model corresponding to the key; wherein, the data model component registry includes a mapping relationship between the key and the data model Class Name.

[0122] (3) Create an instance object model of the Class Name, and transfer the dictionary corresponding to the key to the instance object model to obtain an array of [key: instance object model].

[0123] Step S502, converting the converted data model into a view object through a view model adapter;

Embodiment approach

[0124] In a specific embodiment of the present invention, the implementation method of converting the converted data model into a view object through a view model adapter includes:

[0125] (1) According to the key in the [key: instance object model] array obtained in step S501, search the view model component registry to obtain the Class Name of the view model corresponding to the key; wherein, the view model component registry contains key and The mapping relationship between view model Class Name.

[0126] (2) Generate a view object according to the Class Name of the view model, and transfer the instance object model corresponding to the key to the view object.

[0127] In an optional embodiment of the present invention, configuring the instance object model corresponding to the key to the view object specifically includes:

[0128] Obtain the view method of the view model corresponding to the key from the view model pool in the component pool, and configure the instance o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a search method and device and a storage medium. The method includes the steps that original data obtained after search is converted into a data model matched with a service triggering a search operation through a first conversion device; the data model obtained after conversion is converted into a view object through a second conversion device, and a current page skips to a search result page corresponding to the view object. According to the scheme, modularization of the search page is achieved, the reusability of the search page is improved, and code redundancy is reduced.

Description

technical field [0001] The invention relates to the field of computers, in particular to a search method, device and storage medium. Background technique [0002] At present, many APPs (computer applications) can realize internal search. For example, 58 Tongcheng APP, specifically, the homepage of 58 Tongcheng APP provides a search function, which is called the whole station search; 58 Tongcheng APP also has second-hand goods, real estate, and second-hand cars. This is a coarse-grained business line. Break it down, second-hand can be split into second-hand goods, pets and other categories; real estate can be split into rental housing, second-hand housing and other categories; recruitment can be split into full-time Recruitment, part-time jobs and other categories; Yellow Pages split into categories such as housekeeping and local services. The split pages of these finer categories are called large category pages, and these large category pages also provide search functions, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/951G06F16/957
Inventor 刘孟
Owner BEIJING 58 INFORMATION TTECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products