Re: [MarkLogic Dev General] A question about limiting Marklogic memory and CPU usage.

2016-11-11 Thread Danny Sokolsky
Make sure you have configured swap space appropriately: https://docs.marklogic.com/guide/installation/intro#id_11335 -Danny On Fri, Nov 11, 2016 at 5:32 AM, Yair Etziony wrote: > Hi All > i have a question about ML, this more of DBA or admin question, but i will

Re: [MarkLogic Dev General] Path Range Query

2016-07-05 Thread Danny Sokolsky
Did you try cts:element-value-query?Maybe if you gave an example of your range queries in a search you are using it would be easier to understand what you mean. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor,

Re: [MarkLogic Dev General] Bulk updates (xqsync vs. mlcp)

2016-06-29 Thread Danny Sokolsky
You are correct, Hans, setting a merge timestamp does not disable merges. The downsides to never getting rid of deleted fragments is that your database can grow without bound, without sensible ways to manage it. Point-in-time queries are really meant for relatively short durations. Some of

Re: [MarkLogic Dev General] Mysterious, Dramatic Query Slowdown on Multi-Node Cluster

2016-06-16 Thread Danny Sokolsky
Hi Ron, It is hard to say for sure, but there have been many bug fixes since 8.0-3.2 that can account for some or all of this. Do you have an environment where you can try out the latest (8.0-5.4)? -Danny -Original Message- From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Marklogic Issue with Ligature

2016-06-09 Thread Danny Sokolsky
If you want both to match in this case, why not just create a thesaurus and do an expand on your query? -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Christopher Hamlin Sent: Thursday, June 09, 2016 5:28 AM To: MarkLogic

Re: [MarkLogic Dev General] Regarading REST API

2016-05-27 Thread Danny Sokolsky
Here is a link to the doc for creating a REST instance: http://docs.marklogic.com/guide/rest-dev/service#id_12021 From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Ram shaw Sent: Friday, May 27, 2016 4:29 AM To: MarkLogic Developer

Re: [MarkLogic Dev General] start and end time xquery

2016-05-01 Thread Danny Sokolsky
Try xdmp:elapsed-time(). From: general-boun...@developer.marklogic.com [general-boun...@developer.marklogic.com] on behalf of Asit Nautiyal [asitnauti...@outlook.com] Sent: Sunday, May 01, 2016 12:01 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic

Re: [MarkLogic Dev General] how is ID reported by xdmp:host() created?

2016-03-24 Thread Danny Sokolsky
It is the ID for the host in the config files. That is a random number ID created when that host joined the cluster. If you do a fresh installation on the same machine, you will get a new ID. If you uninstall and then reinstall a new version of MarkLogic (or even the same version), then the

Re: [MarkLogic Dev General] ARM platform? Be a BIG

2016-01-25 Thread Danny Sokolsky
You could put the Node.js client on a Raspberry Pi, then have that talk to a MarkLogic Server sitting in the cloud. That seems like a more sensible architecture to me. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Jakob Fix

Re: [MarkLogic Dev General] CPF pre-commit action?

2016-01-18 Thread Danny Sokolsky
>> takes care of it. But I wanted to see if it were possible to push >>> that logic back into CPF and simplify our API such that other >>> applications could utilize the pipeline with basic insert and delete >>> operations. >>> >>> Thanks, >>> >

Re: [MarkLogic Dev General] CPF pre-commit action?

2016-01-14 Thread Danny Sokolsky
Hi Will, I can't think of a way to do this without modifying the core cpf code.For some of the status-change-handling pipeline steps, there are pre-commit triggers, but those are for cpf bookkeeping mostly, I believe. And I would not recommend changing that code. But I would question why

Re: [MarkLogic Dev General] cts:values scoring

2016-01-06 Thread Danny Sokolsky
Hi Will, The scores are used for the truncate=N and other options that use a cts:query. In those cases, the score will be used to find the top n fragments to limit|skip|sample|truncate. If you want relevance order, I believe you have to do a cts:search. -Danny From:

Re: [MarkLogic Dev General] XDMP-EXTVAR with xdmp:spawn-function and external variables

2015-12-14 Thread Danny Sokolsky
Yes, this is a bug. We are already tracking it internally, but it is not yet fixed. Thanks, -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Andreas Hubmer Sent: Monday, December 14, 2015 8:45 AM To: MarkLogic Developer

Re: [MarkLogic Dev General] Retrieve a multipart/form-data file as XML nodes

2015-11-26 Thread Danny Sokolsky
I am not sure, but don't you need to decode the multipart form data? http://docs.marklogic.com/xdmp:multipart-decode -Danny From: general-boun...@developer.marklogic.com [general-boun...@developer.marklogic.com] on behalf of Florent Georges

Re: [MarkLogic Dev General] SEARCH-BADORDERBY

2015-11-25 Thread Danny Sokolsky
Ashley, for your element range index you created on insert_timestamp, what is the type you selected? Based on the options node you posted, it should be dateTime. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Indrajeet Verma

Re: [MarkLogic Dev General] error in fn:concate

2015-10-20 Thread Danny Sokolsky
And you should really create a sequence of strings instead of a sequence of elements. For example: fn:string-join(/catalog/book/ comments/comment/Text/fn:string(),"") -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of

Re: [MarkLogic Dev General] Invalid content RESTAPI-INVALIDCONTENT: (err:FOER0000) - when installing rest-api extension for backups in MarkLogic 7

2015-10-20 Thread Danny Sokolsky
It looks like your function has a syntax error in it: let $dbname := map:get($params, $dbname) let $s3bucket := map:get($params, $s3bucket) xdmp:database-backup( (:xdmp:database-forests(xdmp:database($dbname)), $s3bucket ):) xdmp:database-forests(xdmp:database($dbname)),

Re: [MarkLogic Dev General] Invalid content RESTAPI-INVALIDCONTENT: (err:FOER0000) - when installing rest-api extension for backups in MarkLogic 7

2015-10-20 Thread Danny Sokolsky
Additionally, there is no need to import the admin library. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Tuesday, October 20, 2015 2:40 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General

Re: [MarkLogic Dev General] Invalid content RESTAPI-INVALIDCONTENT: (err:FOER0000) - when installing rest-api extension for backups in MarkLogic 7

2015-10-20 Thread Danny Sokolsky
ere something else that should be returned here? Ernest Gulik From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Tuesday, October 20, 2015 4:45 PM To: MarkLogic Developer Discussion <general@developer.marklogic

Re: [MarkLogic Dev General] Data out of sync

2015-10-15 Thread Danny Sokolsky
I think you want to do an fn:doc of the URI, not an xdmp:directory. xdmp:directory returns all of the documents in that directory, and since that is not a directory, there ar no documents in the directory and it returns nothing. -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Danny Sokolsky
gic status`. That will also tell you whether MarkLogic service is up and running. Kind regards, Geert From: <general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>> on behalf of Danny Sokolsky <danny.sokol...@marklogic.com<mailto:danny.so

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Danny Sokolsky
on documentation for ML8 guide even though I'm working on ML 7? Ernest Gulik From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Thursday, October 08, 2015 5:27 PM To: MarkLogic Developer Discussion <general@developer.marklogic.

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Danny Sokolsky
7. Ernest Gulik From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Thursday, October 08, 2015 5:35 PM To: MarkLogic Developer Discussion <general@developer.marklogic.com> Subject: Re: [MarkLogic Dev General]

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Danny Sokolsky
y appreciate your support. This is awesome! Thank you! Ernest Gulik From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Thursday, October 08, 2015 1:01 PM To: MarkLogic

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-07 Thread Danny Sokolsky
Also, cqsh is a super-old project that has not been touched in a very long time. What is it you are trying to do? You might try some of the built-in marklogic tools or a newer project. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On

Re: [MarkLogic Dev General] path range index

2015-08-18 Thread Danny Sokolsky
Hi Paul, Try cts:values: http://docs.marklogic.com/cts:values You can use it for any kind of range index. You pass it a cts:reference for the path index: http://docs.marklogic.com/cts:path-reference -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] How to force a user to change password if the last password change date is more than 90days

2015-08-14 Thread Danny Sokolsky
There is an api sec:user-set-password-extra and the corresponding getter: http://docs.marklogic.com/sec:user-set-password-extra http://docs.marklogic.com/sec:user-get-password-extra That allows you to squirrel away information in the password document stored in the secutity database. You can

Re: [MarkLogic Dev General] 32 bit server installation

2015-08-11 Thread Danny Sokolsky
MarkLogic requires a 64-bit platform in 6.0 and later versions. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of SNEHASISH DUTTA Sent: Tuesday, August 11, 2015 7:57 AM To: general@developer.marklogic.com Subject: [MarkLogic Dev General]

Re: [MarkLogic Dev General] Supported character encodings

2015-08-06 Thread Danny Sokolsky
You can specify a character encodings in that encoding-option with any of the encodings documented here: http://docs.marklogic.com/guide/search-dev/encodings_collations#id_40354 Auto attempts to guess the encoding, but sometimes it can be ambiguous so it might not get it right. -Danny From:

Re: [MarkLogic Dev General] How to escape ${} in document-insert

2015-08-03 Thread Danny Sokolsky
You can escape curly brackets in XQuery with another of the same type of curly brackets. For example: let $s := foo${{bar}}/foo return xdmp:document-insert(/test.xml, $s); doc(/test.xml) = ?xml version=1.0 encoding=UTF-8? foo${bar}/foo -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Sorting and De-duping

2015-07-30 Thread Danny Sokolsky
The result of your search is a sequence of documents. I think you want to xpath down to audience for each document in your FLOWR. Something like: for $audience in $these-docs//ec:audience order by $audience/@audience return $audience/fn:string() -Danny From:

Re: [MarkLogic Dev General] ML 8 Error Handler Non-Execution | Unauthorized User

2015-07-28 Thread Danny Sokolsky
Have you looked at your rewriter too? Maybe the 401 is for the rewriter, not the error handler? Another clue might come from the AccessLog for that app server. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Rahul Gupta Sent:

Re: [MarkLogic Dev General] element-word-match

2015-07-14 Thread Danny Sokolsky
for this anomaly is performance for the admin role. But for me it is unexpected behaviour. Performance should not outplay correctness. That said, thanks a lot for your support! Best regards, Andreas 2015-07-14 1:07 GMT+02:00 Danny Sokolsky danny.sokol...@marklogic.com: I don’t think

Re: [MarkLogic Dev General] element-word-match

2015-07-13 Thread Danny Sokolsky
I don't think that it should make a difference running as admin. I think that used to be the case but it has worked that way for quite a while. Andreas, do you have a simple test case you can share that shows this? Thanks, -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Generating Reports in ML

2015-06-18 Thread Danny Sokolsky
If you already have a document, you can use something like xdmp:node-insert-after to insert a sibling node. Or if you only have less than 1000 records, then it is probably small enough to just do that all in one go by using xdmp:document-insert. Just be careful-generally speaking, you do not

Re: [MarkLogic Dev General] Migrating from ML 4.x to ML 8

2015-06-18 Thread Danny Sokolsky
Hi Fred, I think doing this on a separate system that you can test outside of your old system is a good idea. There are sort of 2 paths I can think of for you to choose from here. 1) On your new system, start with 4.x and recreate your old system first, including all of the

Re: [MarkLogic Dev General] Create Http Server Tutorial

2015-06-05 Thread Danny Sokolsky
Thanks for pointing that out Martin. What you really want to do is put your application code somewhere outside of where the server is installed. MarkLogic will look relative to the installation directory, but the best practice is to put your code either somewhere else on the filesystem (for

Re: [MarkLogic Dev General] XDMP-PATTERNVALUEMISMATCH: xdmp:parse-dateTime

2015-05-28 Thread Danny Sokolsky
on our live servers. Any other workaround you might suggest? From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Thursday, May 28, 2015 1:50 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General

Re: [MarkLogic Dev General] XDMP-PATTERNVALUEMISMATCH: xdmp:parse-dateTime

2015-05-28 Thread Danny Sokolsky
There are a number of bugs that have been fixed on xdmp:parse-dateTime since 6.0-3. This works in a recent 8.0 build: xquery version 1.0-ml; let $startdateTime:=May 28, 2015 return fn:format-dateTime((xdmp:parse-dateTime([MNn] [D1], [Y0001], xs:string( $startdateTime ) )),

Re: [MarkLogic Dev General] cts:element-values and fragment-frequency with multiple element names

2015-05-26 Thread Danny Sokolsky
When you specify multiple QNames, it just ORs them together, so this is what I would expect. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Andreas Hubmer Sent: Tuesday, May 26, 2015 9:18 AM To: MarkLogic Developer Discussion

Re: [MarkLogic Dev General] bulk delete xquery syntax

2015-05-11 Thread Danny Sokolsky
Your save-configuration call has to wrap the config returned in your flwor expression. Something like: admin:save-configuration( admin:appserver-delete($config,admin:appserver-get-id($config, $groupid, secure2_app)) ) From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] wildcarded search with cts:field-value-query

2015-05-11 Thread Danny Sokolsky
And you should be able to express that with the value query by making your wildcarded expression something like: dev* * The first star means matches zero or more chars in that word, and the second * means matches zero or more words in the value. So that could match the following values:

Re: [MarkLogic Dev General] Preserving document collection membership

2015-04-16 Thread Danny Sokolsky
I think this really has to do with what the webdav client is doing. If you look in the access log for the webdav server, you can see what requests it is making. Most webdav clients will make an update by inserting a new document. When you insert a new document, it will put all of the

Re: [MarkLogic Dev General] Scheduled Task to run batch file.

2015-04-13 Thread Danny Sokolsky
Hi Gene, I would try making that mimtype map to text instead of binary; a bat file seems to me would be a text document. Although I am not 100% sure I understand the environment that is running. If that does not work, you might give more details about how the document is being fetched from

Re: [MarkLogic Dev General] WebDAV - can't view files

2015-04-08 Thread Danny Sokolsky
Hi Robert, Here are a few thoughts: * Can you tell us what errors it is getting? For the webdav server, set log uncaught errors to true, then your errors will show up in ErrorLog.txt. * Did you have automatic directory creation set on the database *before* you loaded your

Re: [MarkLogic Dev General] Path Range Index

2015-04-08 Thread Danny Sokolsky
Hi Abhishek, If you are seeing errors upon reindexing, it probably means you have some data that does not match the type for your range index. If that is the case, you need to fix the data so it matches your type.Either that or just ignore the errors and those documents will not match

Re: [MarkLogic Dev General] Very puzzling bug in wildcard search results

2015-03-11 Thread Danny Sokolsky
Also, make sure you have the proper wildcard indexes in both places: http://docs.marklogic.com/guide/search-dev/wildcard#id_14163 Do you have the codepoint word lexicon in both places? -Danny -Original Message- From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] docs.marklogic.com

2015-03-11 Thread Danny Sokolsky
This was an issue for a little while on Saturday. It is fixed. Thanks, -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Shannon Sent: Saturday, March 07, 2015 9:01 AM To: General MarkLogic Developer

Re: [MarkLogic Dev General] cts.search v cts:search

2015-03-03 Thread Danny Sokolsky
You can xpath down the results in JavaScript. In your case, you end up returning the whole document anyway I think because you are walking up the tree from //word. This is not quite what you want to do, but it is similar (and requires a range index on concepts/@year) var res = new Array();

Re: [MarkLogic Dev General] xs:yearMonthDuration in 1.0-ml

2015-02-19 Thread Danny Sokolsky
I'm not sure if this helps, but here is something similar using a technique like the functx function does: http://www.xqueryfunctions.com/xq/functx_yearmonthduration.html xquery version 1.0-ml; let $date1 := xs:dateTime(xs:date(2015-03-27)) let $date2 := xs:dateTime(xs:date(2024-03-27)) let

Re: [MarkLogic Dev General] Query on Search with double quotes “”

2015-02-06 Thread Danny Sokolsky
Also, what are your index settings? What is the exact query? -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Charles Greer Sent: Friday, February 06, 2015 4:05 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev

Re: [MarkLogic Dev General] MLJAM: Socket receive error timeout

2015-01-31 Thread Danny Sokolsky
You can try adding an xdmp:set-request-time-limit to increase the time limit for that query. Try something like this: xdmp:set-request-time-limit(600), xdmp:http-post(http://localhost:8080/mljam/mljam/local/eval;) -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] XDMP-PLACEKEYSLOCKING: …Fast locking cannot be used with place keys.

2015-01-31 Thread Danny Sokolsky
Hi Ardal, Remove the forests element from your options node and that error will go away. Since we introduced the latest forest placement algorithms in MarkLogic 7, most of the time it is a bad idea to choose your own forest. I thought setting locking to strict for that database would make this

Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread Danny Sokolsky
/architecture/forest-label Thanks again, Ardal On Jan 25, 2015, at 10:25 PM, Danny Sokolsky wrote: Hi Ardal, Did the admin interface prompt you for the name of an admin username and password? Upon initial installation, when you first go to the Admin Interface on port 8001, it will prompt you

Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread Danny Sokolsky
, at 12:14 PM, Danny Sokolsky wrote: As David indicated, MarkLogic does not have a debian package, but many people have installed it the way you are. A few other things to look at: Is there anything in the log file (/var/opt/MarkLogic/Logs/ErrorLog.txt)? Yes. A lot of lines like

Re: [MarkLogic Dev General] Searching Standalone Properties Documents

2015-01-19 Thread Danny Sokolsky
Or you can use xdmp:document-properties() for your searchable expression (1st param to cts:search). -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin Makeig Sent: Monday, January 19, 2015 9:39 AM

Re: [MarkLogic Dev General] function index in MarkLogic?

2015-01-08 Thread Danny Sokolsky
If you look in the Admin Interface on the screens where you create range indexes, there is a collation builder there. That can help you. Using the collation builder, it looks like this will be case and diacritic insensitive as well as space insensitive:

Re: [MarkLogic Dev General] How to escape ? character in searches

2014-12-17 Thread Danny Sokolsky
You can make that query unwildcarded. For example: cts:word-query(drug?, unwildcarded) -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sinang Sent: Wednesday, December 17, 2014 2:33 PM To: general Subject: [MarkLogic Dev

Re: [MarkLogic Dev General] ways to execute xQuery against MarkLogic

2014-12-15 Thread Danny Sokolsky
Hi Alexei, The most common way to evaluate xquery modules is to create an HTTP App Server, put the code as xqy files under the app server root, and then hit the URL with a browser or with a tool like curl. For example, suppose you have an HTTP App Server you have set up with a root of

Re: [MarkLogic Dev General] Is it possible to add range index from command line without bootstrap?

2014-12-09 Thread Danny Sokolsky
Hi Jenny, Yes, you can script any configuration change using the Admin API. Here is an example of adding an index: http://docs.marklogic.com/guide/admin-api/configure#id_80248 You could create a service in XQuery and call it from the command line (for example, using curl). Also, you would

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Danny Sokolsky
Hi Frank, Or how about if you do a language-sensitive search. For example: let $doc := a b id=car c xml:lang=encar/c c xml:lang=nlauto/c c xml:lang=frvoiture/c /b

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Danny Sokolsky
...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: 08 December 2014 19:15 To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output Hi Frank, Or how about if you do a language-sensitive search. For example: let $doc

Re: [MarkLogic Dev General] Does reindexing always automatically run on the complete contents of each database after an upgrade from ML6 to ML7?

2014-10-29 Thread Danny Sokolsky
If you have reindexing enabled for the database, reindexing is always running on that database, meaning that at certain points in the server's uptime (for example, start up, configuration changes), the database checks to see if there are any fragments to reindex. If there are, it reindexes a

Re: [MarkLogic Dev General] How to tell if restart required?

2014-10-23 Thread Danny Sokolsky
One other (low-tech) idea is to look at the list of cod tasks and do some static analysis on your code. There are relatively few cold tasks, and most of the cold tasks are app-server related (like removing ports and so forth). -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Surprising slowness of cts:uri-match

2014-10-22 Thread Danny Sokolsky
Hi Rachel, Can you pass a cts:query into your cts:uri-match call? How many forests do you have? More forests might help depending upon what you are doing. But if all of your URIs in your db follow this pattern, ultimately it is going to have to search through a lot of URIs. You could make

Re: [MarkLogic Dev General] word query

2014-10-16 Thread Danny Sokolsky
fields being searched. Well to be more specific i see that the results returned show total = 20 but i don't see anything being returned . As soon as i add the top level field fix in the inclusion list i start seeing the 20 results. Girish On Wed, Oct 15, 2014 at 4:09 PM, Danny Sokolsky

Re: [MarkLogic Dev General] word query

2014-10-15 Thread Danny Sokolsky
Did you reindex your database after changing the word query field? Exactly what query are you running? What version of MarkLogic are you using (xdmp:version() ). -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Girish Kulkarni

Re: [MarkLogic Dev General] word query

2014-10-15 Thread Danny Sokolsky
On Wed, Oct 15, 2014 at 3:55 PM, Danny Sokolsky danny.sokol...@marklogic.commailto:danny.sokol...@marklogic.com wrote: Did you reindex your database after changing the word query field? Exactly what query are you running? What version of MarkLogic are you using (xdmp:version() ). -Danny From

Re: [MarkLogic Dev General] How to optimize the REST API Bulk Ingestion Performance?

2014-10-14 Thread Danny Sokolsky
Hi Gary, A few thoughts here. You are using 7.0-4 on this? What are you comparing it to on the Oracle side? In MarkLogic, the content will be all indexed and searchable. Is that true on the orcl side too? What indexes to you have enabled? Maybe you do not need them all (or maybe you

Re: [MarkLogic Dev General] Adding new fields

2014-10-14 Thread Danny Sokolsky
-- Original Message -- From: Danny Sokolsky danny.sokol...@marklogic.commailto:danny.sokol...@marklogic.com To: MarkLogic Developer Discussion general@developer.marklogic.commailto:general@developer.marklogic.com Sent: 14.10.2014 0:41:51 Subject: Re: [MarkLogic Dev General] Adding new fields Hi Ville

Re: [MarkLogic Dev General] Adding new fields

2014-10-14 Thread Danny Sokolsky
the database and calculate the number of fragments needing reindexing, returning a report. -Danny From: Danny Sokolsky Sent: Tuesday, October 14, 2014 11:14 AM To: 'vi...@tilaton.fi'; 'MarkLogic Developer Discussion' Subject: RE: [MarkLogic Dev General] Adding new fields You can turn reindexing

Re: [MarkLogic Dev General] CTS Path restrictions

2014-10-13 Thread Danny Sokolsky
element to return the id is relatively slow. On some searches I can us cts:uris to just get the uris which kind of works but then I lost the relevance score... Cheers Dom From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky

Re: [MarkLogic Dev General] Adding new fields

2014-10-13 Thread Danny Sokolsky
Hi Ville, I don’t know of a way to tell MarkLogic to trust you in this case, and you should not need it to. If you do not have any content to reindex, and if reindexing is enabled, it should not rewrite all of the content. It will query all of the content to see if it needs reindexing, which

Re: [MarkLogic Dev General] CTS Path restrictions

2014-10-12 Thread Danny Sokolsky
Hi Dominic, It sounds like you got this working somewhat, but here are a few observations. You did not say what version of MarkLogic this is or what index settings you have. For this type of search to resolve accurately unfiltered, you would need to have word positions and element positions

Re: [MarkLogic Dev General] Adding new index to replicated ML servers

2014-09-29 Thread Danny Sokolsky
And here is the doc on this, FWI: http://docs.marklogic.com/guide/database-replication/dbrep_intro#id_27654 -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of vi...@tilaton.fi Sent: Sunday, September 28, 2014 11:23 PM To:

Re: [MarkLogic Dev General] using cts:boost-query with search:resolve in Marklogic 7

2014-09-17 Thread Danny Sokolsky
Range queries do not contribute to score in MarkLogic 6. They do in MarkLogic 7. So if you are using MarkLogic 6 that explains the 0 scores. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Mrinmoy Khamrui Sent: Wednesday,

Re: [MarkLogic Dev General] using cts:boost-query with search:resolve in Marklogic 7

2014-09-17 Thread Danny Sokolsky
? Thanks Mrinmoy On Wed, Sep 17, 2014 at 10:05 PM, Danny Sokolsky danny.sokol...@marklogic.commailto:danny.sokol...@marklogic.com wrote: Range queries do not contribute to score in MarkLogic 6. They do in MarkLogic 7. So if you are using MarkLogic 6 that explains the 0 scores. -Danny From

Re: [MarkLogic Dev General] How to export XML to ASCII text with ISO encodings?

2014-09-10 Thread Danny Sokolsky
These are also available via the xdmp:output option in the XQuery prolog: http://docs.marklogic.com/guide/xquery/langoverview#id_71572 Note that you will not see the effect of these when running in Query Console because the output options only affect the outer query, and underneath the covers

Re: [MarkLogic Dev General] cts:element-query

2014-09-09 Thread Danny Sokolsky
Hi Dave, That works for me on 7.0-3. Are you sure document looks exactly like that? Here is what I did: xdmp:document-insert(/Dave.xml, lncr:doc xmlns:lncr=http://www.lexis-nexis.com/lncr; lncr:metadata lncr:titles lncr:titlePeople v. Johnson/lncr:title /lncr:titles

Re: [MarkLogic Dev General] possible bug w/directory deletion

2014-08-28 Thread Danny Sokolsky
Hi Mike, I am not seeing this in 7.0-3. If you try to do a document-delete on a directory /test/, I am seeing XDMP-DOCNOTFOUND. Are you sure you did not create a document at the /test/ uri? -Danny -Original Message- From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] possible bug w/directory deletion

2014-08-28 Thread Danny Sokolsky
succeeds where the docs say it won't. Afterward there's no directory property at '/test/'. -- Mike On 28 Aug 2014, at 08:45 , Danny Sokolsky danny.sokol...@marklogic.com wrote: Hi Mike, I am not seeing this in 7.0-3. If you try to do a document-delete on a directory /test/, I am seeing XDMP

Re: [MarkLogic Dev General] possible bug w/directory deletion

2014-08-28 Thread Danny Sokolsky
, Danny Sokolsky wrote: My test was with directory-creation=automatic. You also get the same behavior (XDMP-DOCNOTFOUND ) with directory-creation=manual-enforced. I think this makes sense, although the documentation could certainly be more clear about it ;) -Danny -Original Message

Re: [MarkLogic Dev General] Deleting system databases

2014-08-26 Thread Danny Sokolsky
I would tend to leave them, as they will cost you very little to have. There is no need to configure replicas for them if you are not using them, just make sure they are not configured to be used with any other databases or App Servers. -Danny -Original Message- From:

Re: [MarkLogic Dev General] sql interface for java

2014-08-18 Thread Danny Sokolsky
You can always use an ad-hoc query from Java and call xdmp:sql. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of qinggangwa...@gmail.com Sent: Monday, August 18, 2014 1:54 AM To: Discussion Subject: Re: [MarkLogic Dev General]

Re: [MarkLogic Dev General] An error occured when install the marklogic

2014-08-07 Thread Danny Sokolsky
Can you say exactly what you were doing when you got this error, and what version of MarkLogic? My guess is that you are trying to run rpm as an unprivileged user; you must run it as root. http://docs.marklogic.com/guide/installation/procedures#id_28962 -Danny From:

Re: [MarkLogic Dev General] Security Design

2014-07-28 Thread Danny Sokolsky
Hi Tim, I am not sure I have thought this through completely, nor can I think of the exact steps to do this, but here is my instinct on how I would attempt to solve this: I would try to create amped functions that allow Sue to share (read only) Tom’s document (that Sue has read permission

Re: [MarkLogic Dev General] Security Design

2014-07-28 Thread Danny Sokolsky
good planning before jumping into implementation. A specific question is; do I understand correctly that a document can be in many collections and that collection access must be granted before document access is checked? --Tim On Mon, Jul 28, 2014 at 7:31 PM, Danny Sokolsky danny.sokol

Re: [MarkLogic Dev General] Strict validation error encountered in ML7 but not in ML6

2014-07-14 Thread Danny Sokolsky
Or you can restart MarkLogic, which will also clear the cache. -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Mary Holstege Sent: Monday, July 14, 2014 12:28 PM To: MarkLogic Developer Discussion Subject: Re:

Re: [MarkLogic Dev General] SVC-SEMPOST error filling up log file

2014-07-10 Thread Danny Sokolsky
Hi Jakob, I recommend you contact support for this one. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Jakob Fix Sent: Thursday, July 10, 2014 3:00 AM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev

Re: [MarkLogic Dev General] Security Role deleted

2014-07-08 Thread Danny Sokolsky
Do you have a backup of your security database? If so, you can shut down the server, then copy the Security forest back in. If not, you do you need anything in your current security db? If not, you can move everything aside and then re-initialize your system, which will create a new Security

Re: [MarkLogic Dev General] Reading Multiple Documents by URI (REST API)

2014-06-27 Thread Danny Sokolsky
Hi Szilard, I believe the bulk REST API stuff is new in 7.0-3: https://docs.marklogic.com/guide/relnotes/chap3#id_89380 So that I think is why this is not working on 7.0-2. Try upgrading to 7.0-3. -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] external nodes cannot be updated

2014-06-26 Thread Danny Sokolsky
Hi Jakob, A node that is passed in from an invoking module is an external node (even if it was created by copying a node from the database). Does that make sense? -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Jakob Fix

Re: [MarkLogic Dev General] external nodes cannot be updated

2014-06-26 Thread Danny Sokolsky
to not see it mentioned in the documentation. cheers, Jakob. On Thu, Jun 26, 2014 at 10:25 PM, Danny Sokolsky danny.sokol...@marklogic.commailto:danny.sokol...@marklogic.com wrote: Hi Jakob, A node that is passed in from an invoking module is an external node (even if it was created by copying

Re: [MarkLogic Dev General] Static resources taking a long time to load in ML 6.0-4.1

2014-06-23 Thread Danny Sokolsky
Hi Demian, I have not seen a problem like that. That does seem like a strange rewrite rule there though. Can you duplicate this behavior on another app server on the same host? Maybe without the rewriter? Have you looked in your log file for anything odd, or your access file? You might

Re: [MarkLogic Dev General] Evaluation of `declare variable` vs `let`

2014-06-19 Thread Danny Sokolsky
I would only declare a variable if you thought you would want to use it many times, otherwise it makes your code harder to read. I would say you should do what makes sense for your code. So mostly it is just a matter of style. My 2c. -Danny -Original Message- From:

Re: [MarkLogic Dev General] QConsole lost data

2014-06-05 Thread Danny Sokolsky
Will, I think you said you are using 7.0-1. There were several bugs fixed in 7.0-2, so an upgrade might be a good idea. -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael Blakeley Sent:

Re: [MarkLogic Dev General] CPF Privileges

2014-05-30 Thread Danny Sokolsky
Hi Girish, It all depends on what code your action is spawning. There is no special privileges needed to run cpf code, but all of the code in your cpf action will be run as the same user that calls the triggering event. So the way to figure out what privileges are needed is to call the action

Re: [MarkLogic Dev General] best practices for manual directory creation

2014-05-22 Thread Danny Sokolsky
I think if you want to maintain these yourself, you should not use the system maintained properties; instead, make up some of your own that do the equivalent things. That being said, have you tried leaving directory creation at automatic, but turning off maintain last modified and maintain

Re: [MarkLogic Dev General] Non-breaking space in QConsole

2014-05-22 Thread Danny Sokolsky
Yes, the browser is going to do with it what it will, and that will likely change based on various settings you have in your environment (language, etc). But when that string leaves MarkLogic, it will be the UTF-8 codepoint character (not the entity, as XQuery converts that to the character).

Re: [MarkLogic Dev General] best practices for manual directory creation

2014-05-22 Thread Danny Sokolsky
On 5/22/2014 12:05 PM, Danny Sokolsky wrote: I think if you want to maintain these yourself, you should not use the system maintained properties; instead, make up some of your own that do the equivalent things. That being said, have you tried leaving directory creation at automatic

  1   2   3   4   5   6   7   8   >