Nothing Special   »   [go: up one dir, main page]

CN109255011A - A kind of Search Hints method and electronic equipment based on artificial intelligence - Google Patents

A kind of Search Hints method and electronic equipment based on artificial intelligence Download PDF

Info

Publication number
CN109255011A
CN109255011A CN201810803868.3A CN201810803868A CN109255011A CN 109255011 A CN109255011 A CN 109255011A CN 201810803868 A CN201810803868 A CN 201810803868A CN 109255011 A CN109255011 A CN 109255011A
Authority
CN
China
Prior art keywords
commodity
product name
keyword
word library
data source
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
CN201810803868.3A
Other languages
Chinese (zh)
Other versions
CN109255011B (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.)
Shenzhen Dianmao Technology Co Ltd
Original Assignee
Shenzhen Dianmao 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 Shenzhen Dianmao Technology Co Ltd filed Critical Shenzhen Dianmao Technology Co Ltd
Priority to CN201810803868.3A priority Critical patent/CN109255011B/en
Publication of CN109255011A publication Critical patent/CN109255011A/en
Application granted granted Critical
Publication of CN109255011B publication Critical patent/CN109255011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a kind of Search Hints method and electronic equipment based on artificial intelligence, wherein method is comprising steps of A, all data in commodity list included in database all being imported and are collected in documents;In importing process, word library data source is created, the word library data source includes the product name that inventory is not 0 and all commodity in restocking state in the commodity list;B, when user's search commercial articles, the keyword of user's input is obtained;C, the keyword is matched with the word library data source, and obtains the product name of successful match, and be shown.Through the invention, when data import, if merchandise news in database changes can synchronous vacations create the value of field, thus can dynamically change search completion word library in the case where not establishing redundant field, and only recommend in restocking state and inventory be not 0 commodity.

Description

A kind of Search Hints method and electronic equipment based on artificial intelligence
Technical field
The present invention relates to search field more particularly to a kind of Search Hints methods and electronic equipment based on artificial intelligence.
Background technique
Solr is at present using relatively more extensive a search engine, suggest component (it is recommended that component) group Part is also the component that would generally be used when doing Search Hints (completion) function.The word library data that the component provides are come There are two types of sources: one is the vocabulary in the dict.txt text for reading configuration, another kind is to extract collection document (to collect Document) in all data in some field (being equivalent to the column in tables of data).Wherein, the first data source is inflexible, nothing Method dynamically removes the word removed in real time, in addition or modification word library;And the second way equally exists under certain scene Problem can all prompt the commodity that undercarriage or inventory are 0.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of Search Hints based on artificial intelligence Method and electronic equipment, it is intended to solve the problems, such as that Search Hints method is ineffective in the prior art.
Technical scheme is as follows:
A kind of Search Hints method based on artificial intelligence, wherein comprising steps of
A, all data in commodity list included in database are all imported and is collected in document;
In importing process, word library data source is created, the word library data source includes library in the commodity list It deposits not as 0 and the product name of all commodity in restocking state;
B, when user's search commercial articles, the keyword of user's input is obtained;
C, the keyword is matched with the word library data source, and obtains the product name of successful match, And it is shown.
The Search Hints method based on artificial intelligence, wherein in the step A, pass through dataImport component All data in commodity list are imported and are collected in document.
The Search Hints method based on artificial intelligence, wherein include commodity id, commodity volume in the commodity list Number, product name, commodity stocks and upper and lower rack-like state.
The Search Hints method based on artificial intelligence, wherein the step C is specifically included:
C1, the product name comprising the keyword is successively searched from the word library data source;
If C2, finding the product name comprising the keyword, it is shown.
A kind of electronic equipment, wherein include:
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
All data in commodity list included in database are all imported and are collected in document;
In importing process, word library data source is created, the word library data source includes library in the commodity list It deposits not as 0 and the product name of all commodity in restocking state;
When user's search commercial articles, the keyword of user's input is obtained;
The keyword is matched with the word library data source, and obtains the product name of successful match, and It is shown.
The electronic equipment, wherein all data in commodity list are imported by dataImport component and collect text In shelves.
The electronic equipment, wherein include commodity id, goods number, product name, commodity stocks in the commodity list With upper and lower rack-like state.
The electronic equipment, wherein it is described to match the keyword with the word library data source, and obtain The product name of successful match is taken, and the step of being shown specifically includes:
The product name comprising the keyword is successively searched from the word library data source;
If finding the product name comprising the keyword, it is shown.
The utility model has the advantages that through the invention, when data import, if merchandise news in database changes can synchronous vacations it is new The value of field is built, thus can dynamically change search completion word library in the case where not establishing redundant field, and only push away Recommend be not in restocking state and inventory 0 commodity.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the Search Hints method preferred embodiment based on artificial intelligence of the present invention.
Fig. 2 is the structural block diagram of a kind of electronic equipment preferred embodiment of the present invention.
Specific embodiment
The present invention provides a kind of Search Hints method and electronic equipment based on artificial intelligence, for make the purpose of the present invention, Technical solution and effect are clearer, clear, and the present invention is described in more detail below.It should be appreciated that described herein Specific embodiment is only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of process of the Search Hints method preferred embodiment based on artificial intelligence of the present invention Figure, as shown, itself comprising steps of
S1, all data in commodity list included in database are all imported and are collected in document;
In importing process, word library data source is created, the word library data source includes library in the commodity list It deposits not as 0 and the product name of all commodity in restocking state;
S2, when user's search commercial articles, obtain user input keyword;
S3, the keyword is matched with the word library data source, and obtains the product name of successful match, And it is shown.
Through the invention, when data import, if merchandise news in database changes can synchronous vacations create field Value thus can dynamically change search completion word library in the case where not establishing redundant field, and only recommend in upper Rack-like state and inventory are not 0 commodity.
It in the step S1, can will be in commodity list by dataImport component when using solr as search engine Data all import in the collection documents (collect document) of solr.
It in the prior art, can be by goodsName when doing search completion prompting using suggest component component Field configuration is associative field data source, this will lead to using product names all in commodity list as data source, no matter i.e. commodity The state of rack-like up and down, inventory status, can all recommend without exception, this mode be clearly inaccuracy.For example, if commodity are in down When rack-like state or inventory are zero, when search, is not intended in the option of prompt comprising these commodity, such as when user is in search box When middle input " honor ", because " honor 10 ", by undercarriage, or input " ipho ", " iphoneX " inventory is 0, this two pieces commodity is all It should not carry out completion prompting.
So in importing process, creating word library data source, the word library data source includes in the present invention Inventory is not the product name of 0 and all commodity in restocking state in the commodity list.
Specifically, it is as follows to import the realization code configured for data:
The realization code of suggest component configuration is as follows:
<searchComponet name=" suggest " class=" solr.SuggestComponent ">
<lst name=" suggester ">
<str name="name">suggester</str>
<str name="lookupImpl">fuzzyLookupFactory</str>
<str name=dictionaryImpl>documentDictionaryFactory</str>
<str name="field">goodsNameSuggest</str>
<str name="suggestAnalyzerFieldType">text_suggest</str>
<str name="build0n0ptimize">true</str>
<str name="build0nCommit">true</str>
</lst>
In this way, can only match inventory in the commodity list is not 0 and owning in restocking state in subsequent searches The product name of commodity is 0 or the commodity in undercarriage state without recommending inventory.
It further, include commodity id, goods number, product name, commodity stocks and upper and lower rack-like state in the commodity list.
Commodity id therein refers to commodity serial number, and goods number refers to that the number of commodity, product name generally refer to demonstration Title, commodity stocks then refers to the current quantity in stock of commodity, and upper and lower rack-like state then refers to that commodity are in restocking state or undercarriage state.
The specific example of a commodity list is provided below:
GoodsId therein indicates that commodity id, goodsSn indicate that goods number, goodsName indicate product name, GoodsCount indicates commodity stocks, and goodsStatus indicates rack-like state up and down.
In the step S2, when user's search commercial articles, the keyword of user's input is obtained;Such as user is in search column When middle input keyword, corresponding keyword can be obtained.
Further, the step S3 is specifically included:
S31, the product name comprising the keyword is successively searched from the word library data source;
If S32, finding the product name comprising the keyword, it is shown.
In the step S31, the present invention is and traditional direct with trade name due to having created word library data source Referred to as data source is different, so and it is indirect keyword is searched in product name, but in newly-built word library data The product name comprising the keyword is searched in source.And inventory has been eliminated in word library data source and has been 0 or is in The product name of all commodity of undercarriage state.So it is 0 and in restocking state that the present invention, which only can search out inventory not, The product name of commodity.
As long as in this way, when merchandise news changes in database, synchronous vacations solr collects document after data import solr The value of middle respective field, so that it may which, in the case where not establishing redundant field, dynamic changes search completion word library.
The present invention also provides a kind of electronic equipment 10, as shown in Fig. 2, comprising:
Processor 110 is adapted for carrying out each instruction, and
Equipment 120 is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor 110:
All data in commodity list included in database are all imported and are collected in document;
In importing process, word library data source is created, the word library data source includes library in the commodity list It deposits not as 0 and the product name of all commodity in restocking state;
When user's search commercial articles, the keyword of user's input is obtained;
The keyword is matched with the word library data source, and obtains the product name of successful match, and It is shown.
The processor 110 can for general processor, digital signal processor (DSP), specific integrated circuit (ASIC), Field programmable gate array (FPGA), single-chip microcontroller, ARM (Acorn RISC Machine) or other programmable logic device are divided Any combination of vertical door or transistor logic, discrete hardware component or these components.In addition, processor can also be any Conventional processors, microprocessor or state machine.Processor also may be implemented as calculating the combination of equipment, for example, DSP and Wei Chu Manage combination, multi-microprocessor, one or more microprocessors combination DSP core, any other this configuration of device.
It stores equipment 120 and is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software Program, non-volatile computer executable program and module, such as the corresponding journey of Search Hints method in the embodiment of the present invention Sequence instruction.Processor is stored in non-volatile software program, instruction and unit in storage equipment by operation, thereby executing The various function application and data processing of Search Hints method, i.e. realization above method embodiment.
Further, all data in commodity list are imported by dataImport component and is collected in document.
It further, include commodity id, goods number, product name, commodity stocks and upper and lower rack-like state in the commodity list.
Further, described to match the keyword with the word library data source, and obtain successful match Product name, and the step of being shown specifically includes:
The product name comprising the keyword is successively searched from the word library data source;
If finding the product name comprising the keyword, it is shown.
In conclusion through the invention, when data import, if merchandise news in database changes can synchronous vacations it is new The value of field is built, thus can dynamically change search completion word library in the case where not establishing redundant field, and only push away Recommend be not in restocking state and inventory 0 commodity.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention Protect range.

Claims (8)

1. a kind of Search Hints method based on artificial intelligence, which is characterized in that comprising steps of
A, all data in commodity list included in database are all imported and is collected in document;
In importing process, create word library data source, the word library data source include the commodity list in inventory not For 0 and the product name of all commodity in restocking state;
B, when user's search commercial articles, the keyword of user's input is obtained;
C, the keyword is matched with the word library data source, and obtains the product name of successful match, gone forward side by side Row is shown.
2. the Search Hints method according to claim 1 based on artificial intelligence, which is characterized in that in the step A, lead to DataImport component is crossed to import all data in commodity list in collection document.
3. the Search Hints method according to claim 1 based on artificial intelligence, which is characterized in that wrapped in the commodity list Include commodity id, goods number, product name, commodity stocks and upper and lower rack-like state.
4. the Search Hints method according to claim 1 based on artificial intelligence, which is characterized in that the step C is specific Include:
C1, the product name comprising the keyword is successively searched from the word library data source;
If C2, finding the product name comprising the keyword, it is shown.
5. a kind of electronic equipment characterized by comprising
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
All data in commodity list included in database are all imported and are collected in document;
In importing process, create word library data source, the word library data source include the commodity list in inventory not For 0 and the product name of all commodity in restocking state;
When user's search commercial articles, the keyword of user's input is obtained;
The keyword is matched with the word library data source, and obtains the product name of successful match, and carry out It shows.
6. electronic equipment according to claim 5, which is characterized in that by dataImport component by the institute in commodity list There are data to import to collect in document.
7. electronic equipment according to claim 5, which is characterized in that in the commodity list include commodity id, goods number, Product name, commodity stocks and upper and lower rack-like state.
8. electronic equipment according to claim 5, which is characterized in that described by the keyword and the word library number It is matched according to source, and obtains the product name of successful match, and the step of being shown specifically includes:
The product name comprising the keyword is successively searched from the word library data source;
If finding the product name comprising the keyword, it is shown.
CN201810803868.3A 2018-07-20 2018-07-20 Search prompting method based on artificial intelligence and electronic equipment Active CN109255011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810803868.3A CN109255011B (en) 2018-07-20 2018-07-20 Search prompting method based on artificial intelligence and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810803868.3A CN109255011B (en) 2018-07-20 2018-07-20 Search prompting method based on artificial intelligence and electronic equipment

Publications (2)

Publication Number Publication Date
CN109255011A true CN109255011A (en) 2019-01-22
CN109255011B CN109255011B (en) 2021-07-02

Family

ID=65049086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810803868.3A Active CN109255011B (en) 2018-07-20 2018-07-20 Search prompting method based on artificial intelligence and electronic equipment

Country Status (1)

Country Link
CN (1) CN109255011B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254588A (en) * 2021-06-02 2021-08-13 竹间智能科技(上海)有限公司 Data searching method and system
CN114971816A (en) * 2022-06-30 2022-08-30 唯品会(广州)软件有限公司 Method and device for constructing commodity cue word index
CN115687756A (en) * 2022-10-26 2023-02-03 深圳市灵智数字科技有限公司 Search recommendation method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103229205A (en) * 2011-11-30 2013-07-31 乐天株式会社 Information processing device, information processing method, program for information processing device, and recording medium
JP5520857B2 (en) * 2011-02-25 2014-06-11 株式会社エヌ・ティ・ティ・データ Keyword assigning device, content providing system, keyword assigning method and program
CN103970761A (en) * 2013-01-28 2014-08-06 阿里巴巴集团控股有限公司 Commodity data searching method and device
CN106503233A (en) * 2016-11-03 2017-03-15 北京挖玖电子商务有限公司 Top search term commending system
CN106503258A (en) * 2016-11-18 2017-03-15 深圳市世强元件网络有限公司 A kind of precise search method in website station
CN107609192A (en) * 2017-10-12 2018-01-19 北京京东尚科信息技术有限公司 The supplement searching method and device of a kind of search engine
CN108227954A (en) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 A kind of method, apparatus and electronic equipment that search input associational word is provided

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5520857B2 (en) * 2011-02-25 2014-06-11 株式会社エヌ・ティ・ティ・データ Keyword assigning device, content providing system, keyword assigning method and program
CN103229205A (en) * 2011-11-30 2013-07-31 乐天株式会社 Information processing device, information processing method, program for information processing device, and recording medium
CN103970761A (en) * 2013-01-28 2014-08-06 阿里巴巴集团控股有限公司 Commodity data searching method and device
CN106503233A (en) * 2016-11-03 2017-03-15 北京挖玖电子商务有限公司 Top search term commending system
CN106503258A (en) * 2016-11-18 2017-03-15 深圳市世强元件网络有限公司 A kind of precise search method in website station
CN107609192A (en) * 2017-10-12 2018-01-19 北京京东尚科信息技术有限公司 The supplement searching method and device of a kind of search engine
CN108227954A (en) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 A kind of method, apparatus and electronic equipment that search input associational word is provided

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李欢: "个性化搜索引擎中关键词推荐专利技术综述", 《科技创新与应用》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254588A (en) * 2021-06-02 2021-08-13 竹间智能科技(上海)有限公司 Data searching method and system
CN113254588B (en) * 2021-06-02 2023-08-22 竹间智能科技(上海)有限公司 Data searching method and system
CN114971816A (en) * 2022-06-30 2022-08-30 唯品会(广州)软件有限公司 Method and device for constructing commodity cue word index
CN115687756A (en) * 2022-10-26 2023-02-03 深圳市灵智数字科技有限公司 Search recommendation method and device
CN115687756B (en) * 2022-10-26 2023-07-14 深圳市灵智数字科技有限公司 Search recommendation method and device

Also Published As

Publication number Publication date
CN109255011B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
Cohen et al. Learning to match and cluster large high-dimensional data sets for data integration
US8775442B2 (en) Semantic search using a single-source semantic model
US20170161375A1 (en) Clustering documents based on textual content
JP5616444B2 (en) Method and system for document indexing and data querying
Wang et al. Targeted disambiguation of ad-hoc, homogeneous sets of named entities
US20170109633A1 (en) Comment-comment and comment-document analysis of documents
Agarwal et al. Approximate incremental big-data harmonization
CN109255011A (en) A kind of Search Hints method and electronic equipment based on artificial intelligence
CN104239580B (en) General purpose single field based on value row mapping splits data pick-up method and apparatus
CN105631018A (en) Article feature extraction method based on topic model
CN113641707B (en) Knowledge graph disambiguation method, device, equipment and storage medium
CN107451204B (en) Data query method, device and equipment
CN107229714B (en) Full-text search engine based on distributed database
CN110717092A (en) Method, system, device and storage medium for matching objects for articles
JP6733366B2 (en) Task estimation device, task estimation method, and task estimation program
WO2014062192A1 (en) Performing a search based on entity-related criteria
Kunkel et al. Piejoin: towards parallel set containment joins
CN117971873A (en) Method and device for generating Structured Query Language (SQL) and electronic equipment
US11636082B2 (en) Table indexing and retrieval using intrinsic and extrinsic table similarity measures
CN111125499A (en) Data query method and device
CN106649750B (en) Searching method and device for multi-meaning term entry
US20160117350A1 (en) Column group selection method and apparatus for efficiently storing data in mixed olap/oltp workload environment
CN110737683A (en) Automatic partitioning method and device for extraction-based business intelligent analysis platforms
CN107391613B (en) Industrial safety subject multi-document automatic disambiguation method and device
US20220076143A1 (en) Automatically recommending an existing machine learning project as adaptable for use in a new machine learning project

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