Hi, i am doing a search operation in which i will be passing input string to the search:parse() API and whose result is applying for search. but i would like make my search query to be performed in attributes values also. for eg: when i give '(test) OR (test2) AND (ID123)' as my serach query(ID123 is an attribute value) search :parse will be forming query as follows <cts:or-query qtextjoin="OR" strength="10"> - <cts:word-query qtextref="cts:text"> <cts:text>test</cts:text> </cts:word-query> - <cts:and-query qtextjoin="AND" strength="20"> - <cts:word-query qtextref="cts:text"> <cts:text>test2</cts:text> </cts:word-query> - <cts:word-query qtextref="cts:text"> <cts:text>ID123</cts:text> </cts:word-query> </cts:and-query> </cts:or-query>
and i am giving this for cts:search query,but it is not returning any result for records with the specified attribute. Is there any way to search in attributes also using search:parse and cts:search APIs.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
