When I was doing my search design lately, I found two easy to tangle questions and talk about some of my own analysis here.
Question 1: What keyword is submitted?
In this example, the search suggestion "fashionable oblique zipper" is highlighted, at this time click on the "search", the keyword submitted is the input box "s" or "fashion oblique zipper"? The answer is "fashion oblique zipper."
Look at Baidu, when the search suggestions in the "sina microblogging" highlight (mouse over), click on "Baidu," submit the keyword is the input box "s" instead of highlighting "sina Weibo. "
Which way is better? I personally think so:
For search components, the subject should be the search box and the search button, and the search suggestion is just an additional tool that you can not even do.
So regardless of the status of the search suggestion, the Search button (or "Enter" key) should be submitted in the search box so it will not be ambiguous.
Back to the example of Vanke, if you select the search suggestions (by clicking the arrow keys, mouse over, mouse click, etc.), click "Search" or press "Enter" to submit the search suggestions, the search box The content should be replaced immediately; otherwise the input box does not change.
& http: //www.aliyun.com/zixun/aggregation/37954.html "> nbsp;
Question 2: Do you want to highlight the first search suggestions?
Read a lot of related products, such as Google, Taobao, Baidu, where the customer, their search are not highlighted the first search suggestions.
But there are also a few search products, is the first selected by the first search suggestions. This will be any problem?
Similar to the first question, there is also a tendency to disagree here: is the first search suggestion that the submitted keyword is in the input box or is highlighted?
If you are submitting a search suggestion, then in accordance with the aforementioned method, the input box to replace the contents of the first search suggestions will not work, after all, this is not the user selected, then the ambiguity is difficult to solve; the other , If the user manually select other search suggestions, the contents of the search box is not suitable to be replaced by the corresponding search suggestions, because this will inconsistent with the initial state (initial search box content and the default selected Search suggestions are likely to be inconsistent).
If it is not a search suggestion, what is the point of highlighting here?
to sum up:
If the search operation is triggered after the submission of the search suggestions is highlighted, the search box should be replaced by the content of the corresponding content
Do not highlight the first item in search suggestions
Source Address: http://blog.sina.com.cn/s......0100y0xd.html