1

I have to do the search with my data folder items. I have defined the search scope with location, still, it's not coming in the result. I have inherited my template with

/Sitecore/Templates/Foundation/Experience Accelerator/Search/Computed Fields/_Searchable

still it's not coming. enter image description here

I have already referred these two, no luck

How can I modify SXA search component to search also in the Accordions content?

How to make SXA search on particular Data folder?

8
  • For what reason do you "have to" search in the data folder items? Why not create a folder under the content tree of items which are not pages but still searchable content? Feb 3, 2022 at 16:53
  • And what do you mean with "search"? What are you going to do with the results? Just asking as you will not be able to link to them.. and they have no layout as well (which is in many sxa queries a requirement as this checks if it is an actual page)
    – Gatogordo
    Feb 3, 2022 at 16:56
  • @MichaelWest We were asked to create the data source item under the Data folder. So I followed the requirement. Can we do the search for data source item? Feb 3, 2022 at 17:14
  • @Gatogordo We are using the Rendering variant for showing results. so no need for pages and layout.so we are configure the values in datasource and reading that since it is not pages Feb 3, 2022 at 17:17
  • You should add some information to the question: what rendering are you using? But most important: what are you trying to achieve? And I mean this in a functional way - not a technical. You might be on the wrong track but without this information it's hard to help.
    – Gatogordo
    Feb 3, 2022 at 17:27

1 Answer 1

1

Finally, I resolved the above issue. I have followed two steps

Step 1:

Inherit searchable with your template

enter image description here

Step 2:

Add Search scope with your data source location with +sign

enter image description here

Step 3:

Go to Settings, Add your datasource folder in Associated content

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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