1

I'm using Sitecore 9, and SXA 1.7

I have a search scope that searches for certain items whose template is "blog page", in the scope query, I'm searching using the template and location, and I do get the items requires as results.

However, when I use the Search result component in a page and give it the previously mentioned scope, it does not show me any results.

I do not know the reason for this, if anyone ran into anything similar I would appreciate some guidance.

  • What is the location of those items? – Dawid Rutkowski Jun 12 '18 at 18:13
  • in the SXA tree under Home/Media/Posts, The scope query search shows the items i'm looking for (when i'm writing the query), but for some reason it stopped working when i use it inside the "search result" component on a page. I think it's an issue with solr. I tried rebuilding the indexes but that didn't help – Mie ElMansy Jun 14 '18 at 12:30
  • 1
    Be sure that your template inherits from _Searchable template (/sitecore/templates/Foundation/Experience Accelerator/Search/Computed Fields/_Searchable). – Norbert Jun 15 '18 at 11:51
  • I checked and made it inherit from _Searchable, but it didn't work. I tried restarting solr service, Rebuilding the indexes multiple times, and it still does not work. The query inside the scope shows the results, but using it in the search result component on a page doesn't show a thing. it's driving me crazy. – Mie ElMansy Jun 24 '18 at 11:17
  • You need delete items and recreate again after assigning _searchable base template – user16181 Aug 27 '18 at 19:28
0

I have tried many of the suggested solutions in the comments, but at the end what fixed it for me was rebuilding the index, i'll list the things I needed to check first below:

  • Make sure that your template inherits from _Searchable template (/sitecore/templates/Foundation/Experience Accelerator/Search/Computed Fields/_Searchable).
  • Make sure that you set that inheritance in the template first, then create the items you need, and check the search result for the new items.
  • Try rebuilding your indexes, from the Sitecore launchpad, in configurations, indexing. (this is what worked for me)
  • Make sure that your search result component has a rendering variant set to it, and that the rendering variant is reading the correct fields from your items.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.