/* (non-Javadoc)
* @see org.s3b.search.query.expansion.QueryExpansion#processQuery(org.s3b.search.service.QueryObject, boolean)
*/
public QueryObject processQuery(boolean expand, boolean precise) {
QueryObject result = queryObject;
if(expand){
// pointer = WordNetPointerSwitcher.getPointer(); //switch to next pointer before expansion
// //logger.info("POINTER TYPE IN USE: "+pointer);
}
for(QueryParameter qp : result.getParameters()){
if(!(qp.getType().isPersonType() || qp.getType().isTaxonomyType())){
// if(!(qp.getType().isPersonType())){
QueryParameter newqp = processParameter(qp,expand,precise);
// if (!expand)result.clearParameters();
if (newqp != null){
if (newqp.getType().equals(qp.getType())) { // extend existing QueryParameter of given type with new entries (here: QP.type = Author)
intersectValues(qp,newqp);
} else
result.addParameter(newqp,false);
}
}
}
result.reloadParameters();
return result;
}