Page 1 of 1

Number of results when searching within a site

Posted: Wed Apr 25, 2007 1:03 pm
by edev
Hi,

I'm trying to figure out a way to display the correct number of results when you search within a website, for example the query: dance site:www.incd.net

We have a customized script which allows us to group by sites by URLs, but when users click on "more results from www.site.com" they see the total number of results as the entire collection results, not the number of results when the search within the site.

Is there anyway to make the result number display correctly? Thank you.

Number of results when searching within a site

Posted: Wed Apr 25, 2007 1:44 pm
by mark
You probably have "fast result counts" turned on. Turn that off to get the exact number for parameterized queries. It will take a little longer to get the answers when off.

Number of results when searching within a site

Posted: Wed Apr 25, 2007 2:24 pm
by edev
Hi Mark,

the reason we turned on the fast result counts was that it took too long to process a query. I've turn the fast results off now and the search within the website is taking a very long time for queries that return more than 1000 results. Can fast results be used for the group-by query as well?

Number of results when searching within a site

Posted: Mon Apr 30, 2007 10:41 am
by edev
I was wondering if the group-by function requires the "allow linear" option to be turned on? if yes could this be contributing to the slow response whenever I click on the "more results from www..." link?

Number of results when searching within a site

Posted: Mon Apr 30, 2007 2:43 pm
by Kai
In order to get results counts on a per-site basis, the entire (all sites) result set would have to be post-processed, which can take some time (this time is what Fast Result Counts is saving). The overall (all-sites) count can usually be obtained from the index, which is why it can be displayed quickly.

Allow Linear is probably a separate issue; that would be a factor if special pattern matchers are used (ie. if the query contained terms other than plain alphanumeric keywords).

Number of results when searching within a site

Posted: Tue May 01, 2007 11:09 am
by edev
Thank you Kai. That answered my question.