It *may* be a good approach.
However, there are many possible options:
1) cts:field-word-queries
2) cts:and-query to combine three cts:element-value-queries
3) cts:and-query to combine three cts:element-word-queries
...
and so on...
There are at least two different ways to define a field:
(1) As you said: defined a single field "test-field" and include all the
necessary elements.
(2) Other possible way is to include "data" and exclude "inner" and "title".
Basically, right answer may or may not be a field based solution. It all
depends on what kind of queries you want to run.
Thanks,
Gajanan
From: [email protected]
[mailto:[email protected]] On Behalf Of Abhishek53 S
Sent: Tuesday, June 14, 2011 12:35 AM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Marklogic database fields over large text
Hi All
My question is related to the database field. Sample content as follows
<sample>
<title>EST</title>
<data>
<inner>
<title>ABC.</title>
<text1>Very large text.....Very large text.....Very
large text.....Very large text.....Very large text.....</text1>
<inner>
<inner>
<title>XYZ.</title>
<text2>Very large text....Very large text.....Very
large text.....Very large text.....Very large text......</text2>
<inner>
<inner>
<title>RST</title>
<text3>Very large text....Very large text.....Very
large text.....Very large text.....Very large text......</text3>
<inner>
<data>
</sample>
I need to perform constrained search over the elements text1,text2, and text3
present under data element.
If I will select database field approach and select text1 2 & 3 are included
elements into database field to write the constrained filed query,. Is this a
good approach keeping performance in mind if text1 .2 & 3 have very large text.
Thanks in advance
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://developer.marklogic.com/mailman/listinfo/general