Skip navigation links


com.fatwire.cs.core.search.query
Interface QueryConverter<T>


public interface QueryConverter<T>

A interface that converts a QueryExpression to an appropriate native query representation specific to a SearchEngine implementation.


Method Summary
 T getNativeForm(QueryExpression qe, java.util.List<java.lang.String> sources)
          Generates native form query representation from given QueryExpression for specified index sources
 void setIndexSourceConfig(IndexSourceConfig config)
          Set the IndexSourceConfig information
 void setSearchEngineMetadata(SearchEngineMetadata md)
          Sets the search engine metadata for this instance.

 

Method Detail

setIndexSourceConfig

void setIndexSourceConfig(IndexSourceConfig config)
Set the IndexSourceConfig information
Parameters:
config - IndexSourceConfig to be set into the QueryConverter

setSearchEngineMetadata

void setSearchEngineMetadata(SearchEngineMetadata md)
Sets the search engine metadata for this instance.
Parameters:
md - SearchEngineMetadata for use in converting QueryExpression to native form.

getNativeForm

T getNativeForm(QueryExpression qe,
                java.util.List<java.lang.String> sources)
                throws QueryConversionException
Generates native form query representation from given QueryExpression for specified index sources
Parameters:
qe - QueryExpression to be converted to native form.
sources - names of IndexSources the QueryExpression is to apply.
Returns:
Native form of query
Throws:
QueryConversionException - if the specified expression cannot be converted into meaningful native form.

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.