Remove

________________________________
From: [email protected] 
<[email protected]> on behalf of 
[email protected] 
<[email protected]>
Sent: Thursday, June 22, 2017 5:27:00 AM
To: [email protected]
Subject: General Digest, Vol 156, Issue 31

Send General mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://developer.marklogic.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of General digest..."


Today's Topics:

   1. Re: field constraint in search API (Charles Greer)
   2. Marklogic - xdmp:filesystem-file (Ly CafeSua)
   3. Re: Marklogic - xdmp:filesystem-file (Geert Josten)
   4. Regarding Marklogic space (Mani, Sivasubramani (ELS))


----------------------------------------------------------------------

Message: 1
Date: Wed, 21 Jun 2017 21:58:34 +0000
From: Charles Greer <[email protected]>
Subject: Re: [MarkLogic Dev General] field constraint in search API
To: MarkLogic Developer Discussion <[email protected]>
Message-ID:
        <64677819b9b5be4cb1c549f188bffa500c8ff...@exchg10-be01.marklogic.com>
Content-Type: text/plain; charset="windows-1252"

Hi Alan

I think your field contraint is fine-- the default grammar simply expects a 
different syntax.

I could be mistaken, but I think either of the following expressions will give 
you ANDed queries:

ANY:"x AND y"

ANY:x ANY:y

See if that gives you what you need.  There may be a way beyond this to use the 
grammar configuration
to move you toward the syntax you've used, but it's not occurring to me off the 
top of my head.


Charles


Charles Greer
Lead Engineer
MarkLogic Corporation
[email protected]
Cell:  +1 707 318 0442
@grechaw
www.marklogic.com<http://www.marklogic.com>

________________________________
From: [email protected] 
[[email protected]] on behalf of Alan Darnell 
[[email protected]]
Sent: Tuesday, June 20, 2017 2:54 PM
To: General Developer Discussion
Subject: [MarkLogic Dev General] field constraint in search API

Having a little trouble setting up a field constraint in the Search API and 
can?t find an answer in the documentation.

We?ve created a field called ?anywhere? composed of a number of elements that 
appear in our standard XML document.

We?ve also created a constraint called ANY defined as:

<constraint name=?ANY?>
<word>
<field name=?anywhere? />
</word>
</constraint>

We are sending the string ANY:(x y) to the search API.  We are looking for this 
to turn into two AND?d word queries but what we get is a phrase search on ?x y?.

Here?s the output from the search API:

<search:report id="SEARCH-FLWOR">
(cts:search(/book, cts:field-word-query("anywhere", "x y", ("lang=en"), 1), 
("score-logtfidf",cts:score-order("descending")), 1))[1 to 20]
</search:report>

We were hoping instead for something like this.

<search:report id="SEARCH-FLWOR">
(cts:search(/book, cts:field-word-query(?anywhere"), 
cts:and-query((cts:word-query("x", 
("case-insensitive","diacritic-insensitive","punctuation-insensitive","wildcarded","lang=en"),
 1), cts:word-query("y", 
("case-insensitive","diacritic-insensitive","punctuation-insensitive","wildcarded","lang=en"),
 1)), ()), ()), ("score-logtfidf",cts:score-order("descending")), 1))[1 to 20]
</search:report>

Is this kind of search possible with fields?  If so, how should the constraint 
be defined?

Thanks in advance,

Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20170621/c3a9bf28/attachment-0001.html

------------------------------

Message: 2
Date: Thu, 22 Jun 2017 00:41:47 -0400
From: Ly CafeSua <[email protected]>
Subject: [MarkLogic Dev General] Marklogic - xdmp:filesystem-file
To: [email protected]
Message-ID:
        <cakgxtbgzrhsxw3-cqhjycfhabtxfm0_kn+pw5cr4mb2ybz6...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I have a text file contains a list over 2 thousands customerid. when
use xdmp:filesystem-file("opt/rec/listid.txt") to make sure it can read all
customer id inside a file. it returns all id as expected.

"00013",
"00014"
"00015"

However when I assigned "xdmp:filesystem-file" to a variable below, the
result always zero.  I could not figure out what wrong. please give me some
hints or sample code.

let $listID := xdmp:filesystem-file("opt/rec/listid.txt")

let $uris := cts:uris( (),(),
                              cts:and-query((

cts:collection-query("/collection/customers"),

cts:element-value-query(xs:QName("meta:custid",($listID))
                               ))
                     )

return count($uris)

result: 0

Thanks
Thichxai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20170622/7a6dbd3f/attachment-0001.html

------------------------------

Message: 3
Date: Thu, 22 Jun 2017 07:02:37 +0000
From: Geert Josten <[email protected]>
Subject: Re: [MarkLogic Dev General] Marklogic - xdmp:filesystem-file
To: MarkLogic Developer Discussion <[email protected]>
Message-ID: <d571379a.11d1d8%[email protected]>
Content-Type: text/plain; charset="windows-1252"

Hi Thichxai,

You are reading the entire file as a single value. I?d suggest putting bare 
id?s in your file (no quotes, no commas), one on each line. Then, after reading 
the file, use fn:tokenize to split on line-end before you pass in the list into 
your element-value-query..

Kind regards,
Geert

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of Ly CafeSua <[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Thursday, June 22, 2017 at 6:41 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] Marklogic - xdmp:filesystem-file

I have a text file contains a list over 2 thousands customerid. when use 
xdmp:filesystem-file("opt/rec/listid.txt") to make sure it can read all 
customer id inside a file. it returns all id as expected.

"00013",
"00014"
"00015"

However when I assigned "xdmp:filesystem-file" to a variable below, the result 
always zero.  I could not figure out what wrong. please give me some hints or 
sample code.

let $listID := xdmp:filesystem-file("opt/rec/listid.txt")

let $uris := cts:uris( (),(),
                              cts:and-query((
                                              
cts:collection-query("/collection/customers"),
                                              
cts:element-value-query(xs:QName("meta:custid",($listID))
                               ))
                     )

return count($uris)

result: 0

Thanks
Thichxai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20170622/07ec7c38/attachment-0001.html

------------------------------

Message: 4
Date: Thu, 22 Jun 2017 09:26:58 +0000
From: "Mani, Sivasubramani (ELS)" <[email protected]>
Subject: [MarkLogic Dev General] Regarding Marklogic space
To: MarkLogic Developer Discussion <[email protected]>
Cc: ConSyn-Infosys-Support <[email protected]>
Message-ID:
        
<blupr08mb1667dd2ffc785861972b3667f4...@blupr08mb1667.namprd08.prod.outlook.com>

Content-Type: text/plain; charset="us-ascii"

Hi Team,

I am new to Mark Logic. In the Mark Logic Monitoring Dashboard one of my Mark 
Logic Node show's critical disk space. My Free disk space is 549GB but show's 
9.8% capacity. What is meant by capacity here How capacity is arrived. If 
capacity is in critical it causes any problem to the node, if yes then how can 
we resolve this. Kindly help on this.



[cid:[email protected]]

Thanks & Regards,
Siva

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20170622/a85caeef/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 9840 bytes
Desc: image001.png
Url : 
http://developer.marklogic.com/pipermail/general/attachments/20170622/a85caeef/attachment.png

------------------------------

_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general


End of General Digest, Vol 156, Issue 31
****************************************
CONFIDENTIALITY STATEMENT: This communication, including attachments, is for 
the exclusive use of addressee and may contain proprietary, confidential or 
privileged information. If you are not the intended recipient, you are hereby 
notified that any disclosure, use, copying, dissemination, distribution or 
taking of any action in reliance on the content of this information is strictly 
prohibited. If you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all 
copies. Thank you.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to