0

I have a droplist field value and based on this value would like to get result from Solr search provide.

Could someone assist me on this ?

7
  • Could you please add some more details about it? What do you want to achieve here? Mar 11, 2022 at 12:18
  • Would like to get result based on droplist field value in solr . Do u need any other information ?
    – Nisha
    Mar 11, 2022 at 12:20
  • Are you using SXA? or do you want to get results with the Sitecore Content Search API? Mar 11, 2022 at 12:39
  • Yes, I am using Sxa n would like to get result through content search api through droplist value.
    – Nisha
    Mar 11, 2022 at 12:40
  • Use the SXA search filter components doc.sitecore.com/xp/en/users/sxa/102/… Mar 11, 2022 at 12:49

1 Answer 1

1

I think, what you want to achieve is to get the data from Solr on the basis of a value that you get from a droplist field. So I will suggest you to use Sitecore Content Search API.

I think you need to refer this article to implement Content Search

https://briancaos.wordpress.com/2017/06/09/sitecore-contentsearch-get-items-from-solr-or-lucene-a-base-class-implementation/

What you need to do is to create your query and then pass your ID that you get from a droplist field and you will get the result.

Thanks

2
  • I am usng content search api , problem I am facing that I am not able to get result from droplist as the row value of it is string in content editor
    – Nisha
    Mar 11, 2022 at 12:39
  • can't you change it into droplink? Mar 11, 2022 at 13:58

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