Community
Participate
Working Groups
(Steps assume you are self-hosting and have the webide source code indexed in your workspace) 1. Pop up the "Open resource" dialog. 2. Search for "openresource". I expected 2 results, but get 0. 3. Change the query to "OpenResource". Now you'll see the results: - OpenResourceDialog.js - OpenResultsDialog.html In general we should perform a case-insensitive search, possibly changing to to case-sensitive if the user enters a mixed-case search term. (This is the approach currently taken by the Find feature in the editor)
John Arthorne Dec 10, 2010 3:21 P.M. I did some initial investigation and this is surprisingly complicated in lucene/solr. Essentially we can do "always lowercase" or "always case-sensitive" search quite easily. But, this decision is made at indexing time rather than at query time, so it can't change on the fly. Apparently the typical strategy is: - Index contains two copies of each record: fully lowercased, and original case - The query selects whether they are searching the lower-cased or original-case field: q=Name:OpenResoruce* q=LowerName:openresource*
*** Bug 370051 has been marked as a duplicate of this bug. ***
Client fix: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=3212d89d426c8d816a6af6b38a610d61ae20a772 Server fix: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=fe8e229b86fbd6ef8a7cf1d8a855916f5c7c0720
In the latest orion.eclipse.org, if I Ctrl+Shift+F in the Navigator and type "textView", I get no results. "textview" shows results. I expected to see textView.js in both cases.
(In reply to comment #4) > In the latest orion.eclipse.org, if I Ctrl+Shift+F in the Navigator and type > "textView", I get no results. "textview" shows results. I expected to see > textView.js in both cases. Yes just looking at that now. Looks like a bug in solr: https://issues.apache.org/jira/browse/SOLR-219 I will put in a workaround for this.
(In reply to comment #5) > Yes just looking at that now. Looks like a bug in solr: > https://issues.apache.org/jira/browse/SOLR-219 > > I will put in a workaround for this. http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=612abc1354927be2c6d769073e31b077ba94a12f