mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 08:56:15 +00:00
Additional dead code removal for keywordsearch.Ingester
This commit is contained in:
parent
23cce2f89c
commit
965de0ae19
@ -25,12 +25,8 @@ import java.io.Reader;
|
|||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
|
||||||
import java.util.concurrent.ExecutorService;
|
|
||||||
import java.util.concurrent.Executors;
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import org.apache.solr.client.solrj.SolrServerException;
|
import org.apache.solr.client.solrj.SolrServerException;
|
||||||
import org.apache.solr.client.solrj.request.ContentStreamUpdateRequest;
|
|
||||||
import org.apache.solr.common.util.ContentStream;
|
import org.apache.solr.common.util.ContentStream;
|
||||||
import org.apache.solr.common.SolrInputDocument;
|
import org.apache.solr.common.SolrInputDocument;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
@ -56,7 +52,6 @@ class Ingester {
|
|||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(Ingester.class.getName());
|
private static final Logger logger = Logger.getLogger(Ingester.class.getName());
|
||||||
private volatile boolean uncommitedIngests = false;
|
private volatile boolean uncommitedIngests = false;
|
||||||
private final ExecutorService upRequestExecutor = Executors.newSingleThreadExecutor();
|
|
||||||
private final Server solrServer = KeywordSearch.getServer();
|
private final Server solrServer = KeywordSearch.getServer();
|
||||||
private final GetContentFieldsV getContentFieldsV = new GetContentFieldsV();
|
private final GetContentFieldsV getContentFieldsV = new GetContentFieldsV();
|
||||||
private static Ingester instance;
|
private static Ingester instance;
|
||||||
@ -363,18 +358,6 @@ class Ingester {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Helper to set document fields
|
|
||||||
*
|
|
||||||
* @param up request with document
|
|
||||||
* @param fields map of field-names->values
|
|
||||||
*/
|
|
||||||
private static void setFields(ContentStreamUpdateRequest up, Map<String, String> fields) {
|
|
||||||
for (Entry<String, String> field : fields.entrySet()) {
|
|
||||||
up.setParam("literal." + field.getKey(), field.getValue()); //NON-NLS
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ContentStream to read() the data from a FsContent object
|
* ContentStream to read() the data from a FsContent object
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user