package it.cnr.isti.driver.web;

import it.cnr.isti.driver.utils.ODL_EPR;
import it.cnr.isti.driver.utils.ResultSet;

public interface SearchEngine {

	/**
	 * @param query
	 * @param epr
	 * @return
	 */
	ResultSet resultSetForQueryOrEpr(String query, ODL_EPR epr);

	/**
	 * The search engine may need to prepare the query (e.g. execute it in background)
	 * Call this method as soon as the query source is known and the probability that the
	 * query will be actually needed is high.
	 * 
	 * @param cqlQuery
	 */
	void prepareQuery(String cqlQuery);

}
