spring boot starter ftsi
1.0.0
Spring Boot Starter -Projekt für Volltext -Suchschnittstelle (https://github.com/bndynet/ftsi)
Maven
Besuchen Sie http://mvnrepository.com/artifact/net.bndy/spring-bootstarter-ftsi, um weitere Versionen zu erhalten.
< dependency >
< groupId >net.bndy</ groupId >
< artifactId >spring-boot-starter-ftsi</ artifactId >
< version >1.0-pre</ version >
</ dependency >Datei: application.yml
spring :
ftsi :
analyzer : org.apache.lucene.analysis.standard.StandardAnalyzer # define your analyzer, StandardAnalyzer is the default analyzer if empty
data-path : ./ft-folder # the path to store full text index files
highlight-pre-tag : <b class="highlight"> # the beginning part of html tag for highlight matched text
highlight-post-tag : </b> # the ending part of html tag for highlight matched text
highlight-fragment-size : 300 # the length of returned text which contains highlight contentJava -Code
@ SpringBootApplication
public class Application {
@ Autowired
private IndexService indexService ;
public static void main ( String [] args ) {
SpringApplication . run ( Application . class , args );
// start to use indexService...
}
} Hinweis: Klicken Sie hier, um IndexService zu beginnen.