06-18-2020 02:55 AM
Hello,
Need your help to execute task where I need to search document based on custom model properties.
Task performed-
with Rest API POST '/nodes/{nodeId}/' - I have uploaded document.
As I already developed my content model aspect and property
with Rest API PUT '/nodes/{id}' - I have updated my document with content model property and based on this property I got my aspect name in response.
Task I need to Performed-
Based on this property I need to fetch my document.
Need your help to execute this task by using Rest API
06-25-2020 04:24 AM
Logs doesn't help.
That should be working.
Try the same query using Node Browser or any other tool to be sure that it works and it's not a REST API problem.
06-25-2020 05:12 AM
Hi,
This query is working for me.
06-26-2020 12:56 AM
Hi @pjcaracuel_2349 and @angelborroy
I am using
{ "query": { "query": "TYPE:\"cm:content\" AND od:ReObjID:\"OmGanesh\"" } }
As JSON Payload where ReObjID is my custom property and OmGanesh is value for that can you help me out why i am unable to fetch.
06-26-2020 02:14 AM
Try this
"query": "TYPE:\"cm:content\" AND (+@od:ReObjID:\"OmGanesh\")"
06-26-2020 08:49 AM
I tried with the JSON you mentioned i.e
{
"query":{
"query": "TYPE:\"cm:content\" AND (+@od:ReObjID:\"OmGanesh\")"}
}
i am getting following error:
{ "error": { "errorKey": "framework.exception.ApiDefault", "statusCode": 500, "briefSummary": "05260097 Request failed 500 /solr/alfresco/afts?wt=json&fl=DBID%2Cscore&rows=100&df=TEXT&start=0&locale=en_US&alternativeDic=DEFAULT_DICTIONARY&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON", "stackTrace": "For security reasons the stack trace is no longer displayed, but the property is kept for previous versions", "descriptionURL": "https://api-explorer.alfresco.com", "logId": "99150429-9c53-4821-a0ad-8373e85e8fbf" } }
Can you help me with this?
06-26-2020 12:28 PM
Can you put the metadata definition for od:ReObjID ?
Also you can try without TYPE:\"cm:content\" AND
as
{
"query":{
"query": "(+@od:ReObjID:\"OmGanesh\")"}
}
Thanks
06-29-2020 01:50 AM
Still getting same issue.
06-26-2020 12:54 PM
06-29-2020 01:54 AM
Hi @EddieMay
Can you please guide me more about indexing. How to configure and how to check that indexing working properly or not?
one more thing even from alfresco share we are not able to search.
Note-Solution you mentioned in your comment inside it links which is pointing indexing with solr6 is giving error Page not Found error.
07-01-2020 06:11 AM
Hi @EddieMay
Any Update please?
Explore our Alfresco products with the links below. Use labels to filter content by product module.