Hello All,

I am using search api to find my contents and facing some issue. My search
options query looks something like this:

<options xmlns="http://marklogic.com/appservices/search";>
 <term>
<empty apply="no-results" />
<term-option>case-insensitive</term-option>
<term-option>punctuation-insensitive</term-option>
</term>
 <!-- search contraints -->
<constraint name="doi-unstm">
<value>
<element ns="http://www.springer.com/app/meta"; name="DOI"/>
<term-option>unstemmed</term-option>
</value>
</constraint>
 <constraint name="doi-stm">
<value>
<element ns="http://www.springer.com/app/meta"; name="DOI"/>
<term-option>stemmed</term-option>
</value>
</constraint>
              <!-- results options -->
<return-metrics>false</return-metrics>
<return-facets>true</return-facets>
<searchable-expression>/Publisher</searchable-expression>
  <!-- results transformation -->
<transform-results apply="raw"/>
 <!-- additional query to only return enabled images -->
<additional-query>{cts:or-query((

cts:element-attribute-value-query(fn:QName("","ArticleGrants"),fn:QName("","Type"),"OpenChoice"),

cts:element-attribute-value-query(fn:QName("","ChapterGrants"),fn:QName("","Type"),"OpenChoice")
    )) }</additional-query>
</options>;

The problem that i am facing is that the results are being fetched for
english content documents but for non english contents it fails to return
me result for the DOI search. When I remove the additional query from my
search option i get the result but i want the additional query as the query
is made against Articles which are of type OpenChoice. Please suggest where
i am going wrong and what should i change to make my query work?

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

Reply via email to