| Summary: | [search] Case-insensitive filename search | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | John Arthorne <john.arthorne> |
| Component: | Server | Assignee: | John Arthorne <john.arthorne> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Silenio_Quarti, susan |
| Version: | 0.2 | ||
| Target Milestone: | 0.5 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 361449, 370051 | ||
|
Description
John Arthorne
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 |