Alfresco afts query greater/lesser than

cancel
Showing results for 
Search instead for 
Did you mean: 
franciscoduarte
Member II

Alfresco afts query greater/lesser than

Hi,

Is it possible to filter numeric values with greater/lesser than operators?

{
    "query": {
        "query": "PATH:'/app:company_home/st:sites/cm:company-site/cm:documentLibrary/cm:FolderA/*'",
    "language": "afts"
    },
    "filterQueries": [{"query": "cm:title:titleValue"},{"query": "content.size:[5 TO MAX]"}],
    "include": ["properties"]
}

Does this makes sense for you for an >5 example?

Thank you,

Francisco Duarte
1 Reply
abhinavmishra14
Advanced

Re: Alfresco afts query greater/lesser than

The post is tagged as 4.2, as far as i can recall based on your example this syntax/payload example won't work as V1 rest apis were not available in 4.2. I may be wrong.

Here are docs for the least recent version if this helps:

https://docs.alfresco.com/content-services/5.2/develop/rest-api-guide/searching/

https://docs.alfresco.com/content-services/5.2/develop/alfresco-full-text-search-ref/#search-for-ran...

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)