Community
Participate
Working Groups
I20120917-2230 1) Create a folder with spaces in the name 2) Drill into the folder 3) Attempt a global search within the folder -> It fails to find anything. Spaces are term delimiters, so this search: q=foo%20Location:/file/my%20folder Actually means three search terms: foo AND Location:/file/my AND folder We need to put quotes around the entire location so it is treated as a single term: q=foo%20Location:%22/file/my%20folder%22
On client side, we may not want to put %22 directly in the search.html hash as it is consumed by both indexer and crawler. The way I put quotes around search term with white space is not the hash but inside searchResults._search() function, where "qObj.searchStrWithWhiteSpace" appears.
Actually I realized that the "Location" field contains an encoded URI, so it is impossible for it to have spaces. However this means the query is perhaps not being encoded correctly. If I want to find a file with this URI: /file/A/My%20Project/a.txt Then the location field needs to be encoded as: /file/A/My%2520Project/a.txt I am still working on it...
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=cb7b3e6de751337da88cb5257c5767f52bf1e474
There was one last case not working: top-level folder name with space in the name: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=66458d88e82f1191285b6d598d6aa8cb449f7a98