mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Fixed a class casting error
This commit is contained in:
parent
f2eadf0389
commit
e2db2c2e44
@ -284,7 +284,11 @@ class Ingester {
|
|||||||
//Make a SolrInputDocument out of the field map
|
//Make a SolrInputDocument out of the field map
|
||||||
SolrInputDocument updateDoc = new SolrInputDocument();
|
SolrInputDocument updateDoc = new SolrInputDocument();
|
||||||
for (String key : fields.keySet()) {
|
for (String key : fields.keySet()) {
|
||||||
updateDoc.addField(key, Chunker.sanitize((String)fields.get(key)).toString());
|
if (fields.get(key).getClass() == String.class) {
|
||||||
|
updateDoc.addField(key, Chunker.sanitize((String)fields.get(key)).toString());
|
||||||
|
} else {
|
||||||
|
updateDoc.addField(key, fields.get(key));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -62,8 +62,12 @@ class LanguageSpecificContentIndexingHelper {
|
|||||||
//Make a SolrInputDocument out of the field map
|
//Make a SolrInputDocument out of the field map
|
||||||
SolrInputDocument updateDoc = new SolrInputDocument();
|
SolrInputDocument updateDoc = new SolrInputDocument();
|
||||||
for (String key : fields.keySet()) {
|
for (String key : fields.keySet()) {
|
||||||
updateDoc.addField(key, Chunker.sanitize((String)fields.get(key)).toString());
|
if (fields.get(key).getClass() == String.class) {
|
||||||
}
|
updateDoc.addField(key, Chunker.sanitize((String)fields.get(key)).toString());
|
||||||
|
} else {
|
||||||
|
updateDoc.addField(key, fields.get(key));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
updateDoc.setField(Server.Schema.ID.toString(), Chunker.sanitize(MiniChunkHelper.getChunkIdString(baseChunkID)).toString());
|
updateDoc.setField(Server.Schema.ID.toString(), Chunker.sanitize(MiniChunkHelper.getChunkIdString(baseChunkID)).toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user