Wrap the "first portion" in a new element (assuming you're talking about XML 
here). The you can use something like cts:element-query 
<http://docs.marklogic.com/cts:element-query> or cts:element-word-query 
<http://docs.marklogic.com/cts:element-word-query> to restrict queries to just 
that element. Think of the XML elements as a way to tell MarkLogic which 
specific parts of the document to index.

Justin

> On Aug 27, 2015, at 11:57 AM, Yang, Yun <[email protected]> wrote:
> 
> All,
>  
> We have 20 million documents, there is an use case where we must search only 
> the first portion of each document. Is there a way to do that? The first 
> portion of a document is defined as first 50 words or 100 words, etc.
>  
> Thanks,
>  
> Yun
>  
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at: 
> http://developer.marklogic.com/mailman/listinfo/general

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to