Idea for an additional postprocess function: query-diff ie difference between two queries.
Have an option on the concordance-page menu "filter out results shared with another query".
This goes to an admin page, where the user's saved queries are listed.
The orig query the user came from is q1, the saved query they select is q2.
Running the postprocess creates a new query containing all && only the hits in q1 that do not occur in q2.
How to implement: create a temporary mySQL table for q2's conc lines (begin position / end position [implemented as one field or 2?? ]).
Then, dump q1.
Read the dump line by line -- check the temp table to see if it's there,
--------If it is, skip it.
--------If it isn't, write it to tempfile
Finally, if there is anything in tempfile, add the number of hits at the start (creating tempfile2) && undump tempfile2 to create the new query.