Issue with searching for numeric keyword(s)

74 views
Skip to first unread message

Arne Hermann

unread,
Dec 5, 2012, 3:59:40 PM12/5/12
to resour...@googlegroups.com
Hi all,

I'm pretty sure that I know what's going on with this one but I'm wondering if this issue has been addressed or will be in a version later than ours which is 4.5.3428.  Say an image has a title like "60 West Cordova" or a numeric exists as a keyword.  When you search on "60" RS will *not* find the image and will bring up instead the resource with ID=60.  Now, this shorthand to bring up the image with that resource ID is great but it's at the expense of finding the above mentioned image.  If this is on the list, perhaps a suggestion for a convention to search for ID like "[60]" or something like that... or perhaps a separate search field entirely to find by Resource ID.  In the meantime, is there any way to cause RS to bring up all images where the keywords and other fields match the numeric value of the search in addition to bringing up the resource with that ID?

-Arne

David Dwiggins

unread,
Dec 5, 2012, 4:21:05 PM12/5/12
to resour...@googlegroups.com
I recommend setting 

$config_search_for_number=false;

in your config.php file, and also adding

$resourceid_simple_search=true;

The first option will disable the behavior you noted.

The second will add a "resource ID" blank in the simple search bar, which will provide an alternate way to retrieve images by resource ID, since entering the resource ID in the basic search blank will no longer do this.

I hope this helps.

-David






-Arne

--
 
 

Arne Hermann

unread,
Dec 5, 2012, 5:30:42 PM12/5/12
to resour...@googlegroups.com
Oh, I feel silly David!  I should have seen that in the config.  Thanks so much for the quick and perfect reply.

-Arne

Bart Willemse

unread,
Jun 25, 2013, 5:42:33 AM6/25/13
to resour...@googlegroups.com
Hi All,

i got the same issue, and tried the suggested solutions but when i enter a numeric value on the simple search field it still finds records based on the resourceid,
i want to exclude the resourceid from the simple search field. 

any help?

Bart

Allison Stec

unread,
Jul 11, 2013, 8:13:04 AM7/11/13
to ResourceSpace
From config.default.php...

# How are numeric searches handled?
#
# If true:
#     If the search keyword is numeric then the resource with the matching ID will be shown
# If false:
#    The search for the number provided will be performed as with any keyword. However, if a resource with a matching ID number if found then this will be shown first.
$config_search_for_number=true;

# Resource ID search blank in right nav? (probably only needed if $config_search_for_number is set to true) 
$resourceid_simple_search=false;




--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Allison Stec
Digital Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 253-399-9928

as...@colorhythm.com
Reply all
Reply to author
Forward
0 new messages