[Zope-CMF] Dublin Core
Ricardo Newbery
newbery@dvgroup.com
Wed, 6 Jun 2001 20:11:54 -0700
At 8:36 pm -0400 6/6/01, Tres Seaver wrote:
>OK, I can see adding a field to the interface, and a simple implementation
>to the common base class used by the content objects in CMFDefault. Would
>a "multi-valued" field (like Subject or Contributors) fit your needs better
>than a "text" field (like Description)?
>
>To clarify the question: do you intend to perform searches against the
>Coverage field? If so, we/you would need to do one of two things:
>
> - Store the value as a single string, and create a TextIndex in the catalog
> against it; this would allow for typical "full-text-style searches on
> words in the field.
>
> - Define some trickier schema, and catalog that; this makes harder searches
> possible, at the cost of considerably more coding on your part. You would
> likely prefer a multi-valued field here, and build one or more
>KeywordIndexes
> against methods which parsed out the values.
>
Hmm... I'm afraid I don't understand the advantages/disadvantages of
each choice.
Yes, I expect to do searches. I haven't gotten to the point in my
Zope/CMF zen to grok the catalog stuff. That's next on my list.
I suspect that a multi-valued field using a flat list of county,
regional, and state names will do for now. Maybe eventually I might
want to translate into more hierarchical list of geographic names.
Ric