Method Search.Database.Base()->get_document_id()
- Method
get_document_id
intget_document_id(stringuri,void|stringlanguage,void|intdo_not_create)- Description
Retrieve and possibly creates the document id corresponding to the given URI and language code.
- Parameter
uri The URI to be retrieved or created.
- Parameter
language A two letter ISO-639-1 language code, or 0 if the document is language neutral.
- Parameter
do_not_create If non-zero, do not create the document.
- Returns
The non-zero numeric identifier if the document identified by
uriandlanguage_codeexists, or 0 otherwise.