Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title not included in indexed metadata fields, but should be #18172

Closed
john-thomas-dotcms opened this issue Mar 23, 2020 · 2 comments
Closed

Comments

@john-thomas-dotcms
Copy link
Contributor

Describe the bug

The INDEX_METADATA_FIELDS property in the dotmarketing-config.properties file specified which metadata fields we index in files. The current default value for this property does not include title, so the title of uploaded files is not indexed by default.

Steps to reproduce the behavior:

  1. Create a file (outside of dotCMS) and set the title field in the file metadata to include some unique value (e.g. abc123xyz).
  2. Upload the file into dotCMS as a File Asset.
  3. Use the Query Tool to perform a Lucene query which looks for the unique value (e.g. +catchall:*abc123xyz*.
    Result: The file is not returned in the search results.

Expected behavior

By default, the title metadata should be indexed.

So we should add title to the list of fields in the INDEX_METADATA_FIELDS property in the dotmarketing-config.properties file we ship with.

Desktop (please complete the following information):

  • OS: Win 10 Pro
  • Chrome
  • dotCMS 5.2.7

Workaround

Customers may use the com.dotcms.config plugin to override the value of the INDEX_METADATA_FIELDS property, adding the title field to the list of indexed properties.

@john-thomas-dotcms john-thomas-dotcms changed the title Title not included in default metadata fields, but should be Title not included in indexed metadata fields, but should be Mar 23, 2020
@john-thomas-dotcms
Copy link
Contributor Author

@wezell wezell added this to the Bug Sprint milestone Mar 24, 2020
@bryanboza
Copy link
Member

Fixed, tested on master // Postgres // FF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants