Questions tagged [cts-search]

cts-search refers to a set of MarkLogic functions related to low-level search

is an enterprise NoSQL database with multiple methods available to search content.

One of them is the set of cts:search related functions. These include query constructors, geospatial functions, geospatial lexicon functions, lexicon functions, math lexicon (aggregation) functions, clustering, temporal functions, and core cts search functions.

The cts-search capability is contrasted with higher-level search libraries such as the Search API as well as the search capabilities of the REST API, the Java Client API, and the Node Client API.

28 questions
1
vote
1 answer

and-query to match an attribute value and a subelement value

I have documents containing structures like: 2019-03-05T06:00:00Z 2019-03-12T05:00:00Z
Paulwms
  • 95
  • 8
1
vote
1 answer

xquery search:suggest where search term start with double quotes

I want to search marklogic for term that start with double quotes. i am using search-suggest. term that i am searching is '"Independent'. When executed successfully, query should suggest multiple options with one option that is '"Independent…
nimTas
  • 11
  • 5
1
vote
2 answers

field-value-query returning unexpected results when used with 'unfiltered' search in MarkLogic

I am getting false results with field-value-query when used with 'unfiltered' search. I will explain the problem with sample data as given below. XML: Dixit 25
Dixit Singla
  • 2,540
  • 3
  • 24
  • 39
1
vote
2 answers

Value-Query within an Element-Query

Search for Items that have an Overall Height of 4": I have a question about using cts:search. Consider the following xml: ...
1
vote
1 answer

XDMP-TOOMANYPOSITIONS - Marklogic error

I am forming a query with many group of multiple or-queries,and queries- which is the 2nd parameter for the cts:search() function . But when I am using cts:search() , I am getting XDMP-TOOMANYPOSITIONS: error . Can any one Please tell me the reason…
0
votes
1 answer

Search with element-range-query on date field if some of the documents have empty-value elements

I have a element-range-index created on the modificationDateTime element. Our xml is something like this: 456789 2018-10-15T15:16:37.047Z ...…
Prakash K
  • 11,669
  • 6
  • 51
  • 109
0
votes
1 answer

How to add a value to the existing element value and return it as a new value

This is the xml file. System-Start-Date= 2018-05-16T12:35:48.6929328-04:00, " ", System-End-Date = 9999-12-31, " ",…
0
votes
1 answer

unexpected behaviour of "unfiltered" search in MarkLogic

Unfiltered search is giving wrong results. please find the below xml samples and problem. Sample: 11 ee1 ee2 10 10
Dixit Singla
  • 2,540
  • 3
  • 24
  • 39
0
votes
4 answers

Intersect search:search result set with cts:search result set that used cts:polygon geospatial search

I had to add geo-spatial search capability to an already existing app which uses search:search API and has full text search and faceted search. I've read about Extending the Search API, but I just don't have the time right now. So, I thought I will…
0
votes
1 answer

How to load the xhtml document as a text and search the keyword in marklogic

I have loaded the XHTML files in marklogic. But need to perform the search on attributes, elements and text. So I need to get/load the document as a text and perform the search on document. Below is the XHTML file.
0
votes
2 answers

How to search the given text into marklogic XHTML file, like clt+f

I have below XHTML file saved in the marklogic with the URI(/54ab8c234f3c8ce1f5c30ddc). I need to search the Marklogic DB based on the string (if it is tag name or attribute name or text in the XHTML). I am able to search only text either attribute.…
0
votes
2 answers

What is the difference between cts:search and cts:element-attribute-values?

I can't understand deference between cts:search and cts:element-attribute-values. I can get the same result with both these functions. What is the best resolve? cts:search(/t:ancestors-list/t:concept/t:concept-ancestor,…
Nik
  • 121
  • 8
-1
votes
1 answer

How to impliment below XQuery using cts:element-values

I am having below query which is using cts:search which is taking lot of time while running in production xquery version "1.0-ml"; (: let $limit := () use this instead to display all values :) for $uri in cts:uri-match("/tag-cloud/*") let $values…
1
2