Comparison shopping search of similar design and implementation of key words - goods than one hundred (

sponsored links
This period has been busy comparison shopping search goods than one hundred ( SEO work, after the restructuring website, keyword placement and outside the chain of construction, Baidu has been stable for the site included, webmaster tool to query: "Baidu in last days included a website ( 1010 pages, "contains the total number: 72400. (2011-09-20)

Search applications in the realization of shopping time, often encounter similar Taobao search results page, "you are not looking for:", etao search results page under the search box "hot search" and the like demand, that is the key to the current search words, similar to the query keywords.

Seo and website from the existing structure into account, a separate page with a popular show keywords, URL design, such as:

And Achieve results similar words such as:

Comparison shopping search of similar design and implementation of key words - goods than one hundred (

That under the implementation details, you first need a keyword database, the user can search for keywords statistics, you can also collect mall popular keywords. Wrote a simple program, statistics Taobao, Taobao Mall popular keywords more than 100,000 as a keyword library.

Similar to the query, I must mention the TF-IDF. TF-IDF (term frequency-inverse document frequency) is used for information retrieval and information exploration of the common weighting techniques. The main idea is: if a word or phrase in an article in the frequency of TF high and rarely in other articles, is that the word or phrase has a good ability to distinguish between the categories, suitable for classification. TFIDF fact: TF * IDF, TF word frequency (Term Frequency), IDF anti-document frequency (Inverse Document Frequency).

Lucene also provides a similar comparison of the interface, MoreLikeThis interface. Do not talk nonsense, and directly on the code.

Popular Keywords Recommended code:

public List<Hotkey> searchMoreLikeThis(String wd, int top) throws IOException, Exception { MoreLikeThisQuery query = new MoreLikeThisQuery(wd, new String[] { "wd" }, analyzerUtil.ikAnalyzer); TopDocs topDocs = getSearcher().search(query, top); int totalHits = topDocs.totalHits; ScoreDoc scoreDocs[] = topDocs.scoreDocs; top = top < totalHits ? top : totalHits; List<Hotkey> list = new ArrayList<Hotkey>(); for (int i = 0; i < top; i++) { Document doc = getSearcher().doc(scoreDocs[i].doc); Hotkey hotkey = doc2Object(doc); int freq = taobaoItemSearcher.docFreq(hotkey.getWd()); //... Here temporarily invisible ^_^ list.add(doc2Object(doc)); } return list; }

Interested friends look at the site, mention recommendations. Technology, Web site operators, SEO and other interested friends, a lot of exchanges.


You can also add QQ: 909546261, doubt phase analysis.
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Comparison shopping search of similar design and implementation of key words - goods than one hundred (

  • On the maintenance of software system

    The so-called bottom-up, is to safeguard the needs of clients as a starting point, from the start code to the end design. For example in the maintenance process, the customer service personnel have made a similar demand: on-line in order to enhance c ...

  • spring2.5.6 + struts2.1.6 + jpa + annotation fool tutorial

    Chinese cow is no shortage of IT people, and none of me are so selfless people First installed MyEclipse A bar MyEclipse-7.0-win32.exe Of copyright protection, key their baidu bar new a web project jdk1.5 or above (struts2.1 after the above seems to only

  • There is likely to change through their own efforts to develop enterprise confusion? What are the conditions required?

    A few days ago, Posts to see such a "job for a couple of days, resigned" Landlord said that he has entered a development confusion, technological obsolescence of the company. Resigned two days later. Keep ...

  • Hearsay: shrimp closure grasp, the team faced

    According to industry sources, the famous Chinese Rss online readers grasp even the closure of shrimp nets, the team faced Have parted company , but able to visit the website. Shrimp founder arrested 1) Xu Yirong : Net co-founder of grasping shrimp. ...

  • Hibernate Search, Lucene

    First of all, we need to be added to the configuration in the persistence.xml as follows: <! - Use a file system based index -> <property name="" value="

  • The use of link or @ import introduce the difference between css file

    Taobao recent study at the website and found that the introduction of css page one of many ways to use the @ import way: <style type="text/css" media="screen"> @import url("");

  • How to type design

    First, object-oriented design principles - the principles of category design At the object-oriented design, how to design a very small design changes can respond to changes in demand, This is of great concern to designers. For this reason, many pione ...

  • A classic english Rails AJAX sorting and paging sample

    This is a classic (in my opinion ^ _ ^) is used to display, ajax call to sort, search and paging example. This sample is characterized by the process of writing put considerable wordily, designed to kill Mother. So very good understanding, very primary, v

  • AJAX projects at IE browser encountered "Internet Explorer can not open the site operation has been terminated" error solution

    Key words: IE, JavaScript, AJAX, Error: "Internet Explorer can not open the site, has ceased to operate" Wrong reasons: the page have not yet ready when the call htmlObject the appendChild or innerHTML operation. Solution: At appendChild or ...

  • ROR troubled long Axis2 web service calls to be initially resolved

    Problem: ROR how Axis2 call the web service Currently experiencing this problem, Google and Baidu found at numerous times, both at home and abroad have seen virtually no valuable information, the only help is a call ROR about. Net Services article (http:

blog comments powered by Disqus
Recent Entries
Tag Cloud
Random Entries