Abishek,

Take a look at the section, "Modifying and Extending the Search Parsing 
Grammar" from the Marklogic Search Developer's Guide:
http://docs.marklogic.com/5.0doc/docapp.xqy#display.xqy?fname=http://pubs/5.0doc/xml/search-dev-guide/search-api.xml%2344520

-Will

From: [email protected] 
[mailto:[email protected]] On Behalf Of Abhishek53 S
Sent: Wednesday, June 06, 2012 12:03 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Override parsing grammar to create not - 
element -value - query


Hi Folks,

We need to override the existing search grammar to expose "NE" joiner as not 
query for a constraint.


"constraint-name NE constraint-value" should be parsed as folows
<cts:not-query>
        <cts:element-value-query>
                <cts:element>commodity</cts:element>
                <cts:text xml:lang="en">Gasoline</cts:text>
        </cts:element-value-query>
</cts:not-query>

Please let me know how to re-write the parsing grammar.


Thanks
Abhishek Srivastav
Systems Engineer
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: [email protected]<mailto:[email protected]>
Website: http://www.tcs.com<http://www.tcs.com/>
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
_______________________________________________
General mailing list
[email protected]
http://community.marklogic.com/mailman/listinfo/general

Reply via email to