Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2311

FileListEntityProcessor Fields Stored in SolrDocument do not Match Documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.4.1
    • None
    • None
    • Java 1.6

    Description

      The implicit fields generated by the FileListEntityProcessor do not match the documentation, which are listed in the following excerpt:

      The implicit fields generated by the FileListEntityProcessor are
      fileAbsolutePath, fileSize, fileLastModified, fileName and these are available
      for use within the entity X as shown above.

      The fileName field is not populated. The file's name is stored in the implicit field named file.

      The hashmap that holds the metadata is (FileListEntityProcessor.java at line 255)
      stored the following using the associated constants:

      details.put(DIR, dir.getAbsolutePath());
      details.put(FILE, name);
      details.put(ABSOLUTE_FILE, aFile.getAbsolutePath());
      details.put(SIZE, sz);
      details.put(LAST_MODIFIED, lastModified);

      where DIR = "fileDir", FILE = "file", ABSOLUTE_FILE = "fileAbsolutePath", SIZE = "fileSize", and LAST_MODIFIED = "fileLastModified".

      Either the documentation must be updated, or the constant storing the return value must be updated.

      Attachments

        1. SOLR-2311.patch
          3 kB
          Matt Parker

        Issue Links

          Activity

            People

              Unassigned Unassigned
              matt.parker Matt Parker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: