2007/5/18, Joe Shaw <<a href="mailto:joe@joeshaw.org">joe@joeshaw.org</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>On 5/18/07, Evgeny Egorochkin <<a href="mailto:phreedom.stdin@gmail.com">phreedom.stdin@gmail.com</a>> wrote:<br>> Can you provide a more concrete example of why you can't e.g. define a<br>> Object.HitType
field instead to provide the same functionality?<br><br>Oh, there's no reason why you can't. In fact, this is exactly what<br>Beagle does. There is no object hierarchy concept in Beagle results,<br>every returned result is a "hit" and contains properties.
<br><br>Basically, the values for HitType and FileType indicate a contract to<br>clients about what types of properties to expect. A HitType of<br>"File", for instance, means that beagle:ExactFilename will be set. A
<br>GUI wouldn't attempt to display beagle:ExactFilename if HitType<br>weren't "File".<br><br>> What specific fields do different hit types have?<br><br>The only ones that come immediately to mind are the ones for File.
<br>Things like beagle:ExactFilename, beagle:Extension, beagle:Filename,<br>beagle:NoPunctFilename, beagle:SplitFilename. You can imagine similar<br>properties for items which come from emails, like "folder" or
<br>"attachment title". These are independent of the content or type of<br>the document being indexed itself.</blockquote><div><br>Putting the EmbeddedObject stuff aside for a moment...<br><br>Would the HitType/FileType structure of Beagle not be implicit with a Category structure like this:
<a href="http://www.grillbar.org/xesam/object-tree.png">http://www.grillbar.org/xesam/object-tree.png</a> (this is not the old example again)? Especially if you couple this with a Field->Category map (such that, fx, only Objects of category File has the ExactFileName field set) like the Strigi/Nepomuk camp want. Atleast it seem to cover the examples so far.
<br><br>Cheers,<br>Mikkel<br></div></div>