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

Bug 366847

Summary: search fails in some cases
Product: [ECD] Orion Reporter: Felipe Heidrich <eclipse.felipe>
Component: ServerAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ken_walker, libingw
Version: 0.4   
Target Milestone: 0.4 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Felipe Heidrich CLA 2011-12-15 12:48:17 EST
1. have org.eclipse.orion.client checkout.
2. in the navigator page search for the term createFrame
3. the result page says no matches (bug)
4. open org.eclipse.orion.client/bundles/org.eclipse.orion.client.editor/web/orion/textview/textView.js
5. file search (ctrl+f) for createFrame, you will find 2 occurrences.
Comment 1 John Arthorne CLA 2011-12-19 09:58:33 EST
I think the leading underscore on _createFrame must be causing it. I am investigating.
Comment 2 Ken Walker CLA 2011-12-19 10:09:44 EST
Similar or dupe of https://bugs.eclipse.org/bugs/show_bug.cgi?id=366212 ?
Comment 3 libing wang CLA 2011-12-19 10:45:36 EST
(In reply to comment #2)
> Similar or dupe of https://bugs.eclipse.org/bugs/show_bug.cgi?id=366212 ?

I think it is similar but the root cause may be the same.
The difference is that searching on "_createFrame" does not hit anything but on "_selection" it hits something irrelevant, where it causes 0 match.
Comment 4 John Arthorne CLA 2011-12-19 11:33:26 EST
Finally tracked this down. The problem was the Solr configuration had a default maximum field size of 10000 characters. Anything past roughly line 1500 of textView.js wasn't being indexed at all. I have bumped this up by 10x and now createFrame is being found for me.

http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=eb372dba428eaac0a7ed39b4471f9210fa763f2d
Comment 5 John Arthorne CLA 2011-12-19 14:01:32 EST
Fix pushed.