Hi Abhishek,

You must have noticed in MarkLogic documentation that attribute values can be 
used to decide if a particular element gets included in a field or not. By 
defining a field with attribute value constraints you can do indirect queries. 
That may satisfy your requirement to some extent. For example, if an element 
"name" gets included only if the phone-no attribute is "1234567". Then you can 
search for a unique word (from the "name") in the field and infer that phone-no 
"1234567" is present or not.

A more direct and simpler way would be to represent the values of interest 
using elements in the XML doc instead of attributes. Then you can include these 
new elements in the field definition. However this needs transformation of the 
data. Not sure if it is possible to transform input docs in your particular 
situation.

Hope this helps,

Gajanan

From: [email protected] 
[mailto:[email protected]] On Behalf Of Abhishek53 S
Sent: Tuesday, May 03, 2011 7:14 AM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Fied creation over attribute value


Hi All

I want to create the FIELD over the values present in the attribute of some 
element means over the attribute value but not over the element value. As per 
my observation it is not possible. Can someone suggest something?

Thanks in advance

Abhishek Srivastav
Assistant Systems Engineer
Tata Consultancy Services
Plot  B-1, Block EP & GP, Sector 5
Salt Lake Electronics Complex,
Kolkata - 700 091,West Bengal
India
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://developer.marklogic.com/mailman/listinfo/general

Reply via email to