Hi, 2010/7/6 Torgeir Veimo <[email protected]>
> On 6 July 2010 19:22, [email protected] > <[email protected]> wrote: > > I thought about a possible implementation of the tagging system. > > My idea is that an article can have a multi value node where can be saved > the tags. This is useful because when I read an article I haven't to read > another resource to know the related tags. > > In addition to this node, it's possible to create a parallel structure, > with the tag value as root node and as children the UUIDs of the > articles. > > In this way there is a duplication of information but it's easier to > manipulate tags information in the system (for example tag clouds or search > by tag could be processed in a very fast way). > > What do you think about? > > Storage is one issue to look at. Another is search. > > Say you'd like to find matches between items depending on how many > tags they share. (Eg. a dating system, or a system to find jobs based > on your knowledge.) How would you implement such a search with > weighted scores in JCR space, ie. without downloading all such nodes > and doing search and sort in memory. > > -- > -Tor > Thanks for ideas, I have now a Sling question for the development. I developed the tags multi value property and now I have to create the tag tree (as shown in the next image). http://davidgsoc.files.wordpress.com/2010/07/tag-jcr-structure.png I thought that after saving the article with the related tag I can call a new operation (defined extending SlingPostOperation) to create the node. But I have some questions: 1) Is this way the "Sling way" to implement it? What are the alternatives? 2) How can I have the UUID of the created node? I thought that it's possible to have UUID sending the article URL to the new SlingPostOperation but I don't really like this way. Cheers -- Federico
