|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bejug.javacareers.jobs.service.LucenePdfServiceImpl
Implementation of LucenePdfService.
| Constructor Summary | |
LucenePdfServiceImpl()
Constructor. |
|
| Method Summary | |
void |
addToIndex(java.lang.String filepath,
java.lang.String user)
Adds a PDF file to the Lucene search index. Can take a few seconds to complete. |
ContextSearcher |
getContextSearcher()
|
java.lang.String |
getLuceneIndexPath()
|
PdfIndexer |
getPdfIndexer()
|
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 file)
Removes an indexed PDF file from search index. |
void |
setContextSearcher(ContextSearcher contextSearcher)
|
void |
setHighlightTags(java.lang.String startTag,
java.lang.String endTag)
Removes an indexed PDF file from search index. |
void |
setLuceneIndexPath(java.lang.String luceneIndexPath)
|
void |
setPdfIndexer(PdfIndexer pdfIndexer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LucenePdfServiceImpl()
| Method Detail |
public void addToIndex(java.lang.String filepath,
java.lang.String user)
throws PdfException
addToIndex in interface LucenePdfServicefilepath - 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 file)
throws PdfException
removeFromIndex in interface LucenePdfServicefile - 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)
setHighlightTags in interface LucenePdfServicestartTag - 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
getSearchResultList in interface LucenePdfServicequery - 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
getSearchResultList in interface LucenePdfServicequery - 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
public PdfIndexer getPdfIndexer()
throws PdfException
PdfException - if an error.public void setPdfIndexer(PdfIndexer pdfIndexer)
pdfIndexer - PdfIndexer.public ContextSearcher getContextSearcher()
public void setContextSearcher(ContextSearcher contextSearcher)
contextSearcher - ContextSearcher.public java.lang.String getLuceneIndexPath()
public void setLuceneIndexPath(java.lang.String luceneIndexPath)
luceneIndexPath - String
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||