Where are the indexes actually being set?
Opened this issue ยท 5 comments
From what I can tell from reading through the Margaret code, there should be some kind of a processing/setter function which is called by Margaret for each message on each index which either sets a Margaret index value or doesn't, depending on whether the message matches what's needed for that index. Where are these filter/set functions?
The only places I'm seeing indexes actually having a Set()
called on them is within plugins, and none of them look like they set any values that would be queried by, for example, the ByType
index or the Users
index.
I think most (but still not all) of this is being handled here:
https://github.com/ssbc/go-ssb/blob/master/multilogs/combined.go
I think most (but still not all) of this is being handled here:
https://github.com/ssbc/go-ssb/blob/master/multilogs/combined.go
That is just the combined index which isn't really used that much. The actual updates to other indexes happen for example here:
go-ssb/graph/builder_indexing.go
Line 103 in 55f4894