2007/5/1, Evgeny Egorochkin <<a href="mailto:phreedom.stdin@gmail.com">phreedom.stdin@gmail.com</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;">
On Tuesday 01 May 2007 17:55:26 Mikkel Kamstrup Erlandsen wrote:<br>> > > $MIN_CARDINALITY<br>> > ><br>> > > > Minimum cardinality. Minimum number of properties of this type you<br>> >
<br>> > must<br>> ><br>> > > > set<br>> > > > for a given file.<br>> > > > Lets specify mandatory properties. Default is 0.<br>> > ><br>> > > Is there any example of a mandatory property? Does it even make sense?
<br>> ><br>> > File name or URI?<br>><br>> I don't see why they have to be mandatory. Not everything comes from a<br>> file.<br>><br>> In the search API it is specifically avoided to use global identifiers for
<br>> objects - as fx a mandatory uri would be. My opinion is that we shouldn't<br>> *force* URIs or any mandatory property onto any object.<br><br>The intent of this was to make life easier for apps by guaranteeing existence
<br>of some basic properties, however I do agree that the list would be extremely<br>short if not non-existent.</blockquote><div><br>Also taking URI as an example, you would need to enforce that it actually contains a valid uri or else it would be useless anyway. We could add another type called "uri" which guarantees that the values form a valid uri. I don't think we should guarantee that any fields are indeed set though.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Is it always possible to derive this from<br>><br>> > field type or not?
<br>><br>> I don't think you can derive it always. Think of some app that stores some<br>> unique string ID along side all objects. It might want to be able to search<br>> for these IDs, but it surely don't want them tokenized just because they
<br>> might contain a space. In this case the app would want to use<br>> INDEXING=atomic.<br><br>Reasonable. I proprose to make atomic the default.</blockquote><div><br>That is probably the right thing to avoid some really wierd results by unaware programmers.
<br></div><br>Cheers,<br>Mikkel<br><br></div><br>