Fetching documents via a metadata query (Liferay 7.2)Fetching documents via a metadata query (Liferay 7.2)https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1181012352024-03-29T05:06:18Z2024-03-29T05:06:18ZFetching documents via a metadata query (Liferay 7.2)Sam Colletthttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1181012342019-12-17T11:51:34Z2019-12-17T11:51:34ZHi,<br />I am currently looking into a way of fetching documents according to the metadata that is set. I have several document types, for instance Policy, Guidance, Procedure etc. They have a 'Review_Date' field (or a variant of) and I wish to retrieve the documents that have it set and with a date within a certain period - within 3 months, one month or past the review date (three lists, for display/email/exporting).<br /><br />I have had a look at the DLFileEntryMetadataLocalServiceUtil and the dynamicQuery looks like it could be the method to use, but I am not sure how to use it for my particular query. Are there more appropriate methods to use, using the built in ElasticSearch for example? I have also had a brief look at graphql, which looks it might be a more powerful way of getting the information, since you can choose which information to return, but not sure of how to build up the query. <br /><br