Whitby, Rob | 19 Dec 16:39 2014

[MarkLogic Dev General] cluster quorum

Hi,

I have a cluster with 6 hosts. I stopped 3 of the hosts and the remaining 3 are still accepting reads/writes.

Why is this? I was expecting the quorum not to be reached because we don’t have >50% of hosts available.

https://help.marklogic.com/knowledgebase/article/View/119/0/start-up-quorum-and-forest-level-failover

Cheers
Rob

<div>
<div>
<div>Hi,</div>
<div><br></div>
<div>I have a cluster with 6 hosts. I stopped 3 of the hosts and the remaining 3 are still accepting reads/writes.</div>
<div><br></div>
<div>Why is this? I was expecting the quorum not to be reached because we don&rsquo;t have &gt;50% of hosts available.</div>
<div><br></div>
<div>https://help.marklogic.com/knowledgebase/article/View/119/0/start-up-quorum-and-forest-level-failover</div>
<div><br></div>
<div>Cheers</div>
<div>Rob</div>
<div><br></div>
</div>
</div>
Danny Sinang | 19 Dec 15:11 2014
Picon

[MarkLogic Dev General] Combining trigger databases

We have 5 trigger databases (one for each Business Unit content database with its own CPF domain and pipelines). 

The less than 30 triggers stored in each of them appear to have been created solely by CPF.

For manageability purposes, we'd like to combine them into just one trigger database.

My question is, would doing so cause any problems for CPF ?

If yes, what workarounds would you suggest ?

Regards,
Danny

<div><div dir="ltr">We have 5 trigger databases (one for each Business Unit content database with its own CPF domain and pipelines).&nbsp;<div><br></div>
<div>The less than 30 triggers stored in each of them appear to have been created solely by CPF.<div><br></div>
<div>For manageability purposes, we'd like to combine them into just one trigger database.<br><div><br></div>
<div>My question is, would doing so cause any problems for CPF ?</div>
</div>
<div><br></div>
<div>If yes, what workarounds would you suggest ?</div>
<div><br></div>
<div>Regards,<br>Danny</div>
<div><br></div>
</div>
</div></div>
Gary Russo | 18 Dec 22:50 2014
Picon

[MarkLogic Dev General] What's the best Multitenancy approach for 5, 000 tenants in a shared MarkLogic Cluster?

I’m building a MarkLogic cluster that will be used by accounting firms to manage client tax data.

 

Notes:

·      Each accounting firm will have a unique set of users and clients.

·      Every accounting firm needs their own isolated “dataspace” to store client data.

·      Need to support 5,000 accounting firms.

·      Need to have a “physical” firewall to isolate data of each accounting firm.

·      It is very important to not commingle data between accounting firms.

 

Example:

·      Account Firm A – Will have 20 users that will manage data for 40 clients.

·      Account Firm B – Will have 25 users and will manage data for 100 clients.

·      Account Firm C – Will have 100 users and will manage data for 500 clients.

 

 

I see 2 approaches: option 1 - Application/User Level and option 2 - Port/Database Level

 

Option 1 is the salesforce.com approach where each firm has a unique REST endpoint with unique set of users/permissions.

 

Option 2 is to give every accounting firm a unique database and port numbers. This means the MarkLogic cluster will have more than ~10,000 forests with ~5,000 unique HTTP servers.

 

If Option 2 is used, the accounting firm on boarding process will be fully automated. A web app will be created that will utilize the REST Management APIs.  => http://docs.marklogic.com/REST/management

 

 

My questions:

1.       What is the best approach to support the “multiple tenants” like this?

2.       For option 2, is the use of unique databases/port numbers for 5,000 firms considered too much?

3.       For option2, how will 10,000 forests on a 3 node cluster impact performance considering the 2 CPU core per forest rule of thumb?

 

 

 

Gary Russo

Enterprise NoSQL Developer

Phone: 201-536-4432

Skype: garyprusso

http://garyrusso.wordpress.com

 

<div><div class="WordSection1">
<p class="MsoNormal">I&rsquo;m building a MarkLogic cluster that will be used by accounting firms to manage client tax data.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Notes:<p></p></p>
<p class="MsoListParagraph"><span><span>&middot;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span>Each accounting firm will have a unique set of users and clients.<p></p></p>
<p class="MsoListParagraph"><span><span>&middot;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span>Every accounting firm needs their own isolated &ldquo;dataspace&rdquo; to store client data.<p></p></p>
<p class="MsoListParagraph"><span><span>&middot;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span>Need to support 5,000 accounting firms.<p></p></p>
<p class="MsoListParagraph"><span><span>&middot;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span>Need to have a &ldquo;physical&rdquo; firewall to isolate data of each accounting firm.<p></p></p>
<p class="MsoListParagraph"><span><span>&middot;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span>It is very important to not commingle data between accounting firms.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Example:<p></p></p>
<p class="MsoListParagraph"><span><span>&middot;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span>Account Firm A &ndash; Will have 20 users that will manage data for 40 clients.<p></p></p>
<p class="MsoListParagraph"><span><span>&middot;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span>Account Firm B &ndash; Will have 25 users and will manage data for 100 clients.<p></p></p>
<p class="MsoListParagraph"><span><span>&middot;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span>Account Firm C &ndash; Will have 100 users and will manage data for 500 clients.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">I see 2 approaches: option 1 - Application/User Level and option 2 - Port/Database Level<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Option 1 is the salesforce.com approach where each firm has a unique REST endpoint with unique set of users/permissions.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Option 2 is to give every accounting firm a unique database and port numbers. This means the MarkLogic cluster will have more than ~10,000 forests with ~5,000 unique HTTP servers.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">If Option 2 is used, the accounting firm on boarding process will be fully automated. A web app will be created that will utilize the REST Management APIs. &nbsp;=&gt; <a href="http://docs.marklogic.com/REST/management">http://docs.marklogic.com/REST/management</a><p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">My questions:<p></p></p>
<p class="MsoListParagraph"><span>1.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span>What is the best approach to support the &ldquo;multiple tenants&rdquo; like this?<p></p></p>
<p class="MsoListParagraph"><span>2.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span>For option 2, is the use of unique databases/port numbers for 5,000 firms considered too much?<p></p></p>
<p class="MsoListParagraph"><span>3.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span>For option2, how will 10,000 forests on a 3 node cluster impact performance considering the 2 CPU core per forest rule of thumb?<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Gary Russo<p></p></p>
<p class="MsoNormal">Enterprise NoSQL Developer<p></p></p>
<p class="MsoNormal">Phone: 201-536-4432<p></p></p>
<p class="MsoNormal">Skype: garyprusso<p></p></p>
<p class="MsoNormal"><a href="http://garyrusso.wordpress.com/">http://garyrusso.wordpress.com</a><p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div></div>
Michel de Ru | 17 Dec 13:49 2014

[MarkLogic Dev General] Microsoft Analytics Platform System / Parallel Data Warehouse

Hi everyone,

Would anyone happen to have some info on Microsoft APS (Analytics Platform System) of which PDW (Paralel Data Warehouse) is a part?
  
I know that PDW is running SQL Server underneath in a scale-out kind of way. And that they have some aggregator on top of SQL and Hadoop to provision for unstructured data also.
  
We have a customer that already bought it and want to use it for a project (‘cause they already have it lying around). We want them to continue with the POC they created on top of MarkLogic.
  
Some concrete questions: 
- APS says “we index almost realtime”. What does this mean, sounds expensive eventually
- Look at pricing (TCO, appliance) 
- Tracking -> geo + alerting 
- What’s in the stack from a visualisation perspective
- What are the big differentiators to ML?

Kind regards,

 

Met vriendelijke groet,

 

Michel

 

 

 

Michel de Ru

Principal sales engineer

michel.deru-efBvD/aTHCF8UrSeD/g0lQ@public.gmane.org

Graadt van Roggenweg, 328-334, 3531 AH Utrecht

+31 6 38 507 567

http://www.marklogic.com/

 

 

<div>
<div>
<div>
<div>
<div>Hi everyone,</div>
<div><br></div>
<div>Would anyone happen to have some info on Microsoft APS (Analytics Platform System) of which PDW (Paralel Data Warehouse) is a part?</div>
<div>&nbsp;&nbsp;</div>
<div>I know that PDW is running SQL Server underneath in a scale-out kind of way. And that they have some aggregator on top of SQL and Hadoop to provision for unstructured data also.</div>
<div>&nbsp;&nbsp;</div>
<div>We have a customer that already bought it and want to use it for a project (&lsquo;cause they already have it lying around). We want them to continue with the POC they created on top of MarkLogic.</div>
<div>&nbsp;&nbsp;</div>
<div>Some concrete questions:&nbsp;</div>
<div>
<div>- APS says &ldquo;we index almost realtime&rdquo;. What does this mean, sounds expensive eventually</div>
<div>- Look at pricing (TCO, appliance)&nbsp;</div>
<div>- Tracking -&gt; geo + alerting&nbsp;</div>
<div>- What&rsquo;s in the stack from a visualisation perspective</div>
<div>- What are the big differentiators to ML?</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"></p>

<table class="MsoTableGrid" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="162" valign="top">
<p class="MsoNormal"><span>Kind regards,</span><span><p></p></span></p>
</td>
<td width="297" valign="top">
<p class="MsoNormal"><span>&nbsp;</span></p>
</td>
</tr>
<tr>
<td width="162" valign="top">
<p class="MsoNormal"><span>Met vriendelijke groet,</span><span><p></p></span></p>
</td>
<td width="297" valign="top">
<p class="MsoNormal"><span>&nbsp;</span></p>
</td>
</tr>
<tr>
<td width="162" valign="top">
<p class="MsoNormal"><span>Michel</span><span><p></p></span></p>
</td>
<td width="297" valign="top">
<p class="MsoNormal"><span>&nbsp;</span></p>
</td>
</tr>
<tr>
<td width="162" valign="top">
<p class="MsoNormal"><span>&nbsp;</span></p>
</td>
<td width="297" valign="top">
<p class="MsoNormal"><span>&nbsp;</span></p>
</td>
</tr>
<tr>
<td width="162" valign="top">
<p class="MsoNormal"><span>Michel de Ru</span><span><p></p></span></p>
</td>
<td width="297" rowspan="2" valign="top">
<p class="MsoNormal"><span></span><span><p></p></span></p>
</td>
</tr>
<tr>
<td width="162" valign="top">
<p class="MsoNormal"><span>Principal sales engineer</span><span><p></p></span></p>
</td>
</tr>
<tr>
<td width="162" valign="top">
<p class="MsoNormal"><span><a href="mailto:michel.deru@..."><span>michel.deru@...</span></a><p></p></span></p>
</td>
<td width="297" valign="top">
<p class="MsoNormal"><span>Graadt van Roggenweg, 328-334, 3531 AH Utrecht</span><span><p></p></span></p>
</td>
</tr>
<tr>
<td width="162" valign="top">
<p class="MsoNormal"><span>+31 6 38 507 567</span><span><p></p></span></p>
</td>
<td width="297" valign="top">
<p class="MsoNormal"><span><a href="http://www.marklogic.com/"><span>http://www.marklogic.com/</span></a><p></p></span></p>
</td>
</tr>
<tr>
<td width="162" valign="top">
<p class="MsoNormal"><span>&nbsp;</span></p>
</td>
<td width="297" valign="top">
<p class="MsoNormal"><span>&nbsp;</span></p>
</td>
</tr>
<tr>
<td width="459" colspan="2" valign="top">
<p class="MsoNormal"><a href="http://info.marklogic.com/gartner-odbms.html"><span></span></a><span><p></p></span></p>
</td>
</tr>
</table>
</div>
<div>
<div></div>
<div></div>
</div>
</div>
</div>
</div>
</div>
Paul M | 16 Dec 16:31 2014
Picon

Re: [MarkLogic Dev General] Visualisation tool (vidhya Narayanan)

I use Graphviz to view subset of triples I load into Marklogic. Then, I created some simple simple xquery with sem:sparql to create the directed graph text for Graphviz.

A "report" of all triples might get busy and messy. There are some interactive javascript libraries you could put in front of MarkLogic.

Sincerely,
Paul

From: "general-request-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO@public.gmane.org" <general-request-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO@public.gmane.org>
To: general-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO@public.gmane.org
Sent: Monday, December 15, 2014 10:34 AM
Subject: General Digest, Vol 126, Issue 27

Send General mailing list submissions to
    general-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO@public.gmane.org

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
    general-request-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO@public.gmane.org

You can reach the person managing the list at
    general-owner-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO@public.gmane.org

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


Today's Topics:

  1. Visualisation tool (vidhya Narayanan)
  2. Stemming/diacritics (ville-UYAHkC4POybHOG6cAo2yLw@public.gmane.org)
  3. Re: Stemming/diacritics (Mary Holstege)
  4. Problem Importing MarkLogic modules from    the REST API
      (Fabian Jaramillo)


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

Message: 1
Date: Mon, 15 Dec 2014 12:59:28 +0530
From: vidhya Narayanan <sreehvidhya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: [MarkLogic Dev General] Visualisation tool
To: general-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO@public.gmane.org
Message-ID:
    <CAFWBRBbeUu1GKZv7n9EE=KEH0m=tvvEj_JE+Rfn6EVHb8vAhyg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Content-Type: text/plain; charset=UTF-8

Hi,

We are working on a Smart Contetn POC. We have  loaded our data in the
form of triples in Triple store.

We are in need of a visualisation tool to render the persisted data
from Triplestore as a report in a simple graphical view which will
describe us the relationship between entities.

Kindly suggest us a visualisation tool compatible with ML using which
we can acheive this.

--
Regards,
Sree Vidhya

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

_______________________________________________
General mailing list
General-ld4jwAGwUXTgXEvjvSGRgOakQAOPZ2ln@public.gmane.orgm
http://developer.marklogic.com/mailman/listinfo/general


End of General Digest, Vol 126, Issue 27
****************************************


<div><div>
<div dir="ltr"><span>I use Graphviz to view subset of triples I load into Marklogic. Then, I created some simple simple xquery with sem:sparql to create the directed graph text for Graphviz.</span></div>
<div dir="ltr">
<br><span></span>
</div>
<div dir="ltr"><span>A "report" of all triples might get busy and messy. There are some interactive javascript libraries you could put in front of MarkLogic.</span></div>
<div dir="ltr">
<br><span></span>
</div>
<div dir="ltr"><span>Sincerely, <br></span></div>
<div dir="ltr"><span>Paul</span></div>
<br><div> <div> <div dir="ltr">  <span>From:</span> "general-request@..." &lt;general-request@...&gt;<br><span>To:</span> general@... <br><span>Sent:</span> Monday, December 15, 2014 10:34 AM<br><span>Subject:</span> General Digest, Vol 126, Issue 27<br> </div> <div class="y_msg_container">
<br>Send General mailing list submissions to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:general@..." href="mailto:general@...gic.com">general@...</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>&nbsp;&nbsp;&nbsp; <a href="http://developer.marklogic.com/mailman/listinfo/general" target="_blank">http://developer.marklogic.com/mailman/listinfo/general</a><br>or, via email, send a message with subject or body 'help' to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:general-request@..." href="mailto:general-request@...">general-request@...</a><br><br>You can reach the person managing the list at<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:general-owner@..." href="mailto:general-owner@...c.com">general-owner@...</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of General digest..."<br><br><br>Today's Topics:<br><br>&nbsp;  1. Visualisation tool (vidhya Narayanan)<br>&nbsp;  2. Stemming/diacritics (<a ymailto="mailto:ville@..." href="mailto:ville@...">ville@...</a>)<br>&nbsp;  3. Re: Stemming/diacritics (Mary Holstege)<br>&nbsp;  4. Problem Importing MarkLogic modules from&nbsp;&nbsp;&nbsp; the REST API<br>&nbsp; &nbsp; &nbsp; (Fabian Jaramillo)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Mon, 15 Dec 2014 12:59:28 +0530<br>From: vidhya Narayanan &lt;<a ymailto="mailto:sreehvidhya@..." href="mailto:sreehvidhya@...">sreehvidhya@...</a>&gt;<br>Subject: [MarkLogic Dev General] Visualisation tool<br>To: <a ymailto="mailto:general <at> developer.marklogic.com" href="mailto:general@...">general@...</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;CAFWBRBbeUu1GKZv7n9EE=KEH0m=tvvEj_JE+<a ymailto="mailto:Rfn6EVHb8vAhyg@..." href="mailto:Rfn6EVHb8vAhyg@...">Rfn6EVHb8vAhyg@...</a>&gt;<br>Content-Type: text/plain; charset=UTF-8<br><br>Hi,<br><br>We are working on a Smart Contetn POC. We have&nbsp; loaded our data in the<br>form of triples in Triple store.<br><br>We are in need of a visualisation tool to render the persisted data<br>from Triplestore as a report in a simple graphical view which will<br>describe us the relationship between entities.<br><br>Kindly suggest us a visualisation tool compatible with ML using which<br>we can acheive this.<br><br>-- <br>Regards,<br>Sree Vidhya<br><br>---------------------------<br><br>_______________________________________________<br>General mailing list<br><a ymailto="mailto:General@..." href="mailto:General@...">General@...m</a><br><a href="http://developer.marklogic.com/mailman/listinfo/general" target="_blank">http://developer.marklogic.com/mailman/listinfo/general</a><br><br><br>End of General Digest, Vol 126, Issue 27<br>****************************************<br><br><br>
</div> </div> </div>  </div></div>
ville | 16 Dec 09:13 2014
Picon

Re: [MarkLogic Dev General] Stemming/diacritics

  Forgot to send this to the list, sorry about that.

In addition to what is below, one more question: can we do multilanguage 
searches? We have content in multiple languages, and the end user is 
searching with keywords or phrases, and we'd like to hit all content, 
even if we specify certain language for the query (for stemming 
purposes). Is this possible? Or do we need to do a query, containing all 
the terms / phrases in all the languages we support to get all the 
possible results?

(The other question, pasted here from below was "I'll confirm once more 
that there is no way to override in configuration that we'd want the 
stemming to be case insensitive, is that right?")

Ville

------ Original Message ------
From: ville <at> tilaton.fi
To: "Mary Holstege" <mary.holstege <at> marklogic.com>
Sent: 16.12.2014 8:48:54
Subject: Re[2]: [MarkLogic Dev General] Stemming/diacritics

>  Hi Mary,
>
>thank you for the help, we'll have to evaluate our options with the 
>client and decide how to tackle this one. I'll confirm once more that 
>there is no way to override in configuration that we'd want the 
>stemming to be case insensitive, is that right? (We know it would 
>result in false positives.)
>
>Ville
>
>------ Original Message ------
>From: "Mary Holstege" <mary.holstege <at> marklogic.com>
>To: "MarkLogic Developer Discussion" <general <at> developer.marklogic.com>; 
>"ville <at> tilaton.fi" <ville <at> tilaton.fi>
>Sent: 15.12.2014 17:33:36
>Subject: Re: [MarkLogic Dev General] Stemming/diacritics
>
>>On Mon, 15 Dec 2014 02:31:51 -0800, ville <at> tilaton.fi 
>><ville <at> tilaton.fi> wrote:
>>
>>>Hi
>>>
>>>we're trying to build a search that would find all words müller, 
>>>muller and
>>>mueller using any of the three words. We've got müller and muller 
>>>working as
>>>expected, but can't get mueller to play nice. (Or other umlauts 
>>>flattened with
>>>ae, ue oe etc.)
>>>
>>>What would be the easiest way to achieve this?
>>>
>>>Ville
>>
>>Stemming is case-sensitive. In this case, the German word is a noun 
>>and therefore is spelled with a capital letter, so "Mueller" will stem 
>>to "Müller" and you would get a match for that. If the content or 
>>query is all lower case, the stemmer doesn't recognize it as a word 
>>and so "mueller" just stems to "mueller" and so you don't get a match.
>>
>>If this is just an issue for a handful of words (unlikely in this 
>>case, but just in case), you could add "mueller" to your client 
>>dictionary so it stems the way you want it to. Your other option is 
>>some kind of query expansion. For this particular case I think the 
>>easiest thing to do would be to turn a search for "mueller" into a 
>>search for "mueller" or "Mueller".
>>
>>Note that for verbs with umlauts (or other word classes spelled with 
>>lowercase in German) this wouldn't be necessary.
>>
>>You can check how stemming is handling various words using cts:stem, 
>>e.g.
>>
>>cts:stem("Mueller","de")
>>
>>//Mary

_______________________________________________
General mailing list
General <at> developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general
Blessing N | 15 Dec 17:39 2014
Picon

[MarkLogic Dev General] Apply query boosting based on attribute value

Hi,

I have a scenario where the query boosting has to be applied based on
an attribute value in the record. Consider the following records

<record>
<words>
<word>psychology</word>
<word>Health</word>
<word>Science</word>
</words>
<boostedwords>
<boostedword isBoosted="false">Science</boostedword>
</boostedwords>
</record>

<record>
<words>
<word>Dream</word>
<word>Health</word>
<word>Science</word>
</words>
<boostedwords>
<boostedword isBoosted="true">Science</boostedword>
</boostedwords>
</record>

The constraint and query is as follows

declare variable $CONSTRAINT-OPTIONS := <options
xmlns="http://marklogic.com/appservices/search">
                                       <constraint name="boostedword">
                                    <value type="xs:string" facet="false">
                                    <element ns="" name="boostedword"/>
                                             <weight>50</weight>
                                  </value>
                                  </constraint>
                                       <constraint name="word">
                                    <value type="xs:string" facet="false">
                                   <element ns="" name="word"/>
                                         </value>
                                 </constraint>
</options>;

let $options := <options xmlns="http://marklogic.com/appservices/search">
                   {$CONSTRAINT-OPTIONS/element(),
                     <transform-results apply="raw">
                     </transform-results>}
                </options>
 let $start:=0
 let $end:=10
 let $query := 'word:Science OR boostedword:Science'
 let $q := search:search($query,$options,$start,$end)
 return $q

When this query is executed the score of both the records are high due
to "boostedword" constraint which is expected.
My requirement is that the record score boosting has to apply only for
records having  <at> isBoosted = true. For records with  <at> isBoosted=false
the score should not be boosted.

Can this be achieved in constructing a query with conditions?

Thanks,
Blessing.
Maisnam Ns | 15 Dec 17:16 2014
Picon

[MarkLogic Dev General] MarkLogic use case

Hi,

 I have to insert data that comes in various formats xml, csv ,json , bib,images and pdf.
For whatever I know , I can use xml as it is and create range index on elements . But can someone help me whether pdf , json and bib can have range indexes. I am of the view that these formats need to be converted to xml and then create the range indexes.

Is this a correct statement? How can I create range indexes on pdf , json and csv without converting to xml

Regards
ns
<div><div dir="ltr">
<div>
<div>
<div>
<div><div>
<div>Hi,<br><br>
</div>&nbsp;I have to insert data that comes in various formats xml, csv ,json , bib,images and pdf.<br>
</div></div>For whatever I know , I can use xml as it is and create range index on elements . But can someone help me whether pdf , json and bib can have range indexes. I am of the view that these formats need to be converted to xml and then create the range indexes.<br><br>
</div>Is this a correct statement? How can I create range indexes on pdf , json and csv without converting to xml<br><br>
</div>Regards<br>
</div>ns<br>
</div></div>
Fabian Jaramillo | 15 Dec 16:34 2014

[MarkLogic Dev General] Problem Importing MarkLogic modules from the REST API

Hello,

I’m trying to use the module JSON (http://marklogic.com/xdmp/json) from one Extension REST API and I get an error XDMP-MODNOTFOUND, but if I use the admin user to deploy everything works, somebody knows what is the permission that I have to add to my default user to allow use these kind of modules?

Thanks,

FABIAN JARAMILLO  Software Architect

Yuxi Pacific LLC, 

Cr 48 N 20-34, Centro Empresarial Ciudad del Río, Oficina 1014, Medellín, Colombia.
Office:  +19177252076

Mobile: (57) 300-209-8933
Skype: yuxi-fabian

<div>Hello,<div class=""><br class=""></div>
<div class="">I&rsquo;m trying to use the module JSON (<a href="http://marklogic.com/xdmp/json" class="">http://marklogic.com/xdmp/json</a>) from one Extension REST API and I get an error&nbsp;XDMP-MODNOTFOUND, but if I use the admin user to deploy everything works, somebody knows what is the permission that I have to add to my default user to allow use these kind of modules?</div>
<div class=""><br class=""></div>
<div class="">Thanks,</div>
<div class="">
<br class=""><div apple-content-edited="true" class="">
<div class="">
<div class="">FABIAN JARAMILLO&nbsp; Software Architect<p class=""></p>
</div>
<div class="">Yuxi Pacific LLC,&nbsp;<p class=""></p>Cr 48 N 20-34, Centro Empresarial Ciudad del R&iacute;o, Oficina 1014, Medell&iacute;n, Colombia.</div>
<div class="">
<a href="mailto:natalia.jones@..." class="">fabian.jaramillo@...</a><p class=""></p>
</div>
<div class="">Office:&nbsp; +19177252076<p class=""></p>
</div>
<div class="">Mobile: (57) 300-209-8933</div>
<div class="">Skype: yuxi-fabian</div>
<div class="">
<span><a href="http://www.twitter.com/YuxiPacific" class=""><br class="Apple-interchange-newline"><span><span><span><span><span><span></span></span></span></span></span></span></a><a href="http://www.twitter.com/YuxiPacific" class=""><span><span class="">&nbsp;</span><span></span></span></a><a href="http://www.linkedin.com/company/yuxi-pacific?trk=company_name" class=""><span><span><span><span><span></span></span></span></span></span></a><a href="http://www.linkedin.com/company/yuxi-pacific?trk=company_name" class=""><span><span>&nbsp;</span></span></a><a href="http://www.youtube.com/user/yuxipacific" class=""><span><span><span><span><span></span><span></span></span></span></span></span></a><a href="http://www.youtube.com/user/yuxipacific" class=""><span><span><span><span></span></span></span></span></a><a href="http://www.youtube.com/user/yuxipacific" class=""><span><span><span></span></span></span></a><a href="http://www.youtube.com/user/yuxipacific" class=""><span class="">&nbsp;</span></a></span><span><span><span><a href="http://www.facebook.com/yuxipacific?fref=ts" class=""><span><span></span></span></a><a href="http://www.facebook.com/yuxipacific?fref=ts" class=""><br class="Apple-interchange-newline"></a><a href="http://www.yuxipacific.com" class=""><br class=""><span><span><span></span>
</span></span></a></span></span></span>
</div>
<a href="http://www.yuxipacific.com" class="">
</a>
</div>
</div>
<br class="">
</div>
</div>
ville | 15 Dec 11:31 2014
Picon

[MarkLogic Dev General] Stemming/diacritics

Hi

we're trying to build a search that would find all words müller, muller and mueller using any of the three words. We've got müller and muller working as expected, but can't get mueller to play nice. (Or other umlauts flattened with ae, ue oe etc.)
 
What would be the easiest way to achieve this?
 
Ville
<div>
<div>Hi<br><br>we're trying to build a search that would&nbsp;find all words m&uuml;ller, muller and mueller using any of the three words. We've got m&uuml;ller and muller working as expected, but can't get mueller to play nice. (Or other umlauts flattened with ae, ue oe etc.)</div>
<div>&nbsp;</div>
<div>What would be the easiest way to achieve this?</div>
<div>&nbsp;</div>
<div>Ville</div>
</div>
vidhya Narayanan | 15 Dec 08:29 2014
Picon

[MarkLogic Dev General] Visualisation tool

Hi,

We are working on a Smart Contetn POC. We have  loaded our data in the
form of triples in Triple store.

We are in need of a visualisation tool to render the persisted data
from Triplestore as a report in a simple graphical view which will
describe us the relationship between entities.

Kindly suggest us a visualisation tool compatible with ML using which
we can acheive this.

--

-- 
Regards,
Sree Vidhya

Gmane