joanelaydi
joanelaydi

Reputation: 133

Get Sitecore Item using lucene search by passing image url predicate value

I have a folder in sitecore8.1 that has a list of items under it. There is an image field in each one of them. I want to search for a certain item under this folder where image field value equals a certain value that I will pass using predicates - lucene search. Any idea how this could be done?

Thank you,

Upvotes: 3

Views: 152

Answers (1)

Mohammed Syam
Mohammed Syam

Reputation: 525

I believe you should go with the following:

  • Add a new computed field for image field
  • In your code get the ID or the name of the image from that field
  • Use this computed field to look for the item you need.

Upvotes: 1

Related Questions