How to get Content Items from Keyword in Orchard Search #12278
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
@Skrypt please help or advise on above |
Beta Was this translation helpful? Give feedback.
-
I want to add more content type like software and others { "query": { "bool": { "must" : { "term" : { "Content.ContentItem.ContentType" : "Software","Interfaces","Other" } }, "filter": [ { "term": { "Content.ContentItem.Published" : "true" }}, { "wildcard": { "Content.ContentItem.DisplayText" : "Prime*" }} ] } } } where interface and other is differ content type, when execute this query it give error. @ns8482e please advise. |
Beta Was this translation helpful? Give feedback.
I want to add more content type like software and others
like csv values "Software","Interfaces","Other"
When modify above query and add values like above in csv format so it give error see below query:
{ "query": { "bool": { "must" : { "term" : { "Content.ContentItem.ContentType" : "Software","Interfaces","Other" } }, "filter": [ { "term": { "Content.ContentItem.Published" : "true" }}, { "wildcard": { "Content.ContentItem.DisplayText" : "Prime*" }} ] } } }
where interface and other is differ content type, when execute this query it give error. @ns8482e please advise.