org.ow2.weblab.services.searcher.impl
Class SolrSearcher
java.lang.Object
org.ow2.weblab.services.searcher.impl.SolrSearcher
- All Implemented Interfaces:
- org.weblab_project.services.searcher.Searcher
public class SolrSearcher
- extends java.lang.Object
- implements org.weblab_project.services.searcher.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 |
javax.xml.ws.WebServiceContext |
getWsContext()
|
org.weblab_project.core.model.query.ResultSet |
search(org.weblab_project.core.model.query.Query q,
int offset,
int limit)
Use SolrComponent for Solr index querying and format response in RDF with Jena. |
org.weblab_project.services.searcher.types.SearchReturn |
search(org.weblab_project.services.searcher.types.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()
search
public org.weblab_project.services.searcher.types.SearchReturn search(org.weblab_project.services.searcher.types.SearchArgs arg0)
throws org.weblab_project.services.searcher.SearchException
- Specified by:
search in interface org.weblab_project.services.searcher.Searcher
- Throws:
org.weblab_project.services.searcher.SearchException
search
public org.weblab_project.core.model.query.ResultSet search(org.weblab_project.core.model.query.Query q,
int offset,
int limit)
throws org.weblab_project.services.searcher.SearchException
- 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:
org.weblab_project.services.searcher.SearchException
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.