mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-04 00:09:53 +00:00
Removed 'File Name' and 'Context' columns from keyword search results.
This commit is contained in:
@@ -67,22 +67,6 @@ class KeywordSearchFilterNode extends FilterNode {
|
||||
return snippet;
|
||||
}
|
||||
|
||||
Property<String> getSnippetProperty() {
|
||||
|
||||
Property<String> prop = new PropertySupport.ReadOnly<String>("snippet",
|
||||
String.class, "Context", "Snippet of matching content.") {
|
||||
|
||||
@Override
|
||||
public String getValue() {
|
||||
return getSnippet();
|
||||
}
|
||||
};
|
||||
|
||||
prop.setValue("suppressCustomEditor", Boolean.TRUE); // remove the "..." (editing) button
|
||||
|
||||
return prop;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Node.PropertySet[] getPropertySets() {
|
||||
Node.PropertySet[] propertySets = super.getPropertySets();
|
||||
@@ -100,9 +84,6 @@ class KeywordSearchFilterNode extends FilterNode {
|
||||
|
||||
int j = 0;
|
||||
for (Property<?> p : oldProperties) {
|
||||
if (j++ == 1) {
|
||||
newPs.put(getSnippetProperty());
|
||||
}
|
||||
newPs.put(p);
|
||||
}
|
||||
|
||||
|
||||
@@ -79,13 +79,6 @@ public class KeywordSearchResultFactory extends ChildFactory<KeyValueQuery> {
|
||||
return BlackboardAttribute.ATTRIBUTE_TYPE.TSK_KEYWORD_REGEXP.getDisplayName();
|
||||
}
|
||||
},
|
||||
MATCH {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "File Name";
|
||||
}
|
||||
},
|
||||
CONTEXT {
|
||||
|
||||
@Override
|
||||
@@ -268,7 +261,6 @@ public class KeywordSearchResultFactory extends ChildFactory<KeyValueQuery> {
|
||||
final int previewChunk = hitContents.get(f);
|
||||
//get unique match result files
|
||||
Map<String, Object> resMap = new LinkedHashMap<>();
|
||||
setCommonProperty(resMap, CommonPropertyTypes.MATCH, f.getName());
|
||||
|
||||
try {
|
||||
String snippet;
|
||||
|
||||
Reference in New Issue
Block a user