Sure.. using Lucene you could have a field called "labels" (or "tags", as
everyone except google calls them), and just add a bunch of keyword field
values to the field, one for each tag.   The tricky part might be doing this
quickly -- right when the user adds a tag, updating the lucene index -- if
your project requires this.  Or if you're using a database, it might make
sense to just use the database instead of lucene for this particular feature
(DB updates are typically more straightforward than "updating" a lucene
document).

-chris

On 11/22/06, Jin Yiqing <[EMAIL PROTECTED]> wrote:

Hi,all
     Maybe lots of u guys have used google mail. i noticed google mail has
a
good feature called labels. you could select a mail then just put  labels
on
it by select <more actions>-><apply label>.  The labels could be  created
by
users dynamicly . Then you could list your mails just by these labels,
very
fast. And one mail could have more than one label.

     I always wondering how google did this. considering the mail amont
this
must be a search technology. Can Lucene also implement the same function
by
now?

     i have thought about this but got no solution.  :(   So i wrote this
mail, if anyone have good suggestions i'll appreciate it very much.

     Richie


Reply via email to