Package org.intermine.api.searchengine
Interface KeywordSearchHandler
-
- All Known Implementing Classes:
SolrKeywordSearchHandler
public interface KeywordSearchHandler
Interface for handling indexes.- Author:
- arunans23
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<KeywordSearchFacet>
doFacetSearch(InterMineAPI im, java.lang.String queryString, java.util.Map<java.lang.String,java.lang.String> facetValues)
A method specifically designed to handle facet return webserviceKeywordSearchResults
doKeywordSearch(InterMineAPI im, java.lang.String queryString, java.util.Map<java.lang.String,java.lang.String> facetValues, java.util.List<java.lang.Integer> ids, int offSet)
Main method to do the searchjava.util.Set<java.lang.Integer>
getObjectIdsFromSearch(InterMineAPI im, java.lang.String searchString, int offSet, java.util.Map<java.lang.String,java.lang.String> facetValues, java.util.List<java.lang.Integer> ids, int listSize)
A method specifically designed to be used in SaveFromIdsToBagAction class
-
-
-
Method Detail
-
doKeywordSearch
KeywordSearchResults doKeywordSearch(InterMineAPI im, java.lang.String queryString, java.util.Map<java.lang.String,java.lang.String> facetValues, java.util.List<java.lang.Integer> ids, int offSet)
Main method to do the search- Parameters:
im
- IntermineAPI instancequeryString
- the search term to be searchedfacetValues
- the facet value Map that needs to be returned in the resultids
- ids to research the searchoffSet
- offSet of results- Returns:
- results containing both facet and result rows in the KeywordSearchResuls container
-
getObjectIdsFromSearch
java.util.Set<java.lang.Integer> getObjectIdsFromSearch(InterMineAPI im, java.lang.String searchString, int offSet, java.util.Map<java.lang.String,java.lang.String> facetValues, java.util.List<java.lang.Integer> ids, int listSize)
A method specifically designed to be used in SaveFromIdsToBagAction class- Parameters:
im
- IntermineAPI instancesearchString
- the search term to be searchedfacetValues
- the facet value Map that needs to be returned in the resultids
- ids to research the searchoffSet
- offSet of resultslistSize
- the listSize that needs to be returned. (ie rowSize in solr)- Returns:
- results containing both facet and result rows in the KeywordSearchResuls container
-
doFacetSearch
java.util.Collection<KeywordSearchFacet> doFacetSearch(InterMineAPI im, java.lang.String queryString, java.util.Map<java.lang.String,java.lang.String> facetValues)
A method specifically designed to handle facet return webservice- Parameters:
im
- IntermineAPI instancequeryString
- the search term to be searchedfacetValues
- the facet value Map that needs to be returned in the result- Returns:
- A Collection of keywordsearch facets
-
-