Page 1 of 2 12 LastLast
Results 1 to 15 of 19

Thread: Increasing Search Results

  1. #1
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default Increasing Search Results

    Hi
    Is there anyway to increase the returned search results. Currentley returns 10
    results back, want it to display 50. any ideas? have searched the forum, and looked through search.php

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    if you looked in search.php then you found what you were looking for

    'maxResults' => 10,

  3. #3
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    nope not there, i did look honestly....

    Im running one of the svn versions, and im seriouslly struggling with remedial tasks. It seems the svn version differs a lot , i moved over for the addtional features but im considering rolling back. I wasting a lot of time and getting fed-up .

    Last edited by echo@; 01-31-2008 at 05:38 PM. Reason: No need to post code

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    SVN is beta, so you take the changes Dody has made and you experiment on your own.

    $links_obj->pg_size = ($search_max_rows) ? $search_max_rows : $max_rows;

    That's probably the key to what you want, find where $search_max_rows is stored and you probably have your answer.

  5. #5
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    OK thank you
    Im just going to revert back,

    I remeber upgrading to the svn version because of the problems with the captca, the advise was to upgrade to the svn version.
    Last edited by echo@; 01-31-2008 at 06:01 PM. Reason: remembered

  6. #6
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    downgraded to 5.4.0 and modified the search.php, the value 'maxResults' => 10 existed, so changed the value to 50 and it still displays 10.

    OMG

  7. #7
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Is it 10 total or 10 per page? Read the code to find out. I only searched for "10" and that's what I found and posted.

  8. #8
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    I know I keep saying this, and there is a chance it has nothing to do with it, but when you make a code change, and you dont see the results of those changes right away, make sure you clear the cache. For blocks and html pages its /template_c. For rss its /cache

    Sometimes you might even need to clear your browser cache too
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  9. #9
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    Searched the search.php for 10 originally, only other string i can find is $start_num = $p * 10;, but this has nothing to do with it.
    yep i always clear my cache when i cant figure the problem.

  10. #10
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    You don't need to bump posts just so they can be at the top. If someone has an answer then they'll provide it. Otherwise you need to search the code to find what you're looking for.

  11. #11
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    Seems i have to or else it gets cleared from the newposts area and then forgotten for time.

    increasing the search results should be a simple one to answer, really it should be a setting in the backend, I have done everything i can, search the forum intensely, and the user guide (if you would call it that)

    Its either I ask hard questions to anwser or you just dont like me for whatever reasons.


    I am new to this script and i want to use it, i am trying hard to learn it via trial and error, (spending alot of time checking problems before i post for help)

    Most the time instead of the answer i get a reply like this ??? How is this suppose to help? come on,




    If the user guide existed answering mundane questions for passionate users would be seriously reduced.


    Every time i think im getting two steps forward i go three steps back,
    I really like the potential of this script but its like im hunting around in the dark looking for the light switch??

    don't take this criticism to heart as is not meant to offend, all criticism is good criticism.

    Maybe dody knows the answer


  12. #12
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It's got nothing to do with "liking you" or anyone else.

    People want support, that's all fine and dandy and I'm here to offer it. But when people want to modify the script or get custom coding for free that's when I stop and offer a few seconds of help (such as my above post regarding 'maxResults' => 10,) because I nor anyone else on this forum wants to take out 15 minutes of their day to provide people with free programming.

    Sure you say "well it's just a few minutes", but then there's another 6,110 members on this forum that want "just a few minutes" and soon the whole day is taken up with people thinking that "a few minutes" of my (or anyone else's) time is worth nothing.

    As for support, I'm paid to do it. But I support the script as it was released and not modifications to the script. Perhaps if I was paid more (a whole lot more) I'd be more than happy to sit here all day and figure out everyone's issues.

    I understand you're new to the script, that's great. We all were at one time and no one handed us anything either. Most of us got hints or tips because those people didn't want to take their whole day out to give free support.

    So in my second post in the thread, I pointed out where the results were coming from and left it to you to find out where that variable was coming from. It's not hard at all if you use the tools I've posted on the forum and read the sticky threads that are here.

    As for the guide i've put more than 40 hours into it and now I've needed to stop because Dody has told me of a number of changes in the new version which completely obliterates about 25% of what i've done already. I'm not putting another minute into it until the new version is final and released

    As for criticism I never take any as offense. And I hope you understand that when I say "you" in this post I'm referring to a LOT more people than just you.

    Its possible if Dody has the time he will answer, but he's the programmer and it's his job to do programming and not support.

    BUT I will admit that I goofed up in my answer. I COMPLETELY forgot that the search results number limit was in setting.php as shown below.

    $search_max_rows = 10; // maximum link/page in search page

    IF I had told you the right info in the first place this wouldn't have happened and I admit it's my mistake. But I still hold true to what I say that users on the forum need to expect to wait and learn on their own with guidance, rather than having things handed to them.

  13. #13
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    You are a god brucekeeper thank you. I really appreciate this.
    I did not know this would be a mod , i just thought it was a setting so i appologise for wasting your time. Tho if there was a cribsheet for settings like this i would not of wasted everyones time. So far i am aware of the wiki user guide which is not very helpfull at the moment, has the work you have done gone public ? URL?

    I really dont try upseting people, you must understand

    If i could get my new directory out the door quicker and generate some reasonable add money you would be the first i would donate to, really i would of liked to of done a donation for new year gone, but have been brassic.

    Have you thought of adding a paypall donation to the fourms??

  14. #14
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    those "donate a beer" mods are good for forums like this, if someone lieks apost they can donate a smalla mount to the poster for a beer, cool idea, maybe get a few people posting more support.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  15. #15
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    exactly, maybe a kitty

Similar Threads

  1. Clustered search results
    By stevestar005 in forum Blocks and Modification
    Replies: 4
    Last Post: 01-28-2008, 12:40 PM
  2. Search Results Problem
    By barnkin in forum v5.x
    Replies: 3
    Last Post: 05-18-2004, 02:03 AM
  3. search error: php results
    By hdesign in forum v5.x
    Replies: 0
    Last Post: 04-16-2004, 01:40 PM
  4. The categories in the search results
    By hani in forum v5.x
    Replies: 1
    Last Post: 01-07-2002, 08:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •