Close
dtSearch Engine API for Java
FieldFlags.dtsoFfIndexArchiveFileLists Field

Index the names of files in ZIP and RAR archives

Syntax
Java
public static final int dtsoFfIndexArchiveFileLists = 0x400000;

This option provides a way to search on the list of files in a ZIP or RAR archive, even if the individual files may be inaccessible due to encryption. When dtSearch indexes a ZIP or RAR archive, in addition to the files actually present in the ZIP or RAR archive, it will also make a list of all of the files in the archive and index it with the name ArchiveFileList.html. 

The original file is not modified but the ArchiveFileList.html file is searchable as if it were part of the ZIP or RAR file. The file consists of a list of the names of the files inside the archive. 

For example, suppose you index a ZIP file that contains "secret1.doc", "secret2.doc", and "secret3.doc", all stored in the ZIP file with encryption. The contents of the three files will not be searchable because of the encryption. However, a search on "secret1" will find the word "secret1" in ArchiveFileList.html in the ZIP file. 

RAR files can be encrypted in a way that makes even the filenames impossible to see without a password. In this case, the names will not be searchable.