====== getRelatedCompany(company_name,[required_page]) ======
===== Description =====
Return a list of company whose name is related with company_name
===== Parameters =====
^ Parameter ^ Necessity ^ Type ^ Description ^
| company_name | required | string | company's name as keyword |
| required_page | optional | int | required page, 1 as default, every page contains 10 result |
===== Output =====
^ Parameter ^ Type ^ Description ^
| company list | list | a list of company, contains name, cid |
| total page | int | the total page of search result |
===== Implementation =====
- Create index of company, using 2 fields 【c_name】: Company's name. 【c_per】: Company's senior managers
- Use the Index, search the keyword in MultiFieldQueryParser {c_name,c_per}
- Return the list of cid.
Tips: Traditional Chinese will be converted to Simplified Chinese at first.
===== Examples =====
Example in Java:
keyword: 深圳发展银行
{{:projs:clans:docs:alex:深圳发展银行.png?500|深圳发展银行}}
keyword: 深圳發展銀行
{{:projs:clans:docs:alex:深圳發展銀行.png?500|深圳發展銀行}}
----
Example in Page:
keyword: 肖遂宁
{{:projs:clans:docs:alex:肖遂宁.png?500|肖遂宁}}
===== 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.