package com.platform.modules.live.service;

import com.platform.modules.live.entity.LiveSceneEntity;
import org.apache.lucene.document.Document;
import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * Created by TROY on 2019/2/20.
 */
public interface LuceneService {

	List<Document> search(String type, Map<String, String> params, int page, int size, boolean reverse);

	void createIndex(Object object, boolean create) throws IOException;

	void deleteIndex(String type, String name, String value) throws IOException;
}
