[MarkLogic Dev General] Impact of not-query on default Scoring Algorithm

2012-01-29 Thread Abhishek53 S
Hi Folks,How cts:not-query has impact on the relevancy model during search?In my search query I am using the default relevancy model [log(tf)*idf].Please let me know the impact on score calculation if following queries will be executed .1. cts:word-query("test")2. cts:and-query((

[MarkLogic Dev General] Replace acting weird?

2012-01-29 Thread Geert Josten
Is it me or is this code not returning what it is supposed to? I'm using Query Console in ML 5.0-2, and it returns just '3A', while I was expecting all from first upto the before $.. let $text := text![CDATA[Novotroitsk is een stad in de Russische oblast Orenburg. De stad ligt in de

Re: [MarkLogic Dev General] en/em dashes punctuation?

2012-01-29 Thread Geert Josten
A lot has been said already in this thread, but what strikes me is why the string is tokenized in the first place. Why not just sent through as a single phrase to a single cts:word-query? Then it would just be ignored, without negative side-effects.. Grtz -Oorspronkelijk bericht- Van:

Re: [MarkLogic Dev General] Replace acting weird?

2012-01-29 Thread Ron Hitchens
I removed the \\ from before the first and got what you expected but without the enclosing double quotes. Not sure if that's what you're looking for. On Jan 29, 2012, at 8:31 PM, Geert Josten wrote: Is it me or is this code not returning what it is supposed to? I'm using Query Console in

Re: [MarkLogic Dev General] Replace acting weird?

2012-01-29 Thread Geert Josten
Yes, that would, but it is there for a purpose. I am parsing an encoded string, which can contain escaped characters, like \ and \n. So, the first piece matches anything except \ and , following parts matches all allowed escaped characters. That continues till it hits a without a \ in front of