Hi, Eric:

The appropriate code depends on the purpose, data model, and release.  
Alternatives include:

*  Using a cts:search() to find the appropriate documents and using XPath to 
extract the element values
*  Using range indexes and cts:value-tuples() to construct dynamic rows based 
on document co-occurrence in data typed value indexes
*  Using TDE to project rows from documents and using Optic to retrieve rows 
from indexes (in MarkLogic 9)

Can you expand about the context for the question?


Erik Hennum



________________________________________
From: [email protected] 
<[email protected]> on behalf of Eric Shevchuk 
<[email protected]>
Sent: Thursday, October 26, 2017 10:46:57 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Xquery to procure part no's, effectivity,      
units

Hello,

I am trying to construct an xquery to procure the below elements as variables 
as need to procure all part no’s, effectivity and only numeric units?. Any 
assistance you could provide would be greatly appreciated.

Examples – Part No, Effectivity, Units
<PARTNO>92103-15000-042</PARTNO>
<EFFECTIVITY>006-084</EFFECTIVITY>
<UNITS>1</UNITS>


Thanks,

Eric Shevchuk
Sr. Production Support/Applications Consultant

Infosys/Bristow Group, Inc.
2103 City West Blvd., 2nd Floor
Houston, TX  77042
[email protected]


From: [email protected] 
[mailto:[email protected]] On Behalf Of Oleksii Segeda
Sent: Thursday, August 03, 2017 3:05 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] fitness score

Hi everyone,


I calculate relevance of a single document to some query by doing this:

cts:fitness(
      cts:search(
              fn:doc(),
              cts:and-query((
                cts:document-query(... document uri ...),
                ... some query ...
              )),
              ("score-logtf","unfiltered")
      )
)

I want to do the same thing, but for an element, without ingesting this element 
to my database.

Any ideas?



Oleksii Segeda

IT Analyst

Information and Technology Solutions

[http://siteresources.worldbank.org/NEWS/Images/spacer.png]

[http://siteresources.worldbank.org/NEWS/Images/WBG_Information_and_Technology_Solutions.png]



_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to