Package sonia.scm.search
Interface Index<T>
- Type Parameters:
T
- type of indexed objects
@Beta
public interface Index<T>
Can be used to index objects for full text searches.
- Since:
- 2.21.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder api to delete all objects which match parts of their id.static interface
Deleter provides an api to delete object from index. -
Method Summary
Modifier and TypeMethodDescriptiondelete()
Delete provides an api to delete objects from the indexReturns details such as name and type of index.void
Store the given object in the index.
-
Method Details
-
getDetails
IndexDetails getDetails()Returns details such as name and type of index.- Since:
- 2.23.0
-
store
Store the given object in the index. All fields of the object annotated withIndexed
will be stored in the index.- Parameters:
id
- identifier of the object in the indexpermission
- Shiro permission string representing the required permission to see this object as a resultobject
- object to index- See Also:
-
Indexed
-
delete
Index.Deleter<T> delete()Delete provides an api to delete objects from the index- Returns:
- delete api
- Since:
- 2.23.0
-