view src/de/mpiwg/dwinter/fulltext/search/IFulltextSearch.java @ 2:2b29b0b6db16 default tip

Version mit integrierter Suche ?ber XML-Volltexte
author dwinter
date Wed, 26 Jan 2011 14:41:09 +0100
parents
children
line wrap: on
line source

package de.mpiwg.dwinter.fulltext.search;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionException;

import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.search.Collector;
import org.apache.lucene.search.Query;
import org.xml.sax.SAXException;

public interface IFulltextSearch {

	public abstract Collector search(Query query, String language)
			throws IOException;

	public abstract HashMap<String, Collector> search(Query query)
			throws IOException;

	public abstract HashMap<String, Collector> searchMD(String searchString,
			String mdString, ArrayList<String> languages)
			throws ParseException, IOException;

	public abstract HashMap<String, Collector> search(String searchString)
			throws IOException, ParseException;

	public abstract ArrayList<String> searchForMorph(String path, String word)
			throws ParseException, IOException, ParserConfigurationException,
			SAXException, XPathExpressionException;

}