1821349743@qq.com
2023-02-20 d36d570014c8dc3b1b8c0608512053769c4aaae8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.product.lucene.service.idel;
 
import com.product.lucene.entity.Product;
import com.product.lucene.entity.PageQuery;
 
import java.io.IOException;
import java.text.ParseException;
import java.util.List;
 
/**
 * @ClassName ILuceneService
 * @Description TODO
 * @Author yb
 * @Date 2019/11/12/01218:00
 * @Version 1.0
 **/
public interface ILuceneService {
    /**
     * 增加索引
     * @param list
     * @throws IOException
     */
    public void createProductIndex(List<Product> list) throws IOException;
 
    /**
     * 查询
     * @param pageQuery
     * @return
     * @throws Exception
     * @throws ParseException
     */
    public PageQuery searchProduct(PageQuery pageQuery) throws Exception, ParseException;
 
    /**
     *删除
     * @param id
     * @throws IOException
     */
    public void deleteProductIndexById(String id) throws IOException;
}