| Lucene Field Name | Description |
|---|---|
| path | File system path if loaded from a file |
| url | URL to PDF document |
| contents | Entire contents of PDF document, indexed but not stored |
| summary | First 500 characters of content |
| modified | The modified date/time according to the url or path |
| uid | A unique identifier for the Lucene document. |
| CreationDate | From PDF meta-data if available |
| Creator | From PDF meta-data if available |
| Keywords | From PDF meta-data if available |
| ModificationDate | From PDF meta-data if available |
| Producer | From PDF meta-data if available |
| Subject | From PDF meta-data if available |
| Trapped | From PDF meta-data if available |
| Modifier and Type | Field and Description |
|---|---|
| private static final org. | |
| private static final char | |
| private PDFTextStripper | |
| public static final org. | TYPE_STORED_NOT_INDEXED
not Indexed, tokenized, stored. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addContent(org.
The document to add the contents to. document,The source to get the content from. source, String The location of the document, used just for debug messages. documentLocation)This will add the contents to the lucene document. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private static void | |
| private void | |
| public org. | Returns: The converted lucene document.A reference to a PDF document. file)This will take a reference to a PDF document and create a lucene document. |
| public org. | Returns: The PDF converted to a lucene document.A url to a PDF document. url)Convert the document from a PDF to a lucene document. |
| public static String | |
| public static String | |
| public static org. | Returns: The lucene document.The file to get the document for. file)This will get a lucene document from a PDF file. |
| public static org. | Returns: The lucene document.The file to get the document for. url)This will get a lucene document from a PDF file. |
| public void | setTextStripper(PDFTextStripper
The new pdf text stripper. aStripper)Set the text stripper that will be used during extraction. |
| private static String |
| DATE_TIME_RES | back to summary |
|---|---|
| private static final org. | |
| FILE_SEPARATOR | back to summary |
|---|---|
| private static final char FILE_SEPARATOR | |
| stripper | back to summary |
|---|---|
| private PDFTextStripper stripper | |
| TYPE_STORED_NOT_INDEXED | back to summary |
|---|---|
| public static final org. not Indexed, tokenized, stored. | |
| LucenePDFDocument | back to summary |
|---|---|
| public LucenePDFDocument() Constructor. | |
| addContent | back to summary |
|---|---|
| private void addContent(org. This will add the contents to the lucene document.
| |
| addKeywordField | back to summary |
|---|---|
| private void addKeywordField(org. | |
| addTextField | back to summary |
|---|---|
| private void addTextField(org. | |
| addTextField | back to summary |
|---|---|
| private void addTextField(org. | |
| addTextField | back to summary |
|---|---|
| private void addTextField(org. | |
| addTextField | back to summary |
|---|---|
| private void addTextField(org. | |
| addUnindexedField | back to summary |
|---|---|
| private static void addUnindexedField(org. | |
| addUnstoredKeywordField | back to summary |
|---|---|
| private void addUnstoredKeywordField(org. | |
| convertDocument | back to summary |
|---|---|
| public org. This will take a reference to a PDF document and create a lucene document.
| |
| convertDocument | back to summary |
|---|---|
| public org. Convert the document from a PDF to a lucene document.
| |
| createUID | back to summary |
|---|---|
| public static String createUID(URL url, long time) Create an UID for the given file using the given time. | |
| createUID | back to summary |
|---|---|
| public static String createUID(File file) Create an UID for the given file. | |
| getDocument | back to summary |
|---|---|
| public static org. This will get a lucene document from a PDF file.
| |
| getDocument | back to summary |
|---|---|
| public static org. This will get a lucene document from a PDF file.
| |
| setTextStripper | back to summary |
|---|---|
| public void setTextStripper(PDFTextStripper aStripper) Set the text stripper that will be used during extraction.
| |
| timeToString | back to summary |
|---|---|
| private static String timeToString(long time) | |