Add a custom field and value to ExternalIndex. Pos...
# help-with-umbraco
c
Hey all, Looking at updating some basic examine services I have on a boilerplate installation, and Im in the midst of updating the system to handle multiple root nodes. The end result is that a page in root node "A" shouldnt return any results from root node "B". At the moment, i've got a dirty LINQ query thats omitting the results after the examine query has been executed, however, Im looking at moving that logic into the query itself. I know there is a _path value and I could do some string manipulation to compare that in the query, however - I was wondering if it was possible to extend the built in external index to include a custom field called say "SiteRoot" which would be populated upon re-indexing / saving / restart of the solution. I can see the documentation on how I would go about this on a custom index, but wondered if its possible to do this on the external index itself, or if I should leave it the hell alone 😅
j
It's definitely possible to do on the external index - I don't see how that is a better solution than the path though
6 Views