Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 458692

Summary: Search: Some combinations of search parameters does not return accurate result.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2015-01-28 18:03:40 EST
Latest orion.eclipse.org:
1.Clone orion client code
2. Right click on the root folder of orion code and select "search in folder..."
3. type search term as "CONDITIONS" and do search.
You got 99 results.

4. type search term as "CONDITIONs" and do search.
You still got 99 results.

5. Check "case sensitive" and do search.
You got no results, which is correct.

6. type search term as "CONDITIONS" and file pattern as "*.js" and do search.
You got 40 results.

7 Now uncheck cae sensitive, type search term as "CONDITIONs" and file pattern as "*.js" and do search.
You got 0 results.
This is wrong. Because we are searching "CONDITIONs" ingnoring case for all *.js files. It should give 40 results, which is similar the case as step 4 does.
Comment 1 Anthony Hunter CLA 2015-01-28 19:44:14 EST
(In reply to libing wang from comment #0)
> 7 Now uncheck case sensitive, type search term as "CONDITIONs" and file
> pattern as "*.js" and do search.
> You got 0 results.
> This is wrong. Because we are searching "CONDITIONs" ingnoring case for all
> *.js files. It should give 40 results, which is similar the case as step 4
> does.

I added a few more JUnit test cases to demonstrate the problem and have fixed the server search with commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=91059332f14ba55ea41d7b4bbb27cff7ce6618c5
Comment 2 libing wang CLA 2015-01-29 10:16:11 EST
Just verified. Works!