Re: Search within a search result !!!

nospam_at_geniegate.com
Date: 05/03/04


Date: Mon, 03 May 2004 03:34:39 GMT

Jay <artlover70@yahoo.com> wrote:
> Hi everybody !
>
> I have questions about "searching".
>
> I saw some of the websites such as "google" , "microsoft"...provide
> the user the option to "search within the search result". What is the
> principle behind this ?
>
> What really happen behind scene ? (the database query, database
> structure....)

As the previous poster pointed out, they use typicaly AND your new terms
with the previous ones giving the illusion of filtering. AND is
probably the best way to go about it.

It depends on the implementation and scale, If you are *scanning* then
saving the results might be faster, a kind of "query ID", you could use
the query ID as a key in a result table and limit your new query to rows
joined with the ID's in the prior table. This can kind of suck because
the database needs to maintain indices on the QID, which results in
slower insertion times. (And an insert is required for each "hit") BUT
it has a huge advantage in that you can join on it, which is something
you couldn't do with a text file.

If you're still scanning within the results, might be fastest to cache
the results in local text file(s) (Probably ISAM so you can skip to page
15..). But it all depends on the implementation, what it is exactly
you're looking at (If each "row" is an entire text file... might be a bad
idea) and available resources.

Jamie

-- 
http://www.geniegate.com                     Custom web programming
User Management Solutions                   Perl / PHP / Java / UNIX


Relevant Pages

  • Re: Need help trying to combine queries into 1 query
    ... I noticed a small syntax error in the code i posted, ... "Jay" wrote: ... > I'm not currently generating the query statement in VBA yet. ...
    (microsoft.public.access.queries)
  • Re: Q on SQL features (slightly OT)
    ... >Hi Clemens, ... >>> there is a query to just get the number of entries in the table, ... >you are right in principle, but we would never do this. ...
    (comp.lang.tcl)
  • Combining and splitting fields
    ... the source instead of going through the barcode routine. ... use that for the query. ... would skip the scanning stuff. ... >for a purchase order and line item. ...
    (microsoft.public.access.forms)
  • Re: Query Join syntax...
    ... use a standard select query to construct the calculated join field. ... open both queries side by side and identify the ... I don't think it's any different in principle to, ... > suspect the join is fine in principle. ...
    (microsoft.public.access.queries)
  • Re: Need help trying to combine queries into 1 query
    ... Jay ... >> I'm not currently generating the query statement in VBA yet. ... > Chris O. ...
    (microsoft.public.access.queries)