Under review

Unable to filter or search by filetype

rickcecil 4 months ago updated 3 months ago 5

I cannot search by filetype nor can I filter the view by filetype.

I browse to a directory where I know there are files of each type, then will either 

a) click search, click "File Type", deselect name, and then select one of the file types from the list. The file listing goes blank

b) select the Display Mode > Show only and the file listing goes blank

I have run metadata_update_file_type.php. (Several times at this point).

The filetypes tab in the control panel lists hundreds and sometimes thousands of files per filetype. 

There is nothing in the server log or activity log as to the error.

I've tried it on Chrome and Firefox.

Any guidance or pointers would be appreciated. Thanks!

Not sure if it matters, but I am also having issues with the content search with elastic search.

When I look in the search error logs, I see this:

[2022-08-26T02:58:27,296][ERROR][o.e.x.s.a.f.SecurityActionFilter] [2sRxfgo] blocking [indices:monitor/stats] operation due to expired license. Cluster health, cluster stats and indices stats operations are blocked on license expiration. All data operations (read and write) continue to work. If you have a new license, please update it. Otherwise, please reach out to your support contact.

I am using docker and the compose file from here:

Here is my section on elastic:

    image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
    container_name: elasticsearch
    restart: unless-stopped
      - cluster.name=docker-cluster
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
        soft: -1
        hard: -1
    mem_limit: 1g
      - ./esearch:/usr/share/elasticsearch/data

I was not able to find any information about the license issue using the UserEcho search, but with a Google search, I found this:


And it seems to have fixed the license error. Still sorting out the view error.

So I think the issue with filtering the view is a misunderstanding on my part. If I manually set the file type, it works. But I don't understand why I can't just specify a file extension under the file type options in the control panel and have it automatically be associated with that extension.

Under review

Show me please a screenshot of the web page, when editing a metadata file type which you would like to automaticaly set for certain types of files.

Here's how I thought it would work...

In the control panel, I can set the file extensions for "Documents" File Type on this screen:

I had thought that having "pdf" in the File Extension meant that any PDF files would automatically be listed as Documents. Or, at the very least, when I ran the command to Set Metadata Type, it would pick up the PDFs

Now, the main File Type screen does show that there are over 60K files designated as "Document" ...

So, I guess my question is ...

Is my assumption right?

And if it is right, any thoughts on why some PDF files might not be recognized as PDFs? Are you just keying off the file extension itself or is it something else in the metadata -- something that might be corrupted in some of my PDFs?

If my assumption is wrong, what is the intended functionality (or a pointer to the documentation -- I did look, I promise).