upgrade to tika 1.1
This commit is contained in:
parent
4292512f8e
commit
c1df26e4e9
28
README.md
28
README.md
|
@ -3,21 +3,21 @@ Mapper Attachments Type for ElasticSearch
|
|||
|
||||
The mapper attachments plugin adds the `attachment` type to ElasticSearch using Tika.
|
||||
|
||||
In order to install the plugin, simply run: `bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.2.0`.
|
||||
In order to install the plugin, simply run: `bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.3.0`.
|
||||
|
||||
-----------------------------------------------
|
||||
| Attachment Mapper Plugin | ElasticSearch |
|
||||
-----------------------------------------------
|
||||
| master | 0.19 -> master |
|
||||
-----------------------------------------------
|
||||
| 1.3.0 | 0.19 -> master |
|
||||
-----------------------------------------------
|
||||
| 1.2.0 | 0.19 -> master |
|
||||
-----------------------------------------------
|
||||
| 1.1.0 | 0.19 -> master |
|
||||
-----------------------------------------------
|
||||
| 1.0.0 | 0.18 |
|
||||
-----------------------------------------------
|
||||
------------------------------------------------------
|
||||
| Attachment Mapper Plugin | ElasticSearch | Tika |
|
||||
------------------------------------------------------
|
||||
| master | 0.19 -> master | 1.1 |
|
||||
------------------------------------------------------
|
||||
| 1.3.0 | 0.19 -> master | 1.0 |
|
||||
------------------------------------------------------
|
||||
| 1.2.0 | 0.19 -> master | 1.0 |
|
||||
------------------------------------------------------
|
||||
| 1.1.0 | 0.19 -> master | |
|
||||
------------------------------------------------------
|
||||
| 1.0.0 | 0.18 | |
|
||||
------------------------------------------------------
|
||||
|
||||
|
||||
The `attachment` type allows to index different "attachment" type field (encoded as `base64`), for example, microsoft office formats, open document formats, ePub, HTML, and so on (full list can be found [here](http://lucene.apache.org/tika/0.10/formats.html)).
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -64,7 +64,7 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.tika</groupId>
|
||||
<artifactId>tika-app</artifactId>
|
||||
<version>1.0</version>
|
||||
<version>1.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ import java.io.InputStream;
|
|||
/**
|
||||
* Extends the Tika class, so as to provide a way for setting the maximumStringLength on a per parse document basis.
|
||||
*/
|
||||
// TODO: https://issues.apache.org/jira/browse/TIKA-870, once Tika 1.2 is out, we don't need this class anymore
|
||||
public class TikaExtended extends Tika {
|
||||
|
||||
public String parseToString(InputStream stream, Metadata metadata, int maxStringLength)
|
||||
|
|
Loading…
Reference in New Issue