2007/8/10, Luca Dionisi <<a href="mailto:luca.dionisi@gmail.com">luca.dionisi@gmail.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 8/10/07, Evgeny Egorochkin <<a href="mailto:phreedom.stdin@gmail.com">phreedom.stdin@gmail.com</a>> wrote:<br>> On Friday 10 August 2007 13:25:09 Luca Dionisi wrote:<br>> > Is it possible with the Xesam API to "search within results"
<br>> > à la Google or even better?<br>> ><br>> > I mean, will I be able, with a Xesam compliant search tool,<br>> > to do things like the following?<br>> ><br>> > - search all files of type development (*.c; *.h; *.java; ...)
<br>> ><br>> > - within result set, search for files containing some text<br>> > e.g. "implements"<br>> ><br>> > - within new result set, search for files containing some<br>> > other text,
e.g. "get_width ("<br>><br>> This is easily implemented on the client side by ANDing the 1st, 2nd etc<br>> queries.<br>><br>> > - hilight the words that match the last search, and not<br>> > the words used for previous filtering stages.
<br>><br>> We don't have to provisions for this. Maybe a good idea.<br><br>Indeed, I think it could be useful. That's why I asked. :P<br><br>I thought that the "2-stage search" (as opposed to ANDing
<br>the criteria) could be used for that matter.<br><br>And from this, the second question arises:<br>><br>> > And could I expect fast results as for a classic query<br>> > with a indexed search engine?<br>
<br>Having a result-set (for the preliminary search) as a<br>criterion for the final query, is it suitable for an indexed<br>search? Theoretically?</blockquote><div><br>In theory almost everything is possible. However with the speed of modern search engines I doubt that it is worthwhile to cache the intermediate result set server side. Just fire of a new query with new terms ANDed on as Evgeny suggests. A UI can still present the illusion to the user that she is searching in the result set. I would not be surprised if this is exactly what Google does.
<br><br>The short answer is "within the spec all your questions can be addressed with good performance", it is however completely up to the search UI you put on top of it.<br><br>Cheers,<br>Mikkel<br></div><br></div>
<br>