public class FullTextSearch
extends java.lang.Object
Constructor and Description |
---|
FullTextSearch() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Article> |
search(java.lang.String term)
Search a term in the index and return the associated list of articles which have this term.
|
org.elasticlunr.Index |
setup(java.net.URL json,
ArticlesModel model)
Setup the full text search Elastic index.
|
public org.elasticlunr.Index setup(java.net.URL json, ArticlesModel model)
json
- the json filemodel
- the articles modelpublic java.util.List<Article> search(java.lang.String term)
term
- the termCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence