Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using Drupal 4.4.0-RC, and I saw this in the log file:
when user enters search term with space in front, ie. ' something', search returns 0 results (even if there are more results for term 'something'). One trim()/ltrim() in search module should fix this.
Also, equal sign (=) should be added to "Remove punctuation and stuff" list, to be stripped from words to be indexed; right now I have keywords like '==================' in database.
Comments
Comment #1
erikhopp CreditAttribution: erikhopp commentedit seems that one space plus search term yields results, but not two or more spaces.
is there some way to strip all spaces at the begining of a search?
Comment #2
TDobes CreditAttribution: TDobes commentedI cannot reproduce this problem with the 4.6 search.module. I get the same search results regardless of how many spaces I prefix/postfix onto search terms.
Comment #3
(not verified) CreditAttribution: commented