This is an old revision of the document!
Table of Contents
getRelatedPeople(people_name,[required_page])
Description
Return a list of person whose name is related with people_name
Parameters
Parameter | Necessity | Type | Description |
---|---|---|---|
people_name | required | string | people's name as keyword |
required_page | optional | int | required page, 1 as default, every page contains 10 result |
Output
Parameter | Type | Description |
---|---|---|
people list | list | a list of people, contains name, pid, current company, current position |
total page | int | the total page of search result |
Implementation
- Create index of people, 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}
- Return the list of pid.
Related Work
- 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.