Differences
This shows you the differences between two versions of the page.
projs:clans:docs:getrelatedcompany [2014/01/28 02:15] crlwinner |
projs:clans:docs:getrelatedcompany [2014/02/10 16:14] (current) crlwinner |
||
---|---|---|---|
Line 14: | Line 14: | ||
===== Implementation ===== | ===== Implementation ===== | ||
- | - Create index of people, using 2 fields 【pname】: Person's name. 【pcom】: Person's current company and companies he worked in | + | - 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 {pname|pcom} | + | - Use the Index, search the keyword in MultiFieldQueryParser {c_name,c_per} |
- | - Return the list of pid. | + | - Return the list of cid. |
+ | |||
+ | 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. |