Project

General

Profile

Actions

Bug #17343

closed

[TYPO3 V4.0] - Pagecount not correct in indexed_search

Added by Guillaume Bourreau about 17 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2007-05-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

I have already read a post like this, but i can't find the solution wrote in the post, which tell me to go in the CVS.

The post have the number : 0000939

It is about the number of the results which is changing when we change the page with the page browser.
Logically this total number of results should always be the same, on all the results pages, but it is not.

Could you tell me how to know the solution ? I don't understand how to see it in the CVS.
Maybe i can solve the problem without using the CVS... So, could tell me how ?

Thanks a lot.

(issue imported from #M5714)


Files

5714.diff (955 Bytes) 5714.diff Administrator Admin, 2008-09-18 01:01
Actions #1

Updated by Christian Buelter almost 17 years ago

I can confirm this for 4.1.1. Result number of indexed search results decreases on page 2, page 3 ....

Actions #2

Updated by Georg Ringer about 16 years ago

this has been fixed already, take a look at http://bugs.typo3.org/view.php?id=4470

Actions #3

Updated by Cyrill Helg almost 16 years ago

then this bug should be closed?

Actions #4

Updated by Nico de Haen almost 16 years ago

I had the same problem. I commented out line 597 in class.tx_indexed_search.php

//if (($c+1) > ($pointer+1)*$this->piVars['results']) break;

and the total result count was displayed correct.

I didn't dig deeper in it, but there's a comment at this line saying:

// This may lead to a problem: If the result check is not stopped here, the search will take longer. However the result counter will not filter out grouped cHashes/pHashes that were not processed yet.

Actions #5

Updated by Dmitry Dulepov almost 16 years ago

Looks like same as Google does :D

Actions #6

Updated by Steffen Kamper almost 16 years ago

@Georg - this wasn't fixed with Michaels commit #4470, result count is still wrong

I tested it like Nico and this helped indeed, result count is correct after that change.

Actions #7

Updated by Steffen Kamper almost 16 years ago

again:
The commit from Michael solves the result count, but display is wrong.
To get this setting is needed: exactCount = 1
but

I have a search with 30 results

1st page: shows result 1 - 30
2nd page shows result 11-30
3rd page shows result 21-30

very strange fiddling with the result rows, i don't find any conf of resultsPerPage, i will investigate more.

Actions #8

Updated by Ben van 't Ende almost 16 years ago

Hey Steffen,

Let me know if you need some help. I think Dmitry also investigated and did a little bit about it. It also troubles some of our sites. So in the end it needs too get fixed anyway.

Actions #9

Updated by Steffen Kamper almost 16 years ago

Hi Ben,

i need to fix this within this week because of client. I will talk to Dmitry, thx!

Actions #10

Updated by Steffen Kamper almost 16 years ago

I think i got it. Attached patch works for me with setting
exactCount = 1

Actions #11

Updated by Steffen Kamper over 15 years ago

Committed to Trunk (rev. 4446)

Actions #12

Updated by Benni Mack almost 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF