Lisheng Zhang [lz0522...@gmail.com] wrote:
> In our application there are many complicated filter conditions, very often
> those conditions are special to each user (like whether or not a doc is
> important or already read by a user ..), two possible solutions to
> implement those filters in lucene:

> 1/ create many fields
> 2/ create many collections (for each user, for example)

3) Define a few fields or even just a single field where users can provide 
their special tags.

misc_field:important
misc_field:read
misc_field:personal_letters
misc_field:todo
misc_field:very_important

Chances are that there will be a lot of overlap of terms between the users (if 
not, please describe in more detail what the user-specific things are), so that 
the filter caches can be re-used between them.

- Toke Eskildsen

Reply via email to