No results in Adobe Search and Promote XML response

kishore_polsani

06-07-2020

I can see indexed data in Reports -> Data view, when I try to access the XML response it shows 0 results. I have created a pre-search rule, if query parameter has "Site=aemquickstart", then use a different template. Is there any change I need to do at template level to see results in XML response?

 

http://spXXXXX.guided.ss-omtrdc.net/?Site=aemquickstart

Accepted Solutions (1)

Accepted Solutions (1)

Ravi_Pampana

MVP

06-07-2020

Hi,

 

Did you created a presentation template under design ==> templates (guided_xml.tmpl) to display the results in xml ? 

 

Below is the screenshot for your response.

 

Screen Shot 2020-07-06 at 9.38.04 AM.png

Answers (2)

Answers (2)

vishakhav2

06-07-2020

Hi @kishore_polsani ,

 

Required results fields can be added in the presentation layer ( Design--> Templates) i.e tmpl extension as follows:

<results>
<result-set>
<name><![CDATA[default]]></name>
<guided-results gsname="default">
<result>
 <field name="category"><![CDATA[<guided-result-field gsname="category"/>]]></field>
</result>
</guided-results>
</result-set>
</results>

Make field name is mapped to value of that in the index connector. After this, do indexing once.

Index →Full Index →Staged Index →Run Full Index and preview the results.