<div class="markdown_content"><ul>
<li><strong>status</strong>: open --> closed</li>
<li><strong>Group</strong>: --> TODO-3.5</li>
<li><strong>Comment</strong>:</li>
</ul>
<p>Diff / union / intersect implemented in CQPweb as of 3.2.42 (ish) albeit the interface is still NOT pretty. New ticket opened for Stefan's subquery suggestion. </p>
<hr/>
<p><strong> <a class="alink strikethrough" href="https://sourceforge.net/p/cwb/feature-requests/21/">[feature-requests:#21]</a> CQPweb: query-diff postprocess</strong></p>
<p><strong>Status:</strong> closed<br/>
<strong>Group:</strong> TODO-3.5<br/>
<strong>Labels:</strong> CQPweb <br/>
<strong>Created:</strong> Mon Jul 20, 2009 05:25 AM UTC by Andrew Hardie<br/>
<strong>Last Updated:</strong> Tue Aug 26, 2014 11:31 AM UTC<br/>
<strong>Owner:</strong> Andrew Hardie</p>
<p>Idea for an additional postprocess function: query-diff ie difference between two queries.</p>
<p>Have an option on the concordance-page menu "filter out results shared with another query".<br/>
This goes to an admin page, where the user's saved queries are listed.</p>
<p>The orig query the user came from is q1, the saved query they select is q2.<br/>
Running the postprocess creates a new query containing all && only the hits in q1 that do not occur in q2.</p>
<p>How to implement: create a temporary mySQL table for q2's conc lines (begin position / end position [implemented as one field or 2?? ]). <br/>
Then, dump q1. <br/>
Read the dump line by line -- check the temp table to see if it's there,<br/>
--------If it is, skip it.<br/>
--------If it isn't, write it to tempfile<br/>
Finally, if there is anything in tempfile, add the number of hits at the start (creating tempfile2) && undump tempfile2 to create the new query.</p>
<hr/>
<p>Sent from sourceforge.net because cwb@sslmit.unibo.it is subscribed to <a href="https://sourceforge.net/p/cwb/feature-requests/">https://sourceforge.net/p/cwb/feature-requests/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/cwb/admin/feature-requests/options.">https://sourceforge.net/p/cwb/admin/feature-requests/options.</a> Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>