Results 1 to 5 of 5

Thread: Search only finds if search string is first word in record title.

  1. #1
    madmat is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    164

    Default Search only finds if search string is first word in record title.

    Maybe someone else has similar problems, I couldnīt find anything in the forums.

    Using the global search function in the upper right corner I only get results if the search string matches the first word of a record title.

    "Project World Domination"

    If I search "World" or "Domination" results are empty, search string "Project" succeeds.
    This applies for modules Projects, Cases, Bugs.
    Contacts & Accounts work fine afaict.

    Any ideas?

    Sugar: 5.0b
    Server:Win2k3
    Browser: FF & IE7
    Last edited by madmat; 2008-04-01 at 01:12 PM.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Search only finds if search string is first word in record title.

    I believe this is normal behavior of the search function.

    If you want to search for something like "World", you could do so by using '%World" as your search string.

    The percentage symbol is the wildcard you will want to use in that case.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    madmat is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    164

    Default Re: Search only finds if search string is first word in record title.

    *smackmyhead*

    ok, I did try *World* and so on with "*" as wildcard.

    Thank you!

  4. #4
    heta's Avatar
    heta is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Ahmedabad,India
    Posts
    214

    Default Re: Search only finds if search string is first word in record title.

    Hello madmat,

    if u want to change the condition in code itself... you can find it @ modules/Home/UnifiedSearchAdvanced.php

    search for

    $clause .= "LIKE '{$_REQUEST['query_string']}%'";

    and add % before {

    and see the result..

    If works, thats Good...
    Best Regards
    ---------------------------------------
    Heta Shah - iNET PROCESS
    heta.shah@inetprocess.com
    http://www.inetprocess.co.in
    Projects :
    iNETDocs -Project of the month(Dec-2008)
    iNETGoogleMap

  5. #5
    madmat is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    164

    Smile Re: Search only finds if search string is first word in record title.

    Quote Originally Posted by heta
    Hello madmat,
    if u want to change the condition in code itself... you can find it @ modules/Home/UnifiedSearchAdvanced.php
    heta - the moment I thought of how (where) to achieve this I read your post.

    Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 2007-11-22, 01:31 PM
  2. Replies: 5
    Last Post: 2007-11-13, 02:51 PM
  3. Adding Title to Advanced Search
    By skeohane in forum Help
    Replies: 1
    Last Post: 2006-10-03, 03:40 AM

Bookmarks

Posting Permissions

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