File tree Expand file tree Collapse file tree
iped-engine/src/main/java/iped/engine Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929import iped .engine .config .IndexTaskConfig ;
3030import iped .engine .task .HashTask ;
3131import iped .engine .task .PhotoDNATask ;
32+ import iped .engine .task .RemoteImageExternalClassifierTask ;
3233import iped .engine .task .index .IndexItem ;
3334import iped .localization .LocalizedProperties ;
3435import iped .properties .ExtraProperties ;
@@ -57,6 +58,8 @@ public static Analyzer get() {
5758 analyzerPerField .put (IndexItem .CHANGED , new KeywordAnalyzer ());
5859 analyzerPerField .put (IndexItem .TIMESTAMP , new KeywordAnalyzer ());
5960
61+ analyzerPerField .put (RemoteImageExternalClassifierTask .AI_REVIEW_PRIORITY_ATTR , new KeywordAnalyzer ());
62+
6063 IndexTaskConfig indexConfig = ConfigurationManager .get ().findObject (IndexTaskConfig .class );
6164 StandardASCIIAnalyzer hashAnalyzer = new StandardASCIIAnalyzer ();
6265 hashAnalyzer .setMaxTokenLength (Integer .MAX_VALUE );
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public class RemoteImageExternalClassifierTask extends AbstractTask {
9797 private static final String aiPrefix = "ai:externalClassifier:" ;
9898
9999 // AI classification extra attributes and values
100- private static final String AI_CLASSIFICATION_STATUS_ATTR = aiPrefix + "classificationStatus" ;
100+ public static final String AI_CLASSIFICATION_STATUS_ATTR = aiPrefix + "classificationStatus" ;
101101 private static final String AI_CLASSIFICATION_SUCCESS = "success" ;
102102 private static final String AI_CLASSIFICATION_FAIL_NO_CLASS = "failNoClass" ;
103103 private static final String AI_CLASSIFICATION_FAIL_NO_RESULTS = "failNoResults" ;
You can’t perform that action at this time.
0 commit comments