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

Thread: 3.1 seaching only keywords?

  1. #1
    Join Date
    Oct 2001
    Posts
    94

    Default 3.1 seaching only keywords?

    I imported data from 3.04
    The search is not returning any results from the old data.

    I added a new site with keywords and there is (broken) search result for the keywords.

    Is 3.1 searching only keywords?
    3.04 used to get results from the list description.

    Do I have to add keywords to all the old data?

    I will appreciate any assistance.

    Binto

    BTW. I have applied the 3.1 patch

  2. #2
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default

    Yes. You have to add the keywords you want to be associated with your listings. This is a great feature which allows the link owner to better increase the search result with keyword description.

  3. #3
    Join Date
    Oct 2001
    Posts
    94

    Default NO Search Results.

    Hart, Thanks for responsding.

    I thought that the way to get more results is by searching the list tiltle, description, keywords and additional fields.

    The real problem here is that I have added new lists with keywords.
    When I search for a keyword, I only get the 'Rate it' image which somehow is linked to the details page of the listing.

    My question:
    How do I make the search result show link titile and descriptions
    Would you suggest I do something about search.php, search.html, browse.html, rows.html or where do I start.

    I appreciate your assistance.
    Binto

  4. #4
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    211

    Default

    Binto,

    Indexu 3.1 searches link's title, description, and keywords. See the query in search.php :
    PHP Code:
    $query .= " and (title like '%$keywords[$i]%' or description like '%$keywords[$i]%' or keywords like '%$keywords[$i]%')"

  5. #5
    Join Date
    Oct 2001
    Posts
    94

    Default No Search Results

    Sofiah,
    Thank you.
    I frankly know that Indexu searches titles, descriptions and keywords.

    The problem is My search result shows a blank page.
    I am using multibyte characters. Could this be the problem?

    Is the search result being formated for any particular font face? If so, please let me know where to change the font face.

    I have changed the font styles in hearder.htm and cat header.html

    I will appreciate ay leads before I loose all my users.

    Thank you.

  6. #6
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Search will search in 3 fields:
    - keywords
    - description
    - title

    no need to add keywords in all links.

    Binto it's weird, please let me know your website url.
    The problem is My search result shows a blank page.
    Does it always blank? Truely blank page? try to view source. See what's written there or nothing.

    Is the search result being formated for any particular font face? If so, please let me know where to change the font face.
    I have changed the font styles in hearder.htm and cat header.html
    No. If you have no problem with other pages, it should be ok.
    How did you upgrade? Was there any error message when you were upgrading?
    What else do you change?
    My suggession is first before upgrading, make some test on your local pc. Work with it first. It should be the safest way.

  7. #7
    Join Date
    Oct 2001
    Posts
    94

    Default

    Doddy,
    I am glad to hear from you.
    My URL is http://www.cities.jp

    I only get the header and footer on search result page.

    I checked the source.
    There is a tag in search.html for <%category%>. No categories are shown.

    There is a tag for <%links%> No links are shown.

    This is driving me CCCCRRRAAAAAZZZZYYYY
    The issue is I have not been able to identify the source of the problem.
    Is it a php problem? magic_quotes? asp_tags? or??
    Is it a problem with Charsets? I have the charset set to Shift_JIS which is why I can see the categories. Why not the search results?

    Doddy thanks for assisting.

    Binto

  8. #8
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default ?

    ops, btw:

    what should I change then the script should search automatic in other fields, by example "long_description" and "location" ?
    Not every user uses the power search, most gave up, after they don't found what they are searching for...

    Greetings
    Frank

  9. #9
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Hi Binto, first I tried using keyword 'kodomo' and 'osusume' in kana. I know you have that name in your category. It result nothing.

    Then I search 'kid', and it work.

    See what is different.

    kid
    http://www.cities.jp/search.php?keyw...opt=0&x=37&y=4

    osusume
    http://www.cities.jp/search.php?keyw...a%1B%28B&opt=0

    I do not know it's my browser that can't read the char or error caused by indexu. When I tried to copy paste 'kodomo' kana to browser url it give me ???? char.

  10. #10
    Join Date
    Oct 2001
    Posts
    94

    Default

    Dody,
    I have tried both links.

    The result is exactly what I get.
    Your browser is OK.

    The problem.
    1. When I search english keyword, I get result.
    2. When I search Japanese word, No result.

    Is there a specification in the search script for font face?

    I can't figure out why it is not returning Japanese.

    Any Idea on what to check?

    Thank you
    Binto

  11. #11
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Binto, it may problem with url encode. If you see search.php line 436-437, indexu encode keyword:
    PHP Code:
    $kw urlencode($keyword);
    $nav->more_param "&keyword=$kw&opt=2"
    It work well with english text. I do not know if it's php problem or indexu. Binto perhaps remove url encode will make it work. Your new code may look like this
    PHP Code:
    $kw $keyword;
    $nav->more_param "&keyword=$kw&opt=2"

  12. #12
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    what should I change then the script should search automatic in other fields, by example "long_description" and "location" ?
    Not every user uses the power search, most gave up, after they don't found what they are searching for...
    Frank, you should post in new thread
    I answered here
    http://www.nicecoder.com/community/s...?threadid=1277

  13. #13
    Join Date
    Oct 2001
    Posts
    94

    Default

    Doddy,
    Thanks but urlencode is for googlesearch.
    The problem is not solved.

    Is search spliting the words into and / or. I want to remove this function.

    Also, there is a directive that keyword has to be more than 3 characters. I also want to try removing this.

    Please let me know where.

    Thank you
    Binto

  14. #14
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    go to the demo and try entering the keywords jedi knight

    key it in as follows:[list=1][*]jedi knight[*]jedi+knight[*]jedi +knight[*]jedi+ knight[*]jedi | knight[*]jedi &nbsp;knight (2 spaces between the two words)[*]jedi &nbsp; knight (3 spaces between the two words)[*]Jedi - knight[*]Jedi + knight[*]"jedi knight"[/list=1]well, you get the idea.

    users can enter things in an infinite number of ways and not all of them like we expect...

    the 1, 3 are OK

    OUCH...! - 4, 5, 7
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  15. #15
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Binto, code for intercepting word count below 3 is in line 49
    PHP Code:
      if(empty($keyword) || strlen($keyword)<3) {
        
    $error_msg $msg["10024"];
        
    DisplayTemplate($theme_path."search_error.html","\$error_msg,\$keyword");
        
    DisplayTemplate($theme_path."footer.html","\$cat");

        exit();
      } 
    After that indexu will break word phrase into some word and search each one depend on boolean search given. Line 57-60 will explode the keyword

    PHP Code:
      $keyword chop($keyword);
      
    $keyword_org $keyword;
      
    $keywords explode(" "$keyword);
      
    $keywords_org $keywords
    If you want to prevent this, your code would like this:
    PHP Code:
      $keyword chop($keyword);
      
    $keyword_org $keyword;
      
    $keywords[] = $keyword;
      
    $keywords_org $keywords

Similar Threads

  1. keywords for category
    By Hart_House in forum v3.2
    Replies: 1
    Last Post: 04-29-2004, 11:39 AM
  2. Replies: 8
    Last Post: 07-16-2003, 04:37 AM
  3. Ability to add keywords.
    By craven in forum v3.2
    Replies: 2
    Last Post: 06-11-2002, 03:11 PM
  4. Replies: 1
    Last Post: 01-24-2002, 07:26 PM
  5. Navigation, image check, keywords
    By martijn in forum v3.2
    Replies: 0
    Last Post: 11-10-2001, 02:10 AM

Posting Permissions

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