marklogic-10

How to use fn:contains(), fn:starts-with() and fn:ends-with in Optic API

瘦欲@ 提交于 2021-01-28 12:22:33
问题 Earlier we used the FLOWR query to satisfy our search requirement, since data is getting increased day by day so we decided to use Indexing for better search performance. Working FLOWR Query (Just Sample) for $doc in collection("col1") where fn:contains($doc//entityName/text(), "USA") return document-uri($doc) above query is working and it returns a document URI, Now we are trying to use Optic API to satisfy the same requirement. We have created an element range index for entityName but not