ftsi
1.0.0
Esta é uma interface baseada no Apache Lucene para facilitar o código e fácil de pesquisar.
public class Entity {
@ Indexable ( isKey = true )
private String id ;
private String title ;
private String Content ;
// getters and setters
// ...
}
Entity entity = new Entity ();
entity . setId ( "<id>" );
entity . setTitle ( "Hello World" );
entity . setContent ( "This is the content." );
IndexService indexService = new IndexService ( "<path for index persistence>" );
indexService . createIndex ( entityInstance );
indexService . deleteIndex ( Entity . class , "<id>" );
SearchResult < Entity > matched = indexService . search ( "world" , Entity . class , 1 , 10 );Exemplo de projeto: https://github.com/bnndynet/web-framework-for-java
Mais versões, visite http://mvnrepository.com/artifact/net.bndy
< dependency >
< groupId >net.bndy</ groupId >
< artifactId >ftsi</ artifactId >
< version >1.0</ version >
</ dependency >