Hi,
I am trying to search a value in the specfic collection.But the
following query resluts comming from other collection document also(
which has different uri)
can any one give me suggestion.
xquery version "1.0-ml";
import module namespace search = "http://marklogic.com/appservices/search";
Dom,
Doug's suggestion of changing the search string to match multiple words is a
good one. For example, consider the following query:
let $x := 123/456/abc
return
(
cts:contains($x, cts:element-value-query(xs:QName("a"), "123* *",
("wildcarded"))),
cts:contains($x, cts:element-v
Oh by the way, did you notice that cts:element-value-query can take multiple
search strings? (like most of its relatives)..
Kind regards,
Geert
>
drs. G.P.H. (Geert) Josten
Consultant
Daidalos BV
Hoekeindsehof 1-4
2665 JZ Bleiswijk
T +31 (0)10 850 1200
F +31 (0)10 850 1199
mailto:geert.jos
Hi Dom,
I think Doug is right. There is an interesting comment on this between the user
notes on that function, see the last paragraph:
http://developer.marklogic.com/pubs/4.1/apidocs/cts-query.html#cts:element-value-query
The fourth example might also be of interest. In fact, extrapolating fro
Dom,
I would guess that this issue has to do with word boundaries. When you do an
element-value-query for '139*', you are searching for only elements whose
values contain a single word starting with '139' (because '*' does not match on
word boundaries), but the slashes in your desired value ar
Hello,
I've been trying to get the following search working:
cts:and-query(
(
cts:element-attribute-value-query(xs:QName("xm:field"),
xs:QName("type"), "number")
,
cts:element-value-query(xs:QName("xm:field"),('139*'),("wildcarded"))
)
Search for element
Hi Mano and Dhivya,
The search:search function works on documents by default. You need to specify a
'searchable-expression', by adding it to the options. You can found more
details here:
http://developer.marklogic.com/pubs/4.1/apidocs/SearchAPI.html#search:search
HTH!
Kind regards,
Geert
>
hi Team,
I am also facing the same problem. can any one help to solve the problem.
with regards,
Dhivya.v
On Mon, Feb 8, 2010 at 7:25 PM, mano m wrote:
> Hi,
>
>
>
> *Sample content:*
>
>
>
>
>
>
>
> Book1
> 1956
>
>
> Book2
> 1967
>
>
>
>
>
> --
>
>
>
>
>
>
> *XQuery:*
>
> *
Hi Van,
Can you elaborate on the various routes in which documents are typically
inserted/updated? You mentioned having used WEBDAV yourself, but is that how
all documents are inserted and updated? And did the particular problem document
you discovered have a specific history, having been manip
Geert,
Thanks for your reply. Well I currently see no way of reproducing this error,
it is absolutely unpredictable. Concerning permissions, yes, all documents are
uploaded using admin access, so this is probably not where the problem lies.
Most likely it's about how documents are being inserte
Hi Van,
The cts:search seems correct to me, so I suspect something else is going on. A
few thoughts pop into my head..
First is namespaces, but I am guessing you are not using namespaces at all.
Default namespace declarations can get you confused easily, particularly when
declared in literal e
Hi All,
I encountered another problem in MarkLogic and that's not quite clear to me
what causes it. I'm talking about differences in XPath and cts:search
approaches to fetching specific nodes/documents. Here is a snippet of code that
should take an item out of database:
xdmp:directory("/data/"
12 matches
Mail list logo