Then the last article, "Search in the station", continued to say structure and framework level of content.
5, then consider the arrangement of query results
Before our site search completed the keyword "analysis-matching" process, now to match the results of the order. But can carry on the accurate correlation sort, is the search in the Full-text retrieval station the sign. Most of the site searches using SQL statements like queries are simply sorted by shelf time, by sales, by price, and so on.
Sort by relevance means that by analyzing the correlation between the query keyword and the text, the sorting rules for the search results within the station, consider the following factors (simple introduction, far more complex than this):
1 The search results file contains the number of query payment string keywords?
2 How often do keywords appear in documents?
3 How close are the key points? For example: adjacent to the same sentence or the same paragraph?
4 Where is the key word? If it appears in the title, it is usually more relevant than appearing in the product details.
5 query keywords appear in the popularity of the product
Be careful about sorting by relevance, users usually assume that the top few results are the best, and replace the keyword once the query is dissatisfied. Therefore: 1, should allow the user to choose other sorting methods; 2, the sorting algorithm is too bad as the default by the time of the shelf, according to sales and so on.
6, the sort of simple to say here, more said is nonsense, we continue to consider for a better experience, but also to consider what auxiliary functions?
The following are common:
1 spelling checker (more than a chicken-notebook)
2 Pre-input tips
3 Highlighting Query Keywords
4) Related inquiries recommended
7. Continue to consider how the query results are presented
1 What content will the search results be presented in?
2 Description of what is queried
3 Display the number of search results, so that users know how much content to see behind
4 search results too much? Narrowing, continuing the query in the results
5 shows the current arrangement
6 search results are abnormal or empty processing mode
7 When the input box loses focus before and after it is empty search processing mode?
Amazon is refreshing the current page; Jingdong is given the default search value, unable to empty the search; every guest is to search out all the goods. Su Ning is so:
A Web site appears this result, the default prompt statement to the search out.
Buy.qq.com Click is no response, the treatment of various ways more reasonable, you can judge.
8 In addition, print, send and store the results of the function; The search records are stored in cookies and can be seen next time;
Speaking here almost finished, the rest is a part of the frame layer and the performance level of things, here no longer continue to nonsense!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.