Ankur,

  In 4.2, you can get some of the benefits of "XPath indexes" by using fields.
  You define a field to be a part of a document that includes some elements and 
excludes others.
  Then you can define a word-based index on that field (with different indexing 
options than the overall word index) and search on just that field, using 
cts:field-word-query().

  In 5.0 (coming soon) we plan to extend the field capability to include 
cts:field-value-query() and (with a range index) cts:field-range-query().
  So in 5.0 you can do a range query on, for example, price elements that 
appear under product but not under shipping ( the equivalent of //product/price 
), or even price elements that appear under luxury products ( the equivalent of 
//product[@kind="luxury"]/price).

  Moving beyond 5.0, we're looking into ways that we might extend this further, 
possibly to a fully-fledged "XPath index" capability.
  Most XPath index implementations support a subset of full XPath, and that's 
one of the things we'll be looking at.

  If you have specific requirements around an XPath index, I'd very much like 
to chat off-list - could you send me a note?

  For others on this list - if you have specific XPaths you'd like to see 
resolved out of the index, please do send me examples / use cases.

Thanks!
- Steve B.

Stephen Buxton
Director, Product Management
MarkLogic Corporation
stephen.bux...@marklogic.com
Phone: +1 650 655 2317
www.marklogic.com

This e-mail and any accompanying attachments are confidential. The information 
is intended solely for the use of the individual to whom it is addressed. Any 
review, disclosure, copying, distribution, or use of this e-mail communication 
by others is strictly prohibited. If you are not the intended recipient, please 
notify us immediately by returning this message to the sender and delete all 
copies. Thank you for your cooperation.


-----Original Message-----
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Ankur Patwa
Sent: Friday, September 23, 2011 9:16 AM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] xpath indices

All,
I've heard about being able to add xpath indices in addition to building node 
based indices.
I am curious if its planned for 5.1. It would be great if it were.

-Ankur

NOTICE OF CONFIDENTIALITY: This electronic message, including attachments, is 
for the sole use of the named recipient and may contain confidential or 
privileged information protected by State of Tennessee and Federal regulations. 
 Any unauthorized review, use, disclosure, copying or distribution is strictly 
prohibited.  If you are not the intended recipient or have received this 
communication in error please contact the sender or email 
i...@icainformatics.com and destroy all copies of the original message. Thank 
you.
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to