On Fri, Dec 13, 2013 at 7:54 PM, Colleen Whitney <
[email protected]> wrote:

>    Hi Walt,
>
>  Do you mean add the brackets to the grammer as another grouping
> indicator, so that the parser treats them like parens? Absolutely, yes.
>
>  But I think (and Tim can correct me) that he tripped up on the way that
> we used [] in the text of the tutorial.
>
>
That is correct Colleen.  Actually if there were one or two complete
examples of queries, then it would have been obvious that the brackets in
the text were just being used to demarcate them from the surrounding text.
 But since there were no examples of groupings as we have discussed in this
thread, I was confused about whether to use them or not.

Thanks,
Tim


>
>   ------------------------------
> *From:* [email protected] [
> [email protected]] on behalf of Walt Perez [
> [email protected]]
> *Sent:* Friday, December 13, 2013 1:36 PM
>
> *To:* MarkLogic Developer Discussion
> *Subject:* Re: [MarkLogic Dev General] Search API Syntax?
>
>   Could you add them to the stop list?
> -Walt Perez
>
> Sent from my iPhone
>
> On Dec 13, 2013, at 4:31 PM, "Colleen Whitney" <
> [email protected]> wrote:
>
>   Oh, I see what you mean now.  Let me ponder that a little and see if
> there's a better way to demarcate the things that are in brackets, I see
> how that could be confusing.
>
>  Cheers,
>
>  --Colleen
>
>   ------------------------------
> *From:* [email protected] [
> [email protected]] on behalf of Timothy W. Cook [
> [email protected]]
> *Sent:* Friday, December 13, 2013 11:53 AM
> *To:* MarkLogic Developer Discussion
> *Subject:* Re: [MarkLogic Dev General] Search API Syntax?
>
>
>
>
> On Fri, Dec 13, 2013 at 4:43 PM, Colleen Whitney <
> [email protected]> wrote:
>
>>  The default search grammar (tip:  use search:default-options() to see
>> those) uses parentheses for grouping, e.g. "(cat AND dog) OR cow".  You've
>> got square brackets, so those are being parsed as literals with your
>> terms.  I don't see the brackets in the tutorial on a quick scan...but if
>> you can tell me which section to look in, I'll see about getting that fixed.
>>
>
>  Apologies, you asked for the section.  They are throughout the tutorial
> in the text, not in the queries.  Though there aren't really any examples
> like I was trying to build.
>
>  I am not certain what the brackets in the text is supposed to represent
> since they are not part of the search text.
>
>  Thanks,
> Tim
>
>
>
>
>  _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 
MLHIM VIP Signup: http://goo.gl/22B0U
============================================
Timothy Cook, MSc           +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to