org.ow2.weblab.services.searcher.impl
Class SolrSearcher
java.lang.Object
org.ow2.weblab.services.searcher.impl.SolrSearcher
- All Implemented Interfaces:
- org.ow2.weblab.core.services.Searcher
public class SolrSearcher
- extends java.lang.Object
- implements org.ow2.weblab.core.services.Searcher
Searcher using Embedded Solr server.
RDF output is generated with Jena and can be enriched with metadata stored in index. This should be define in
searcher configuration file.
|
Field Summary |
protected javax.xml.ws.WebServiceContext |
wsContext
|
|
Method Summary |
void |
destroy()
|
protected java.lang.String |
getWebAppPath()
Return the Web application path |
javax.xml.ws.WebServiceContext |
getWsContext()
|
org.ow2.weblab.core.model.ResultSet |
search(org.ow2.weblab.core.model.Query q,
int offset,
int limit)
Use SolrComponent for Solr index querying and format response in RDF with Jena.
The ResultSet contains a Pok which himself contains Hits.
If enrichment is activated, all fields presents in index and search configuration file are annotated. |
org.ow2.weblab.core.services.searcher.SearchReturn |
search(org.ow2.weblab.core.services.searcher.SearchArgs arg0)
|
void |
setWsContext(javax.xml.ws.WebServiceContext wsContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wsContext
protected javax.xml.ws.WebServiceContext wsContext
SolrSearcher
public SolrSearcher()
destroy
@PreDestroy
public void destroy()
search
public org.ow2.weblab.core.services.searcher.SearchReturn search(org.ow2.weblab.core.services.searcher.SearchArgs arg0)
throws org.ow2.weblab.core.services.InvalidParameterException
- Specified by:
search in interface org.ow2.weblab.core.services.Searcher
- Throws:
org.ow2.weblab.core.services.InvalidParameterException
search
public org.ow2.weblab.core.model.ResultSet search(org.ow2.weblab.core.model.Query q,
int offset,
int limit)
throws org.ow2.weblab.core.services.InvalidParameterException
- Use
SolrComponent for Solr index querying and format response in RDF with Jena.
The ResultSet contains a Pok which himself contains Hits.
If enrichment is activated, all fields presents in index and search configuration file are annotated.
- Parameters:
q - the Weblab StringQueryoffset - results start indexlimit - results end index
- Returns:
- the
ResultSet containing hits
- Throws:
SearchException
org.ow2.weblab.core.services.InvalidParameterException
getWebAppPath
protected java.lang.String getWebAppPath()
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
- Return the Web application path
- Returns:
- webapp path
- Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException
getWsContext
public javax.xml.ws.WebServiceContext getWsContext()
- Returns:
- the wsContext
setWsContext
public void setWsContext(javax.xml.ws.WebServiceContext wsContext)
- Parameters:
wsContext - the wsContext to set
Copyright © 2004-2010. All Rights Reserved.