search module behavior

buut
buut's picture

Joined: 2003-06-18
Posts: 196
Posted: Sun, 2003-07-13 11:12

I've encountered some odd behavior with the search module.

When entered a search string, the search module answer on the search page:

Quote:
Search Results
Gallery Core (Results 1 - 3) [show all4]

In this case there are three results '(Results 1 - 3)' and the button says 'Show all4'. When the button is applied there a 4 search results.

It looks like a 'of by one error' somewhere, Or is it just me...

Try it yourself
http://buut.demon.nl:5880\gallery21\
search keyword: 'city'

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2003-07-14 18:13

buut, in the first result set it's only showing you the top 3 results from all 4 that it found. When you click the "show all 4" button it lets you search all the results.

If your search returned 50 results in the core module and 25 in the comments module it would have shown you:

Gallery Core (Results 1 - 3)  [ show all 50 ]
Comments (Results 1 - 3)  [ show all 25 ]

So you'd be able to scan the top 3 results, then click through to see all the results in, say, the comments module.

Yes, the UI sucks. But Ross is redoing the UI :-)

 
buut
buut's picture

Joined: 2003-06-18
Posts: 196
Posted: Mon, 2003-07-14 18:22

Hmm, It is just me then... ;-)