Hi all,
 
I'm using MarkLogic Server 4.2-7 and the cts:element-word-query() function 
returns less documents than cts:element-value-query() when i write three 
uppercase words. This behaviour not happen in version 3.2.
 
By example, this queries returns four documents:
 
(: 4 results with cts:element-value-query :)
cts:search(collection('type/pages')/DOC/PUBLICADO, cts:and-query((
    cts:element-value-query(xs:QName("FECHAPUB"), "2012-03-17"),
    cts:element-value-query(xs:QName("PUBLICACION"), "FIESTAS DE BENAHADUX")
  ))
)

And this one returns only one!!!
(: 1 result with cts:element-word-query and three uppercase words :)
cts:search(collection('type/pages')/DOC/PUBLICADO, cts:and-query((
    cts:element-value-query(xs:QName("FECHAPUB"), "2012-03-17"),
    cts:element-word-query(xs:QName("PUBLICACION"), "FIESTAS DE BENAHADUX")
  ))
)

However, if i run this queries also four documents:
(: 4 result with cts:element-word-query and lowercase :)
cts:search(collection('type/pages')/DOC/PUBLICADO, cts:and-query((
    cts:element-value-query(xs:QName("FECHAPUB"), "2012-03-17"),
    cts:element-word-query(xs:QName("PUBLICACION"), "fiestas de benahadux")
  ))
)
(: 4 results with cts:element-word-query and two uppercase words :)
cts:search(collection('type/pages')/DOC/PUBLICADO, cts:and-query((
    cts:element-value-query(xs:QName("FECHAPUB"), "2012-03-17"),
    cts:element-word-query(xs:QName("PUBLICACION"), "FIESTAS DE")
  ))
)
 
Regards,
 
Mariano Grau
mgrau @ grupojoly.com
Dpto. Sistemas
Grupo Joly
 

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

Reply via email to