001package org.biopax.paxtools.search; 002 003 004import org.biopax.paxtools.model.BioPAXElement; 005 006public interface Searcher { 007 /** 008 * Full-text search for BioPAX elements. 009 * 010 * @param query String (keywords or Lucene query string) 011 * @param page hits page number (when the number of hits exceeds a threshold) 012 * @param filterByType - class filter 013 * @param datasources - filter by datasource 014 * @param organisms - filter by organism 015 * @return a bean that contains the list of BioPAX objects (hits) and annotations. 016 */ 017 SearchResult search(String query, int page, 018 Class<? extends BioPAXElement> filterByType, String[] datasources, String[] organisms); 019 020}