| Summary: | [Search]Server does not give back result on wild card *. | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Server | Assignee: | John Arthorne <john.arthorne> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | john.arthorne, susan |
| Version: | unspecified | ||
| Target Milestone: | 0.4 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 359739, 361449 | ||
|
Description
libing wang
Another thing I found today : If I use "search\*model" as the search request, which means "*" is treated as literal, I still get the result from server. This makes no way for the in-file search to match it because there is no such thing "search*model". We're not planning to support wildcards in 0.3 so I will look at this for 0.4. Unfortunately it looks like Solr doesn't support this, so we might have to do something manual. https://issues.apache.org/jira/browse/SOLR-219 (In reply to comment #4) > Unfortunately it looks like Solr doesn't support this, so we might have to do > something manual. > > https://issues.apache.org/jira/browse/SOLR-219 I see. If the issue is only because of the lower-case, we can always use lower case in wild card and pass to Lucene. E.g. Search*Model ===> search*model. Also, we will never treat "*" as string literal as long as we turn wild card on. (In reply to comment #5) > I see. If the issue is only because of the lower-case, we can always use lower > case in wild card and pass to Lucene. E.g. Search*Model ===> search*model. > Also, we will never treat "*" as string literal as long as we turn wild card > on. I can do this workaround on the server. I don't want the client to worry about solr bugs like this. Fix released. http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=bee21bfed484ec588e5b6b5d31152e7be06761da That fix wasn't quite right: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=f35a7e415b9da86c08f31afb486adefb0c38f814 (In reply to comment #8) > That fix wasn't quite right: > > http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=f35a7e415b9da86c08f31afb486adefb0c38f814 Just verified with the latest code, it was fixed. Another question : No matter it is wild card or literal search, we only support whole word, right ? "Search*Model" gave me result but "Search*" didn't. (In reply to comment #9) > Another question : > No matter it is wild card or literal search, we only support whole word, right > ? > "Search*Model" gave me result but "Search*" didn't. Talked to Libing about this offline. Search* will work. The problem in this particular case is the server only returns the first N results, and the match Libing was looking for was not in that list. We need to add pagination to search so we can see all results. Entered bug 362827. (In reply to comment #10) > (In reply to comment #9) > > Another question : > > No matter it is wild card or literal search, we only support whole word, right > > ? > > "Search*Model" gave me result but "Search*" didn't. > > Talked to Libing about this offline. Search* will work. The problem in this > particular case is the server only returns the first N results, and the match > Libing was looking for was not in that list. We need to add pagination to > search so we can see all results. Entered bug 362827. Yes, I also verified that if I use "searchResult*" it gave me back the result. I think if we resolve bug 362827 and the corresponding UI bugs, global search will be more usable with wild card search. |