Re: [MarkLogic Dev General] Full time employment with TCS - Marklogic Developer - Washington DC

2016-08-18 Thread shruti kapoor
Hi Swapnil

Does TCS sponsor work visa or allow remote work?

-Shruti

On Thu, Aug 18, 2016 at 10:26 PM, Swapnil Mahadik 
wrote:

> Hello,
>
>
>
> We have below full time opportunity. If you are interested, Please share
> your updated CV along with Salary expectations.
>
>
>
> Title : Marklogic Developer
>
> Number of positions: 3
>
> Location: Washington DC
>
> Type : Full time employment with TCS (www.tcs.com)
>
> Compensation: annual Salary + Benefits
>
>
>
> • 7+ years of design and development of  experience on Search domain and
> Marklogic
>
> • XML Canonical Data Modelling
>
> • XQuery (MarkLogic)
>
> • JavaScript (MarkLogic)
>
> • Strong understanding of Object Oriented technology and standard Java
> development frameworks
>
> • Strong understanding of ETL process
>
> • Extensive knowledge in Java, JDBC, Spring, Spring Security and XML
>
> • Experience in writing SQL
>
> • Use MarkLogic REST APIs
>
> • Write XPath expressions
>
> • Write SPARQL queries against RDF triple data
>
>
>
>
>
>
>
> Thanks,
>
> _ _
>
>
>
> Swapnil Mahadik
>
> ServSolid Inc
>
> Phone: 703 652 7633
>
> Fax: 877 778 3203
>
> *www.ServSolid.com <http://www.servsolid.com/>*
>
>
>
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 

Regards,
*Shruti Kapoor*
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Javascript coding help on ML 8

2016-02-24 Thread shruti kapoor
Thanks Dave.

On Wed, Feb 24, 2016 at 11:40 PM, Dave Cassel 
wrote:

> For making modules, there's a description of this at the
> Global-Object.require page (
> http://docs.marklogic.com/Global-Object.require). Example:
>
>  lib.sjs:
>   var PI = Math.PI;
>   exports.area = function area(r) {
> return PI * r * r;
>   };
>
>   Test.js:
>   var circle = require("lib");
>   circle.area(2);
>
>
> Key point is to set up the exports global with references to functions you
> want to export. You can then access these by requiring them in another
> file.
>
> For specifying datatypes in function arguments and returns, the JavaScript
> language doesn't support this.
>
> For functions where this is particularly important, consider leaving that
> code in XQuery and using it in JavaScript. You can call XQuery from
> JavaScript and JavaScript from XQuery.
> http://developer.marklogic.com/learn/sjs/working-together
>
> --
> Dave Cassel <http://davidcassel.net>, @dmcassel
> <https://twitter.com/dmcassel>
> Technical Community Manager
> MarkLogic Corporation <http://www.marklogic.com/>
> http://developer.marklogic.com/
>
>
> From:  on behalf of shruti
> kapoor 
> Reply-To: MarkLogic Developer Discussion 
> Date: Wednesday, February 24, 2016 at 5:52 AM
> To: MarkLogic Developer Discussion 
> Subject: [MarkLogic Dev General] Javascript coding help on ML 8
>
> Hi all
>
> We have upgraded from ML 7 to 8 and want to replace the existing xqy code
> with javascript. But I am facing the following problems :
>
> 1) How to make modules in JS
>
> 2) Specifying datatype in function arguments and return type.
>
> Any help is much appreciated!
>
> Thanks
> Shruti Kapoor
>
>
> ___________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 

Regards,
*Shruti Kapoor*
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Javascript coding help on ML 8

2016-02-24 Thread shruti kapoor
Hi all

We have upgraded from ML 7 to 8 and want to replace the existing xqy code
with javascript. But I am facing the following problems :

1) How to make modules in JS

2) Specifying datatype in function arguments and return type.

Any help is much appreciated!

Thanks
Shruti Kapoor
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Format Date in SQL query on Marklogic 7

2015-10-28 Thread shruti kapoor
Hi all

I have an xml like

20120101
ABC



I am using ODBC server. So I have created an element range index on
admissionDate and added in my SQL view.

I need to display the date in the format 2012-01-01.

Any help is appreciated.

-- 

Regards,
*Shruti Kapoor*
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Query xmls in Marklogic through Tableau (No tables created)

2015-10-19 Thread shruti kapoor
Thanks so much Rob.
On 20 Oct 2015 12:03, "Rob Szkutak"  wrote:

> Hi,
>
> No.
>
> When using ODBC the only way to access your data is via SQL views you've
> built in MarkLogic. See our SQL quickstart guide
> https://docs.marklogic.com/guide/sql/setup and our Tableau ODBC
> documentation https://docs.marklogic.com/guide/sql/tableau for more
> information.
>
> Best,
> Rob
>
> Rob Szkutak
> Associate Consultant
> MarkLogic Corporation
> rob.szku...@marklogic.com
> Cell +1.716.562.8464
> www.marklogic.com
>
> --
> *From:* general-boun...@developer.marklogic.com [
> general-boun...@developer.marklogic.com] on behalf of shruti kapoor [
> shrutikapoor@gmail.com]
> *Sent:* Monday, October 19, 2015 10:52 PM
> *To:* MarkLogic Developer Discussion
> *Subject:* Re: [MarkLogic Dev General] Query xmls in Marklogic through
> Tableau (No tables created)
>
> Thanks for the suggestion Rob. I will try this approach, but still is it
> possible to do it through the Marklogic data connector on Tableau.
>
> Thanks
> Shruti
> On 20 Oct 2015 11:26, "Rob Szkutak"  wrote:
>
>> Hello,
>>
>> You could expose your xQuery function through an HTTP server and then
>> point the Tableau Web Data Connector to it:
>> http://www.tableau.com/web-data-connector
>>
>> Best,
>> Rob
>>
>> Rob Szkutak
>> Associate Consultant
>> MarkLogic Corporation
>> rob.szku...@marklogic.com
>> Cell +1.716.562.8464
>> www.marklogic.com
>>
>> --
>> *From:* general-boun...@developer.marklogic.com [
>> general-boun...@developer.marklogic.com] on behalf of shruti kapoor [
>> shrutikapoor@gmail.com]
>> *Sent:* Monday, October 19, 2015 10:15 PM
>> *To:* MarkLogic Developer Discussion
>> *Subject:* [MarkLogic Dev General] Query xmls in Marklogic through
>> Tableau (No tables created)
>>
>> ​Hi All
>>
>> I am trying to access an xquery function( which outputs a simple data)
>> through Tableau. I have created a Marklogic- ODBC server and connected it
>> to Tableau, but I don't have any tables in my database.
>> So I am sort of stuck and have no idea how to proceed further.
>> Here is a link to the question I had posted on Tableau forum -
>> http://community.tableau.com/thread/191950
>>
>> Any help is appreciated.
>>
>> Thanks
>> Shruti Kapoor
>>
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Query xmls in Marklogic through Tableau (No tables created)

2015-10-19 Thread shruti kapoor
Thanks for the suggestion Rob. I will try this approach, but still is it
possible to do it through the Marklogic data connector on Tableau.

Thanks
Shruti
On 20 Oct 2015 11:26, "Rob Szkutak"  wrote:

> Hello,
>
> You could expose your xQuery function through an HTTP server and then
> point the Tableau Web Data Connector to it:
> http://www.tableau.com/web-data-connector
>
> Best,
> Rob
>
> Rob Szkutak
> Associate Consultant
> MarkLogic Corporation
> rob.szku...@marklogic.com
> Cell +1.716.562.8464
> www.marklogic.com
>
> --
> *From:* general-boun...@developer.marklogic.com [
> general-boun...@developer.marklogic.com] on behalf of shruti kapoor [
> shrutikapoor@gmail.com]
> *Sent:* Monday, October 19, 2015 10:15 PM
> *To:* MarkLogic Developer Discussion
> *Subject:* [MarkLogic Dev General] Query xmls in Marklogic through
> Tableau (No tables created)
>
> ​Hi All
>
> I am trying to access an xquery function( which outputs a simple data)
> through Tableau. I have created a Marklogic- ODBC server and connected it
> to Tableau, but I don't have any tables in my database.
> So I am sort of stuck and have no idea how to proceed further.
> Here is a link to the question I had posted on Tableau forum -
> http://community.tableau.com/thread/191950
>
> Any help is appreciated.
>
> Thanks
> Shruti Kapoor
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Query xmls in Marklogic through Tableau (No tables created)

2015-10-19 Thread shruti kapoor
​Hi All

I am trying to access an xquery function( which outputs a simple data)
through Tableau. I have created a Marklogic- ODBC server and connected it
to Tableau, but I don't have any tables in my database.
So I am sort of stuck and have no idea how to proceed further.
Here is a link to the question I had posted on Tableau forum -
http://community.tableau.com/thread/191950

Any help is appreciated.

Thanks
Shruti Kapoor
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Difference in output of sem:sparql-values and sem:sqarql

2015-07-28 Thread shruti kapoor
Hi Devesh,

I believe the reason for this is explained in the API documentation.

sem:sparql-values : Performs a join (SPARQL style, natural join) between
the bindings returned from the SELECT expression and the bindings passed in
as an argument, therefore the results reflect this join.

sem:sparql : Return a solution as a sequence of map objects in the form of
a table, where each map represents a set of bindings that satisfies the
query.

Hope this helps!

Thanks
Shruti

On Mon, Jul 27, 2015 at 9:59 PM, Tyagi, Devesh  wrote:

>  Hi,
>
>
>  let $params := map:new(map:entry("predicate",sem:iri("
> http://www.bsi.org/predicates/hasTaxonomyName";)))
>
> sem:sparql-values("select ?subject ?predicate ?object where {?subject
> ?predicate ?object}", $params)
>
>
>  returns 3 columns namely (subject, predicate, object)
>
>
>  where as
>
> sem:sparql-values("select ?subject ?predicate ?object where {?subject
> ?predicate ?object}", $params)
>
>
>  returns only two columns namely (subject, object)
>
>
>  I would like to know why is the change in the behavior, since I am
> mentioning 3 columns in the select query.
>
>
>  Regards,
>
> Devesh
>  "This e-mail and any attachments transmitted with it are for the sole use
> of the intended recipient(s) and may contain confidential , proprietary or
> privileged information. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of the original
> message. Any unauthorized review, use, disclosure, dissemination,
> forwarding, printing or copying of this e-mail or any action taken in
> reliance on this e-mail is strictly prohibited and may be unlawful."
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 

Regards,
*Shruti Kapoor*
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Reduce the query execution time for cts:value-tuples

2015-07-05 Thread shruti kapoor
Hi Geert,

I need all 30k results and since the response is in json array, I convert
it into a map first then each map goes through some data enrichment to
finally generate an html table.
Could I useany other search api ?

Thanks
Shruti
On 6 Jul 2015 01:50, "Geert Josten"  wrote:

>  Hi Shruti,
>
>  I think that you will find that if you wrap the cts:value-tuples in a
> count that it will run much faster, maybe even in sub-sec. Most time is
> consumed by serializing 30k json arrays. Do you really need all 30k items,
> or would top 20 be sufficient?
>
>  Cheers,
> Geert
>
>   From: shruti kapoor 
> Reply-To: MarkLogic Developer Discussion 
> Date: Sunday, July 5, 2015 at 11:22 AM
> To: MarkLogic Developer Discussion 
> Subject: [MarkLogic Dev General] Reduce the query execution time for
> cts:value-tuples
>
>
> Hi,
>
>  I have a cts:value-tuples() query which fetches the json array result.
> The query runs on aprroximately 3lac xmls and the result set contains about
> 30k elements in json array.
> It takes about 48sec to run this query.
>
>  Is there a way to reduce its execution time.
>
>  I have used range indexes for references and even enabled "concurrent".
>
> --
>
> Regards,
> *Shruti Kapoor*
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Reduce the query execution time for cts:value-tuples

2015-07-05 Thread shruti kapoor
Hi,

I have a cts:value-tuples() query which fetches the json array result. The
query runs on aprroximately 3lac xmls and the result set contains about 30k
elements in json array.
It takes about 48sec to run this query.

Is there a way to reduce its execution time.

I have used range indexes for references and even enabled "concurrent".

-- 

Regards,
*Shruti Kapoor*
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Exact match in search:search implementation

2015-01-13 Thread shruti kapoor
Hi Erik,

I am calculating the total number of results by counting the
search:results. For the search facets - the count attribute for each
search:facet-value is used, which is not in sync with the search-results
count.
What could I do create facets of only the filtered search results.


Thanks
Shruti Kapoor

On Tue, Jan 13, 2015 at 8:44 PM, Erik Hennum 
wrote:

>  Hi, Shruti:
>
> In general, the total is an estimate based on the indexes which will be
> exactly accurate only if the indexes are turned so the search can run
> unfiltered. [1]
>
> To generate an accurate count for a filtered search, the Search API would
> have to retrieve and count every document, which would not scale.
>
> Can you expand on how you're using the total?  You may be able to solve
> the problem in other ways. For instance, you can terminate paging on the
> first page with fewer than page-length results.
>
>
>   Erik Hennum
>
> [1]  The exception is that, starting in 8.0, the Search API calculates the
> total on the last page based on the number of documents paged.
>
>
>--
> *From:* general-boun...@developer.marklogic.com [
> general-boun...@developer.marklogic.com] on behalf of shruti kapoor [
> shrutikapoor@gmail.com]
> *Sent:* Tuesday, January 13, 2015 2:00 AM
> *To:* MarkLogic Developer Discussion
> *Subject:* Re: [MarkLogic Dev General] Exact match in search:search
> implementation
>
>   Hi
>
>  Thanks Peter & David. However I have one more problem.
> When I apply filtered, the total search
> result count and the facet count do not match. How can I return the facet
> count on the basis of the filtered search results?
>
>
>
>  Thanks
> Shruti Kapoor
>
> On Tue, Jan 6, 2015 at 3:48 PM, David Ennis 
> wrote:
>
>>  HI.
>>
>>  Peter, you are correct in what was missing in the search.  However, you
>> are right in being confused about the search:qtext.
>>
>>  brace yourself..
>>
>>  Another query console gotcha...  Using 'auto' formats it as html and
>> removes the extra whitespace..  When viewed in raw format, your
>> search:report reflects the double space and verifies your solution:
>>
>>  Your example expanded to show search parse as well yields the following
>> (expected) whitespace when viewed in raw format:
>>
>>  xquery version "1.0-ml";
>> declare namespace host = "http://marklogic.com/xdmp/status/host";;
>> import module namespace search = "http://marklogic.com/appservices/search
>> "
>>  at "/MarkLogic/appservices/search/search.xqy";
>>
>>  let $options := http://marklogic.com/appservices/search
>> ">
>>   
>> case-sensitive
>> diacritic-sensitive
>> punctuation-sensitive
>> whitespace-sensitive
>> unstemmed
>> unwildcarded
>>   
>>   true
>>   filtered
>> 
>>
>>  return (
>>   search:search('"Hello  world"',$options),
>>   search:parse('"Hello  world"',$options)
>> )
>>
>>  > page-length="10" xmlns:search="http://marklogic.com/appservices/search";>
>>   "Hello  world"
>>   (cts:search(fn:collection(), 
>> cts:word-query("Hello  world", 
>> ("case-sensitive","diacritic-sensitive","punctuation-sensitive","whitespace-sensitive","unstemmed","unwildcarded","lang=en"),
>>  1), ("filtered",cts:score-order("descending")), 1))[1 to 10]
>>   
>> PT0.00387S
>> PT0.5S
>> PT0S
>> PT0.018433S
>>   
>> 
>> http://marklogic.com/cts";>
>>   Hello  world
>>   case-sensitive
>>   diacritic-sensitive
>>   punctuation-sensitive
>>   whitespace-sensitive
>>   unstemmed
>>   unwildcarded
>> 
>>
>>
>>
>>
>>
>>
>>
>>  Kind Regards,
>>  David Ennis
>>
>>
>>  David Ennis
>> *Content Engineer*
>>
>> [image: HintTech]  <http://www.hinttech.com/>
>> Mastering the value of content
>> creative | technology | content
>>
>> Delftechpark 37i
>> 2628 XJ Delft
>> The Netherlands
>> T: +31 88 268 25 00
>> M: +31 63 091 72 80
>>
>> [image: http://www.hinttech.com] <http://www.hinttech.com>
>> <https://twitter.com/HintTech>  <http://www.facebook.com/HintTech>

Re: [MarkLogic Dev General] Exact match in search:search implementation

2015-01-13 Thread shruti kapoor
Hi

Thanks Peter & David. However I have one more problem.
When I apply filtered, the total search
result count and the facet count do not match. How can I return the facet
count on the basis of the filtered search results?



Thanks
Shruti Kapoor

On Tue, Jan 6, 2015 at 3:48 PM, David Ennis 
wrote:

> HI.
>
> Peter, you are correct in what was missing in the search.  However, you
> are right in being confused about the search:qtext.
>
> brace yourself..
>
> Another query console gotcha...  Using 'auto' formats it as html and
> removes the extra whitespace..  When viewed in raw format, your
> search:report reflects the double space and verifies your solution:
>
> Your example expanded to show search parse as well yields the following
> (expected) whitespace when viewed in raw format:
>
> xquery version "1.0-ml";
> declare namespace host = "http://marklogic.com/xdmp/status/host";;
> import module namespace search = "http://marklogic.com/appservices/search";
>  at "/MarkLogic/appservices/search/search.xqy";
>
> let $options := http://marklogic.com/appservices/search";>
>   
> case-sensitive
> diacritic-sensitive
> punctuation-sensitive
> whitespace-sensitive
> unstemmed
> unwildcarded
>   
>   true
>   filtered
> 
>
> return (
>   search:search('"Hello  world"',$options),
>   search:parse('"Hello  world"',$options)
> )
>
>  page-length="10" xmlns:search="http://marklogic.com/appservices/search";>
>   "Hello  world"
>   (cts:search(fn:collection(), 
> cts:word-query("Hello  world", 
> ("case-sensitive","diacritic-sensitive","punctuation-sensitive","whitespace-sensitive","unstemmed","unwildcarded","lang=en"),
>  1), ("filtered",cts:score-order("descending")), 1))[1 to 10]
>   
> PT0.00387S
> PT0.5S
> PT0S
> PT0.018433S
>   
> 
> http://marklogic.com/cts";>
>   Hello  world
>   case-sensitive
>   diacritic-sensitive
>   punctuation-sensitive
>   whitespace-sensitive
>   unstemmed
>   unwildcarded
> 
>
>
>
>
>
>
>
> Kind Regards,
> David Ennis
>
>
> David Ennis
> *Content Engineer*
>
> [image: HintTech]  <http://www.hinttech.com/>
> Mastering the value of content
> creative | technology | content
>
> Delftechpark 37i
> 2628 XJ Delft
> The Netherlands
> T: +31 88 268 25 00
> M: +31 63 091 72 80
>
> [image: http://www.hinttech.com] <http://www.hinttech.com>
> <https://twitter.com/HintTech>  <http://www.facebook.com/HintTech>
> <http://www.linkedin.com/company/HintTech>
>
> On 6 January 2015 at 10:06, Peter Kester 
> wrote:
>
>>   Hi Shruti,
>>
>>  MarkLogic does what it is supposed to do. See below sample
>>
>>  xquery version "1.0-ml";
>>
>>  xdmp:document-insert("/foo.xml", Hello  world);
>> xdmp:document-insert("/foo2.xml", Hello world);
>>
>>  xquery version "1.0-ml";
>> declare namespace host = "http://marklogic.com/xdmp/status/host";;
>> import module namespace search = "http://marklogic.com/appservices/search
>> "
>>  at "/MarkLogic/appservices/search/search.xqy";
>>
>>  let $options := http://marklogic.com/appservices/search
>> ">
>>   
>> case-sensitive
>> diacritic-sensitive
>> punctuation-sensitive
>> whitespace-sensitive
>> unstemmed
>> unwildcarded
>>   
>>   true
>>   filtered
>> 
>>
>> return search:search('"Hello  world"',$options)
>>
>>  This will give you:
>> > ="10" xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns=""xmlns:search="
>> http://marklogic.com/appservices/search";>
>>  > ="47104" confidence="0.5532626" fitness="0.6769772">
>>  
>>  
>>  
>>  Hello world
>>  
>>  
>>  
>>  
>>  
>>  "Hello world"
>>  
>>  
>>  (cts:search(fn:collection(), cts:word-query("Hello world",
>> ("case-sensitive","diacritic-sensitive","punctuation-sensitive","whitespace-sensitive","u

[MarkLogic Dev General] Exact match in search:search implementation

2015-01-05 Thread shruti kapoor
Hi all,

I want to search a phrase in marklogic, but it normalizes the space before
searching it.

For example : my search term is: "Test  Abc"(Notice there are 2 spaces
between the words)
Also, I have passed the search terms in quote.

I have added the following option in search:search for this, but it did not
produce the desired result:

http://marklogic.com/appservices/search";>
case-sensitive
diacritic-sensitive
punctuation-sensitive
whitespace-sensitive
unstemmed
unwildcarded
.

But the qtext is always "Test Abc".

Any help would be appreciated.
-- 

Regards,
*Shruti Kapoor*
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Is there any way to restrict Marklogic search on specific version of the document.?

2014-12-02 Thread shruti kapoor
Hi David,

Yes i mean the document  without  a version  label, but i need to
implement  this in search:search API.
On 2 Dec 2014 21:10, "David Lee"  wrote:

>  If by 'current' version you mean the document without a version label
> (i.e. latest document),
>
> use
>
> https://docs.marklogic.com/dls:documents-query
>
>
>
>
>
> Example search for words Pepsi and Coke in the latest documents
>
>
>
> xquery version "1.0-ml";
>
>
>
>   import module namespace dls = "http://marklogic.com/xdmp/dls";
>
>   at "/MarkLogic/dls.xqy";
>
>
>
>   cts:search(fn:doc(),
>
>cts:and-query(
>
>  (dls:documents-query() ,
>
>cts:word-query("Pepsi",
> ("case-insensitive","diacritic-insensitive","wildcarded","lang=en"), 1),
>
> cts:word-query("Coke",
> ("case-insensitive","diacritic-insensitive","wildcarded","lang=en"), 1) )))
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---------
>
> David Lee
> Lead Engineer
> *Mark**Logic* Corporation
> d...@marklogic.com
> Phone: +1 812-482-5224
>
> Cell:  +1 812-630-7622
> www.marklogic.com
>
>
>
> *From:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *On Behalf Of *shruti kapoor
> *Sent:* Tuesday, December 02, 2014 10:28 AM
> *To:* MarkLogic Developer Discussion
> *Subject:* [MarkLogic Dev General] Is there any way to restrict Marklogic
> search on specific version of the document.?
>
>
>
> Hi all,
>
>
>
>
> I store managed documents into a specific collection in marklogic through
> dls library. I want search to include only current version documents. Is
> there any way to do it using search:search API?
>
> I know how to do it using cts:search(). I know one option is to push old
> versions into different collection and current version into different.
> Search only on collection with current version. For some reasons I don't
> want to do this. Are there any other ways of doing it?
>
>
>
> --
>
> Regards,
> *Shruti Kapoor*
>
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Is there any way to restrict Marklogic search on specific version of the document.?

2014-12-02 Thread shruti kapoor
Hi all,


I store managed documents into a specific collection in marklogic through
dls library. I want search to include only current version documents. Is
there any way to do it using search:search API?

I know how to do it using cts:search(). I know one option is to push old
versions into different collection and current version into different.
Search only on collection with current version. For some reasons I don't
want to do this. Are there any other ways of doing it?

-- 

Regards,
*Shruti Kapoor*
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] dls library

2014-10-06 Thread shruti kapoor
Hi David,

In my application, there are multiple modules like Rsuite, Marklogic which
are connected by REST end points. There is separate layer for
authentication so we donot require multiple users on Marklogic level. But
multiple users need to use multiple versions of same documents that are
stored in Marklogic.

On Mon, Oct 6, 2014 at 12:52 PM, David Ennis 
wrote:

> HI.
>
> The DLS library works on MarkLogic User IDs (in fact, the user id must
> match a user from the system (http://marklogic.com/xdmp/security
> namespace on the userid element is returned in all cases).
>
> If you are not using individual users and need to use DLS, then perhaps
> you need to re-think:
> 1)  Do I need DLS or can I accomplish my needs with business logic.
> 2) Can I use real MarkLogic users in my application?  (you can switch
> users by dynamically logging them in, for instance)
>
> Short of changing either of the above(which I suggest you opt for 2
> above), I see one possible ugly 'hack':  When checking out a document, you
> have the ability to log arbitrary data in the annotation field.  You could
> use this for further tracking.. Another hybrid approach could be using
> collections to assist in understanding which virtual user 'has the
> document' (is it checked out and part of MY collection). But then again, if
> you are adding such logic, you are likely getting away from the core use of
> DLS and I would still suggest 1 or 2 above.
>
>
>
> Kind Regards,
> David Ennis
>
>
> David Ennis
> *Content Engineer*
>
> [image: HintTech]  <http://www.hinttech.com/>
> Mastering the value of content
> creative | technology | content
>
> Delftechpark 37i
> 2628 XJ Delft
> The Netherlands
> T: +31 88 268 25 00
> M: +31 63 091 72 80
>
> [image: http://www.hinttech.com] <http://www.hinttech.com>
> <https://twitter.com/HintTech>  <http://www.facebook.com/HintTech>
> <http://www.linkedin.com/company/HintTech>
>
> On 6 October 2014 09:09, shruti kapoor  wrote:
>
>> Hi all,
>>
>> My application requires me to use a single admin account for multiple
>> users, but how could I allow multiple users to checkout the same document
>> using dls:document-checkout(). I do not need to create multiple users.
>>
>>
>> --
>>
>> Regards,
>> *Shruti Kapoor*
>>
>> *Software Engineer*
>> *Innodata India Pvt. Ltd.*
>>
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 

Regards,
*Shruti Kapoor*

*Software Engineer*
*Innodata India Pvt. Ltd.*

7th floor, Stellar IT Park,

Sector 62, Noida, Uttar Pradesh 201309, India
Cell: (+91) 9990340628

Email: skapo...@innodata.com <http://www.anmsoft.com/>  | Web:
www.innodata.com <http://www.anmsoft.com/>
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] dls library

2014-10-06 Thread shruti kapoor
Hi all,

My application requires me to use a single admin account for multiple
users, but how could I allow multiple users to checkout the same document
using dls:document-checkout(). I do not need to create multiple users.


-- 

Regards,
*Shruti Kapoor*

*Software Engineer*
*Innodata India Pvt. Ltd.*
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Point in time queries

2014-10-02 Thread shruti kapoor
Thanks Mike.
Could you tell me the exact use for point in time queries besides fores
rollover.
On 1 Oct 2014 20:48, "Michael Blakeley"  wrote:

> You don't, not using point-in-time queries.
>
> It sounds like you want version control rather than point-in-time. Take a
> look at DLS: https://docs.marklogic.com/guide/app-dev/dls
>
> -- Mike
>
> On 1 Oct 2014, at 00:15 , Kapoor, Shruti  wrote:
>
> > Hi all,
> >
> > How do I retrieve all the version of the same document(xQuery) if I have
> enables Point in time queries.
> >
> > Thanks and Regards
> > Shruti Kapoor
> > "This e-mail and any attachments transmitted with it are for the sole
> use of the intended recipient(s) and may contain confidential , proprietary
> or privileged information. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of the original
> message. Any unauthorized review, use, disclosure, dissemination,
> forwarding, printing or copying of this e-mail or any action taken in
> reliance on this e-mail is strictly prohibited and may be unlawful."
> ___
> > General mailing list
> > General@developer.marklogic.com
> > http://developer.marklogic.com/mailman/listinfo/general
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general