|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Utility service to enable searching through PDF files and getting surrounding context of matches.
| Method Summary | |
void |
addToIndex(java.lang.String path,
java.lang.String user)
Adds a PDF file to the Lucene search index. |
java.util.List |
getSearchResultList(java.lang.String query)
Searches the complete Lucene index for results matching the query. |
java.util.List |
getSearchResultList(java.lang.String query,
int contextLength)
Searches the complete Lucene index for results matching the query. |
void |
removeFromIndex(java.lang.String user)
Removes an indexed PDF file from search index. |
void |
setHighlightTags(java.lang.String startTag,
java.lang.String endTag)
Removes an indexed PDF file from search index. |
| Method Detail |
public void addToIndex(java.lang.String path,
java.lang.String user)
throws PdfException
path - Absolute path to the PDF fileuser - the user who is indexing.
PdfException - When Lucene can not index the file
public void removeFromIndex(java.lang.String user)
throws PdfException
user - Name of user to remove
PdfException - When Lucene can not delete the file from index
public void setHighlightTags(java.lang.String startTag,
java.lang.String endTag)
startTag - Tag to start the highlighted term withendTag - Tag to end the highlighted term with
public java.util.List getSearchResultList(java.lang.String query)
throws PdfException
query - A logical search query. Accepts wildcards, ranges and
fuzzy search.
PdfException - When Lucene can not search the index
public java.util.List getSearchResultList(java.lang.String query,
int contextLength)
throws PdfException
query - A logical search query. Accepts wildcards, ranges and fuzzy
search.contextLength - The length of surrounding context to return
PdfException - When Lucene can not search the index
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||