TigerMan
09/18/2024, 12:26 PMAndy
09/18/2024, 1:45 PM.GroupedNot(["umbracoNaviHide"], ["1"])
Maybe that will work?TigerMan
09/19/2024, 8:17 AMJemayn
09/19/2024, 9:26 AMcsharp
index.searcher.CreateQuery(Indextypes.Content).Not().Field("umbracoNaviHide", "1")
Additionally its always a good idea to set a breakpoint when it executed the search and have a look at the final lucene string it generatesTigerMan
09/19/2024, 10:14 AMJemayn
09/19/2024, 10:35 AM__NodeTypeAlias
though.
In the backoffice under settings -> external index there is a search field, and that search field supports lucene syntax, so you can put in -umbracoNaviHide:1 -NodeTypeAlias:main
and get the searchresult, you can then remove one part at a time to see when it works. And you can remove them all and search on a node name to see its fields.
You can see fx on a site I have it has these fields among others
https://cdn.discordapp.com/attachments/1285940073841295360/1286274340983406656/image.png?ex=66ed4fd4&is=66ebfe54&hm=b7eb3da437eaf673299f0a732386e6005dc12e7fd71cdead7acab46c7ca05706&TigerMan
09/19/2024, 12:58 PM