: I would like to be able to save the query itself, however, the users may : decide to pick only some of the documents, all of them and unselect : some, etc. The point of the system is to pick a set of document
these are two seperate problems ... model the saved set the way the user models it: in the use case where the user checks the boxes of each of the items they want to save, then you record the ids, and later search on them; in the use case where the uesr says checks the "save all" box, you record the query and later search on it again; in the use case where the user checks the "save all" box, and then unchecks a few to remove them record the query and the list of unchecked ids, and later search on the query using the ids as negative filters. the quantity of info you need to record will never be greater then the number of UI elements the user had to interact with -- and the user is never going to directly interact with 10,000 UI elements. -Hoss