public class SearchIndex extends Object
Modifier and Type | Field and Description |
---|---|
static int |
NBSP |
Constructor and Description |
---|
SearchIndex() |
SearchIndex(Book book) |
Modifier and Type | Method and Description |
---|---|
static String |
cleanText(String text)
Turns html encoded text into plain text.
|
SearchResults |
doSearch(String searchTerm) |
protected static List<SearchResult> |
doSearch(String searchTerm,
String content,
Resource resource) |
Book |
getBook() |
static String |
getSearchContent(Reader content) |
static String |
getSearchContent(Resource resource) |
void |
initBook(Book book) |
static String |
unicodeTrim(String text) |
public SearchIndex()
public SearchIndex(Book book)
public Book getBook()
public void initBook(Book book)
public SearchResults doSearch(String searchTerm)
public static String cleanText(String text)
text
- protected static List<SearchResult> doSearch(String searchTerm, String content, Resource resource)
Copyright © 2009–2017. All rights reserved.