edu.columbia.cs.cg.prdualrank.searchengine
Interface SearchEngine

All Known Implementing Classes:
BingSearchEngine, WebBasedSearchEngine

public interface SearchEngine

This class is used for our implementation of: "Searching Patterns for Relation Extraction over the Web: Rediscovering the Pattern-Relation Duality" . Y. Fang and K. C.-C. Chang. In WSDM, pages 825-834, 2011. For further information, WSDM 2011 Conference Website .

Description

This interface gives the expected behavior of a Search Engine.

The search engine is used in the Algorithm PatternSearch(To,S,E) in Figure 9 on Section 5 of the mentioned paper.

Since:
2011-10-07
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes
See Also:
WSDM 2011 Conference Website

Method Summary
 java.util.List<Document> search(java.lang.String query, int k_seed)
          Issues query into the search engine and retrieves either k_seed or all the documents in the result set, whichever number is the lower.
 

Method Detail

search

java.util.List<Document> search(java.lang.String query,
                                int k_seed)
Issues query into the search engine and retrieves either k_seed or all the documents in the result set, whichever number is the lower.

Parameters:
query - the query to be issued
k_seed - the number of documents to be retrieved if lower than the total number of hits. All the results are retrieved otherwise.
Returns:
the list of documents contained in the result set.