org.openanzo.indexer
Interface IQuery

All Known Implementing Classes:
LuceneQuery, ModelIndexQuery

public interface IQuery

Wrapper for query. Use an ISearch to actually execute the query after initialization. Not a great abstraction, but I'm not sure what other queries will look like.

Author:
Wing Yung (wingyung@us.ibm.com)

Method Summary
 void initialize(java.util.Properties properties)
          Sets up the query.
 void initialize(java.lang.String queryStr)
          Sets up the query.
 void initialize(java.lang.String field, java.lang.String text)
          Sets up the query.
 

Method Detail

initialize

void initialize(java.util.Properties properties)
                throws IndexerException
Sets up the query.

Parameters:
properties - configuration for this query
Throws:
IndexerException

initialize

void initialize(java.lang.String queryStr)
                throws IndexerException
Sets up the query.

Parameters:
queryStr - raw query string to be passed through
Throws:
IndexerException

initialize

void initialize(java.lang.String field,
                java.lang.String text)
                throws IndexerException
Sets up the query.

Parameters:
field - field in which to look for text
text - text to look for
Throws:
IndexerException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.