How can I create an index for multiple values #10243
Answered
by
jtkech
MikeAlhayek
asked this question in
Q&A
-
I have the following part
The previous part will allow me to capture one Maker to multiple Years (content Items). I want to be able to query the index to get any maker where YearContentItemId == "xyz" for example. Initially I was using one to one relation "One Maker" to "One Year" so I was doing the following. But but now I want to change the index.
How can I create an index to allow me to pull all makers where YearContentItemIds contains "xyz"? |
Beta Was this translation helpful? Give feedback.
Answered by
jtkech
Sep 11, 2021
Replies: 1 comment 4 replies
-
To return many ones you just need to return an enumerable, there is a map overload for this E.g. here a piece of code that I use in an index map
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
MikeAlhayek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To return many ones you just need to return an enumerable, there is a map overload for this
E.g. here a piece of code that I use in an index map