Needs work
Project:
Search Files
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
13 Feb 2009 at 14:59 UTC
Updated:
12 Jul 2012 at 20:46 UTC
Hi, when I search for files and I use the filenames, and not words which are in the text of the files, i dont get results.
If I used words which are in the text of the files, it works fine.
What can I do?
Comments
Comment #1
thl commentedTried it with Beta3 and it works.
Source code reveals the filename is injected as an artificial "content".
But both modules do it differently, which should be aligned.
Comment #2
thl commentedComment #3
mdallmeyer commentedI have a rather specific issue - when files are password protected, only the file name is indexed. This would be alright if file names could have spaces in them, but they can't. Drupal replaces spaces with underscores, and then search files removes all non-alphanumeric characters, running the rest of the string together.
In essence, a file named "Labor Rate Tables.xls" becomes "Labor_Rate_Tables.xls" when uploaded to Drupal, and this is then reduced to "LaborRateTablesxls" when indexed, which is not going to help anyone when they search for "labor rate".
If someone could point out the section of code which removes these non-alphanumeric characters that would be great - my plan is to insert spaces instead of just removing the character. That way, the strings "Labor" "Rate" "Table" and "xls" would be included separately, making for a much better search.
Comment #4
mdallmeyer commented