Differences

This shows you the differences between two versions of the page.

projs:clans:docs:getrelatedpeople [2014/01/28 02:17]
crlwinner
projs:clans:docs:getrelatedpeople [2014/02/10 16:13] (current)
crlwinner
Line 1: Line 1:
-====== getRelatedPeople(people_name,[required_page]) ======+====== getRelatedPeople(person_name,[required_page]) ======
===== Description ===== ===== Description =====
-Return a list of people whose name is related with people_name+Return a list of person whose name is related with person_name 
===== Parameters ===== ===== Parameters =====
^  Parameter  ^  Necessity  ^  Type  ^  Description  ^ ^  Parameter  ^  Necessity  ^  Type  ^  Description  ^
-|  people_name |  required  |  string  |  people's name as keyword  | +|  person_name |  required  |  string  |  person's name as keyword  | 
-|  required_page  |  optional  |  int  |  required page, 1 as default, every page contains 10 result |+|  required_page  |  optional  |  int  |  required page, 1 as default, every page contains 10 results |
===== Output ===== ===== Output =====
^  Parameter  ^  Type  ^  Description  ^ ^  Parameter  ^  Type  ^  Description  ^
-|  people list  |  list  |  a list of people, contains name, pid, current company, current position  |+|  person list  |  list  |  a list of person, contains name, pid, current company, current position  |
|  total page  |  int  |  the total page of search result  | |  total page  |  int  |  the total page of search result  |
===== Implementation ===== ===== Implementation =====
-  - Create index of people, using 2 fields 【p_name】: Person's name.       【p_com】: Person's current company and companies he worked in+  - Create index of person, using 2 fields 【p_name】: Person's name.       【p_com】: Person's current company and companies he worked in
  - Use the Index,  search the keyword in MultiFieldQueryParser  {p_name,p_com}   - Use the Index,  search the keyword in MultiFieldQueryParser  {p_name,p_com}
  - Return the list of pid.   - Return the list of pid.
 +
 +Tips: Traditional Chinese will be converted to Simplified Chinese at first.
 +===== Examples =====
 +
 +<fs large>Example in Java:</fs>
 +
 +<fs medium>keyword: 深圳发展银行</fs>
 +
 +{{:projs:clans:docs:alex:深圳发展银行.png?500|深圳发展银行}}
 +
 +<fs medium>keyword: 深圳發展銀行</fs>
 +
 + {{:projs:clans:docs:alex:深圳發展銀行.png?500|深圳發展銀行}}
 +
 +----
 +
 +
 +<fs large>Example in Page:</fs>
 +
 +<fs medium>keyword: 肖遂宁</fs>
 +
 +{{:projs:clans:docs:alex:肖遂宁.png?500|肖遂宁}}
===== Related Work ===== ===== Related Work =====
  - [[http://lucene.apache.org/|Lucene]], Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.   - [[http://lucene.apache.org/|Lucene]], Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
 
projs/clans/docs/getrelatedpeople.1390846666.txt.gz · Last modified: 2014/01/28 02:17 by crlwinner     Back to top