Posts

Showing posts from January 1, 2019

element word positions - conceptual questions

Image
1 I'm trying to understand the impact of the element word positions index setting. See the following xquery which returns the plan of a simple element-word-query search: xdmp:plan(cts:search(doc(), cts:and-query( cts:element-word-query(xs:QName("name"), "element word position") ), ("unfiltered") )) And the final-plan if the index is not activated (reduced form to save space): <qry:and-query> <qry:term-query>element(name),pair(word("element"),word("word"))</qry:term-query> <qry:term-query>element(name),pair(word("word"),word("position"))</qry:term-query> <qry:term-query>word("element")</qry:term-query> <qry:term-query>word("word")</qr