Number of results when searching within a site

Post Reply
edev
Posts: 127
Joined: Wed Sep 14, 2005 5:10 pm

Number of results when searching within a site

Post 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.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Number of results when searching within a site

Post 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.
edev
Posts: 127
Joined: Wed Sep 14, 2005 5:10 pm

Number of results when searching within a site

Post 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?
edev
Posts: 127
Joined: Wed Sep 14, 2005 5:10 pm

Number of results when searching within a site

Post 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?
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Number of results when searching within a site

Post 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).
edev
Posts: 127
Joined: Wed Sep 14, 2005 5:10 pm

Number of results when searching within a site

Post by edev »

Thank you Kai. That answered my question.
Post Reply