@Deprecated public class LuceneSearchRequestProcessor extends Object implements SearchRequestProcessor
| Constructor and Description |
|---|
LuceneSearchRequestProcessor()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doAdvancedSearch(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Method for constructing the advanced search form
author: gam
|
void |
doItemMapSearch(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Method for searching authors in item map
author: gam
|
void |
doOpenSearch(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Method for producing OpenSearch-compliant search results, and the
OpenSearch description document.
|
void |
doSimpleSearch(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
All metadata is search for the value contained in the "query" parameter.
|
protected void |
exportMetadata(Context context,
javax.servlet.http.HttpServletResponse response,
Item[] items)
Deprecated.
Export the search results as a csv file
|
String |
getI18NKeyPrefix()
Deprecated.
|
List<String> |
getSearchIndices()
Deprecated.
|
void |
init()
Deprecated.
|
protected void |
logSearch(Context context,
javax.servlet.http.HttpServletRequest request,
String query,
int start,
DSpaceObject scope)
Deprecated.
|
public void init()
public void doSimpleSearch(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws SearchProcessorException, IOException, javax.servlet.ServletException
All metadata is search for the value contained in the "query" parameter. If the "location" parameter is present, the user's location is switched to that location using a redirect. Otherwise, the user's current location is used to constrain the query; i.e., if the user is "in" a collection, only results from the collection will be returned.
The value of the "location" parameter should be ALL (which means no location), a the ID of a community (e.g. "123"), or a community ID, then a slash, then a collection ID, e.g. "123/456". author: Robert Tansley
doSimpleSearch in interface SearchRequestProcessorSearchProcessorExceptionIOExceptionjavax.servlet.ServletExceptionprotected void logSearch(Context context, javax.servlet.http.HttpServletRequest request, String query, int start, DSpaceObject scope)
public void doAdvancedSearch(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws SearchProcessorException, javax.servlet.ServletException, IOException
doAdvancedSearch in interface SearchRequestProcessorSearchProcessorExceptionjavax.servlet.ServletExceptionIOExceptionpublic void doOpenSearch(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws SearchProcessorException, IOException, javax.servlet.ServletException
The value of the "scope" parameter should be absent (which means no scope restriction), or the handle of a community or collection, otherwise parameters exactly match those of the SearchServlet.
author: Richard RodgersdoOpenSearch in interface SearchRequestProcessorSearchProcessorExceptionIOExceptionjavax.servlet.ServletExceptionpublic void doItemMapSearch(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws SearchProcessorException, javax.servlet.ServletException, IOException
doItemMapSearch in interface SearchRequestProcessorSearchProcessorExceptionjavax.servlet.ServletExceptionIOExceptionprotected void exportMetadata(Context context, javax.servlet.http.HttpServletResponse response, Item[] items) throws IOException, javax.servlet.ServletException
context - The DSpace contextresponse - The request objectitems - The result itemsIOExceptionjavax.servlet.ServletExceptionpublic String getI18NKeyPrefix()
getI18NKeyPrefix in interface SearchRequestProcessorpublic List<String> getSearchIndices()
getSearchIndices in interface SearchRequestProcessorCopyright © 2016 DuraSpace. All Rights Reserved.