Closed (duplicate)
Project:
Drupal core
Version:
6.9
Component:
search.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2009 at 15:22 UTC
Updated:
2 Mar 2009 at 10:06 UTC
I'm storing 12 digit serial numbers in a textual CCK field. They are all indexed as "2147483647" in the search_index table.
This results in searches for a distinct serial number returning results for all content with serial numbers longer than 10 digits.
Commenting out line 534 in search.module cures the issue:
$word = (int)ltrim($word, '-0');
Presumably the serial numbers overflow as they are cast to integer.
Comments
Comment #1
damien tournoud commentedThis is a duplicate of #323299: Integers above 10 digits length scrambled.
May I remind that one should always search before posting an issue?
Comment #2
mchaplin commentedHi Damien
Yes this could be the same issue as
http://drupal.org/node/323299
but its to say for sure as its not clear whether that issue refers to the incorrect storage of integers in the search index, or the formation of a correct SQL statement to perform the search.
best regards
Mike