mirror of https://github.com/apache/lucene.git
SOLR-7174: DIH should reset TikaEntityProcessor so that it is capable of re-use
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663857 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b29aef7954
commit
c1c593a0ad
|
@ -239,6 +239,9 @@ Other Changes
|
||||||
|
|
||||||
* SOLR-6275: Improve accuracy of QTime reporting (Ramkumar Aiyengar)
|
* SOLR-6275: Improve accuracy of QTime reporting (Ramkumar Aiyengar)
|
||||||
|
|
||||||
|
* SOLR-7174: DIH should reset TikaEntityProcessor so that it is capable
|
||||||
|
of re-use (Alexandre Rafalovitch , Gary Taylor via Noble Paul)
|
||||||
|
|
||||||
================== 5.0.0 ==================
|
================== 5.0.0 ==================
|
||||||
|
|
||||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
||||||
|
|
|
@ -67,6 +67,12 @@ public class TikaEntityProcessor extends EntityProcessorBase {
|
||||||
static final String AUTO_PARSER = "org.apache.tika.parser.AutoDetectParser";
|
static final String AUTO_PARSER = "org.apache.tika.parser.AutoDetectParser";
|
||||||
private String htmlMapper;
|
private String htmlMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(Context context) {
|
||||||
|
super.init(context);
|
||||||
|
done = false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void firstInit(Context context) {
|
protected void firstInit(Context context) {
|
||||||
super.firstInit(context);
|
super.firstInit(context);
|
||||||
|
@ -102,7 +108,6 @@ public class TikaEntityProcessor extends EntityProcessorBase {
|
||||||
if(parser == null) {
|
if(parser == null) {
|
||||||
parser = AUTO_PARSER;
|
parser = AUTO_PARSER;
|
||||||
}
|
}
|
||||||
done = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue