Hi!
All the files in ~/.beagle/ToIndex get handled by our
IndexingServiceQueryable. How this queryable works is that the ToIndex
directory is monitored by inotify and every time you drop a file in there,
it gets handled by the queryable itself and indexed.
Alongside with the actual file to index you drop in a metadata file
(sidecar) which defines the URI, HitType, MimeType and properties of the
file you want to index. The metadata filename is prefixed with a '.' (so if
you want to index " foo.html", the metadata filename is ".foo.html").
Structure of the metadata file:
* 1.line - URI
* 2.line - HitType
* 3. line - MimeType
* All following lines are properties in "t:key=value" format
Hope that helps! ;-)
Best,
Lukas