How to get document based on property?

cancel
Showing results for 
Search instead for 
Did you mean: 
dharmraj
Active Member

How to get document based on property?

I am using query/nodes rest api to find node based on metadata .But its not working 

{
“query”: {
      “query”: “cm:name:ab* AND dpdSmiley TonguerojectName: c*“,
     “language”: “fts-alfresco”
  }

}

Get /queries/nodes? term= query

Is it correct?

1 Reply
afaust
Master

Re: How to get document based on property?

You have a whitespace in your query between dpdSmiley TonguerojectName: and c*. That may break your use case.

Other than that, it is typically good to include a basic description of what you mean by "it is not working". There are countless possible errors / mistakes that could occur / be made, so without any information on e.g. an error we cannot really help you that much (apart from checking your query and finding stray whitespaces).