Home > Net >  The global search of the home page
The global search of the home page

Time:10-19

I made a in MVC vs2012 menu type of website, and then home page with a search box at the top and then how can I achieve global searching the web, such as I search for recipes, then the following page shows that I search for recipes; I search for the user is on the front page below shows I search for the user, who is a great god, please teach me, had better have the detailed operation steps and code, I am a small white one, asking our great god help

CodePudding user response:

How to feel like you say baidu words search,

CodePudding user response:

is the first two chekbox checkboxes recipe or user, and then according to the checkbox to judge search box,
Or to create a new datatable is to search the database menu list to join this new datatable, then joined the users search the database table to join this new datatable, then the gridview binding the datatable

CodePudding user response:

Not hot word search is just a little bit like

CodePudding user response:

reference 1/f, love life love minmin response:
how feel like baidu words search, you say

Not hot word search is just a little bit like

CodePudding user response:

refer to the second floor ManBOyyy response:
is the first two chekbox checkboxes recipe or user, and then according to the checkbox to judge search box,
Or to create a new datatable is to search the database menu list to join this new datatable, then joined the users search the database table to join this new datatable, then the gridview binding the datatable is

I thought of the two, but I want to search engine, but don't search engines to ask?

CodePudding user response:

If you want to ask how to do search engine that you are not the answer, I like how you ask taobao is the same, not one or two words can say,
If you want to be simple, multiple results box under the search box, a box corresponding categories such as menu, the user, and then you need what data in which table search, advantage is simple the downside is that you want to add a category will change a part of the code
If you want to be complicated, you can go to integrate ES, and index the data processing, different types of data to a category, according to the classification taxonomy, the benefit is that you just care about data processing code a is enough, the downside is that you want to run at least two systems (ES) and data processing service, but also to study something,
More than see you choose, search engine, I advise you still don't want to.

CodePudding user response:

Do you want to get a base table, what will you want to search recipes, member, stores and other base table and through the base table query, base table identifier type, the search results page and jump through type control display

CodePudding user response:

Total station search, by redundant table, put all can search fields in the same table, and marked the source table and field names, after the redundant table to retrieve, according to the source table and field return data and display, but this method needs a trigger or ServiceBroker do support, otherwise, you can only all kinds of the union
  • Related