org.apache.stanbol.entityhub.servicesapi.site
Interface EntitySearcher


public interface EntitySearcher

Interface used to provide service/technology specific implementation of the search interface provided by ReferencedSite.

Author:
Rupert Westenthaler

Field Summary
static String QUERY_URI
          The key used to define the baseUri of the query service used for the implementation of this interface.
This constants actually uses the value of SiteConfiguration.QUERY_URI
 
Method Summary
 QueryResultList<Representation> find(FieldQuery query)
          Searches for Entities based on the parsed FieldQuery and returns for each entity an Representation over the selected fields and values
 QueryResultList<String> findEntities(FieldQuery query)
          Searches for Entities based on the parsed FieldQuery
 

Field Detail

QUERY_URI

static final String QUERY_URI
The key used to define the baseUri of the query service used for the implementation of this interface.
This constants actually uses the value of SiteConfiguration.QUERY_URI

See Also:
Constant Field Values
Method Detail

findEntities

QueryResultList<String> findEntities(FieldQuery query)
                                     throws IOException
Searches for Entities based on the parsed FieldQuery

Parameters:
query - the query
Returns:
the result of the query
Throws:
IOException

find

QueryResultList<Representation> find(FieldQuery query)
                                     throws IOException
Searches for Entities based on the parsed FieldQuery and returns for each entity an Representation over the selected fields and values

Parameters:
query - the query
Returns:
the found entities as representation containing only the selected fields and there values.
Throws:
IOException


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.