Page 1 of 1

Do we have any Rest service to get document id from document name?

Posted: Wed Jun 06, 2018 10:10 am
by vickyhukum
Hi,

Is there any service to get document id based on document name?

Re: Do we have any Rest service to get document id from document name?

Posted: Wed Jun 13, 2018 8:58 am
by agaspa
Hi vicky,
you can use the full-text search using the filename

https://docs.logicaldoc.com/resources/w ... earch/find

In attachment an example for Python

Re: Do we have any Rest service to get document id from document name?

Posted: Wed Jun 13, 2018 11:21 am
by vickyhukum
Hi,
Thanks for you reply. I check this service. It returns following response. I don't see any document id here:
{
"time": 875,
"estimatedHitsNumber": 0,
"hits": [],
"moreHits": 0,
"totalHits": 0
}

Re: Do we have any Rest service to get document id from document name?

Posted: Wed Jun 13, 2018 2:59 pm
by agaspa
Perhaps the document you are looking for has not yet been indexed, check that it is searchable from the GUI