CSWP query - list all items in a list AND list a spesific item in another list
-
29-09-2020 - |
Question
Is there a way to combine two list in cswp?
- Get all list items from "car" list
- Get a spesific item from "plane" list
(path:"company/Lists/car" (IsDocument:"True" OR contentclass:"STS_ListItem")) AND (path:"company/Lists/plane" (IsDocument:"True" OR contentclass:"STS_ListItem") title:"airbus")
Both lists have the same default columns!
If I write :
path:"company/Lists/car" path:"company/Lists/plane"
it returns all items in both lists..
Update solution
Found out that I had to use OR instead of AND in my query. (query text) OR (Query text)
Solution
(IsDocument:"True" OR contentclass:"STS_ListItem") AND ( (path:"company/Lists/car") OR (path:"company/Lists/plane" title:"airbus") )
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange