Search: search () vs cts: search () in MarkLogic

I read about cts:search()and search:search()separately, but could not understand what is the difference between the two. He says he cts:search()ultimately uses it search:search(). Can anyone illustrate in detail the scenario in which one needs to go for cts:search()and for search:search(). This does not apply to any specific project work where I need to implement this, but in general.

Thanks!

+4
source share
2 answers

The search API (for example search:search()) is an XQuery library that provides a high-level interface for some of MarkLogic's core features, such as search, faces, and aggregates. It uses lower-level libraries cts:*(and others) under covers, but will save most developers a bunch of input and debugging.

, API . , , . , . , API . - , API , , cts:query. , search:resolve() cts:query search:search().

, , Server-Side JavaScript, 8.0-4 ​​ , JavaScript.

+9

:

!

+2

Source: https://habr.com/ru/post/1605807/


All Articles