If by "unique nodes" you mean "distinct nodes" there is a functx that does
this:
http://www.xqueryfunctions.com/xq/functx_distinct-nodes.html
- Dan
On Wed, Mar 6, 2013 at 4:58 PM, Abhishek53 S wrote:
> Hi Folks,
>
> Can someone please help me in getting list of unique nodes from below XML
>
>
The functx library has a bunch of functions to do stuff like this. I think
distinct-deep works for this. You can find those here:
http://www.xqueryfunctions.com/
And also MarkLogic ships with that library, so you can import it directly.
Here is an example:
xquery version "1.0-ml";
impo
Hi Folks,
Can someone please help me in getting list of unique nodes from below XML
1
xx
2
yy
1
xx
I need the output like
1
xx
2
yy
Thanks in advance!!
Abhishek Srivastav
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: abhishek5...@tcs.com
Website: http://www.tcs.com
_
Hi, Varun:
Your use case sounds very similar to the one given in the documentation:
http://docs.marklogic.com/guide/search-dev/alerts#id_71547
In summary:
* The serialized query in the rule should match the topic keywords.
* The metadata in the rule should contains the list of users who h
Hello Charles,
Thanks for reply...
Charles if I will create a document for each keyword then again it becomes
same problem as I facing with current solution.
Any other way to short out this problem from ML side.
Thanks,
Varun
On Thu, Mar 7, 2013 at 12:53 AM, Charles Greer wrote:
> Hi Varun,
Hi Varun,
With reverse-query what you want to do is actually store the cts:query
of interest within a document. The query has to be serializable. Then
reverse query will return the document which contains a query that
matches doc.xml.
So typically, you'd create a separate document for each
Hello All,
As I want to create an alert API. In which I am using two xml files say
user_id.xml and doc.xml .
The format of user_id.xml is like this
varunesh...@gmail.com
var...@gmail.com
v...@gmail.com
sa...@gmail.com
.
Hello All,
As I want to create an alert API. In which I am using two xml files say
user_id.xml and doc.xml .
The format of user_id.xml is like this
varunesh...@gmail.com
var...@gmail.com
v...@gmail.com
sa...@gmail.com
.
ent was scrubbed...
URL:
http://developer.marklogic.com/pipermail/general/attachments/20130306/741a7d11/attachment.html
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 27247 bytes
Desc: not available
Url :
http://developer.marklogic.com
I see, I didn't take the question literally enough!
If you have exactly 3 collections that you want to display in the interface,
then you might want to consider whether you really just need a control that
displays those 3 collections, instead of a facet that draws its values from the
indexes.
10 matches
Mail list logo