|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2011 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2012 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 27-33
Link Here
|
| 27 |
import org.eclipse.help.internal.search.ISearchQuery; |
27 |
import org.eclipse.help.internal.search.ISearchQuery; |
| 28 |
import org.eclipse.help.internal.search.QueryTooComplexException; |
28 |
import org.eclipse.help.internal.search.QueryTooComplexException; |
| 29 |
import org.eclipse.help.internal.search.SearchQuery; |
29 |
import org.eclipse.help.internal.search.SearchQuery; |
| 30 |
import org.eclipse.help.internal.util.URLCoder; |
|
|
| 31 |
import org.eclipse.help.internal.webapp.data.UrlUtil; |
30 |
import org.eclipse.help.internal.webapp.data.UrlUtil; |
| 32 |
import org.eclipse.help.internal.webapp.utils.SearchXMLGenerator; |
31 |
import org.eclipse.help.internal.webapp.utils.SearchXMLGenerator; |
| 33 |
|
32 |
|
|
Lines 76-82
Link Here
|
| 76 |
resp.setContentType("application/xml; charset=UTF-8"); //$NON-NLS-1$ |
75 |
resp.setContentType("application/xml; charset=UTF-8"); //$NON-NLS-1$ |
| 77 |
String phrase = req.getParameter(PARAMETER_PHRASE); |
76 |
String phrase = req.getParameter(PARAMETER_PHRASE); |
| 78 |
if (phrase != null) { |
77 |
if (phrase != null) { |
| 79 |
phrase = URLCoder.decode(phrase); |
|
|
| 80 |
ISearchQuery query = new SearchQuery(phrase, false, Collections.EMPTY_LIST, locale); |
78 |
ISearchQuery query = new SearchQuery(phrase, false, Collections.EMPTY_LIST, locale); |
| 81 |
collector.results.clear(); |
79 |
collector.results.clear(); |
| 82 |
BaseHelpSystem.getSearchManager().search(query, collector, new NullProgressMonitor()); |
80 |
BaseHelpSystem.getSearchManager().search(query, collector, new NullProgressMonitor()); |