public interface IndexService
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createIndex(IndexContent indexContent)
create index by idName and idValue (it will delete existed index,so you can think of this method as insertOrUpdate())
|
void |
deleteAll()
delete all indexs
|
void |
deleteIndex(String entityName,
String idName,
String idValue)
delete index by idName and idValue
|
List<org.apache.lucene.document.Document> |
searchIndexs(String name,
String value) |
List<org.apache.lucene.document.Document> |
searchIndexs(String entityName,
String name,
String value) |
List<org.apache.lucene.document.Document> |
searchIndexs(String entityName,
String name,
String value,
int topn)
search Documents by field name and its value
|
void createIndex(IndexContent indexContent)
void deleteIndex(String entityName, String idName, String idValue)
void deleteAll()
List<org.apache.lucene.document.Document> searchIndexs(String entityName, String name, String value, int topn)
Copyright © 2022. All rights reserved.