Hi Amit,


Did you try passing in (multiple) language options to the cts calls within
the additional-query?
http://docs.marklogic.com/cts:element-attribute-value-query



Kind regards,

Geert



*Van:* [email protected] [mailto:
[email protected]] *Namens *amit gope
*Verzonden:* zaterdag 27 oktober 2012 15:32
*Aan:* [email protected]
*Onderwerp:* [MarkLogic Dev General] sarch api not generating result for
non english content



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