Skip to content

Commit

Permalink
'#1859 uses declared constant for custom metadata prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdalla committed Nov 10, 2023
1 parent f68a6a4 commit 0877ee8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public class CacheIndexParser extends AbstractParser {

private static Logger LOGGER = LoggerFactory.getLogger(CacheIndexParser.class);


public static final String METADATA_PREFIX = "chromeCache";
public static final String IS_CACHE_INDEX_ENTRY = METADATA_PREFIX + ":isChromeCacheEntry";
public static final String CACHE_URL = METADATA_PREFIX + ":chromeCacheUrl";
Expand Down Expand Up @@ -77,7 +76,7 @@ public void parse(InputStream indexFile, ContentHandler handler, Metadata metada
List<IItemReader> dataFiles = searcher.search(commonQuery + " AND " + BasicProps.NAME
+ ":(\"data_0\" OR \"data_1\" OR \"data_2\" OR \"data_3\" OR \"data_4\" OR \"data_5\")");

MetadataUtil.addCustomMetadataPrefix("chromeCache");
MetadataUtil.addCustomMetadataPrefix(METADATA_PREFIX);

Index index;
try {
Expand Down

0 comments on commit 0877ee8

Please sign in to comment.