rjy7 2010-07-24 18:59:50 +00:00
parent 92d83f4ac2
commit 826679b073

View file

@ -232,13 +232,15 @@ public class AutocompleteController extends FreeMarkerHttpServlet implements Sea
//if we have a flag/portal query then we add //if we have a flag/portal query then we add
//it by making a BooelanQuery. //it by making a BooelanQuery.
Query flagQuery = makeFlagQuery( portalState ); // RY 7/24/10 Temporarily commenting out for now because we're suddenly getting portal:2
if( flagQuery != null ){ // thrown onto the query. Will need to investigate post-launch of NIHVIVO 1.1.
BooleanQuery boolQuery = new BooleanQuery(); // Query flagQuery = makeFlagQuery( portalState );
boolQuery.add( query, BooleanClause.Occur.MUST); // if( flagQuery != null ){
boolQuery.add( flagQuery, BooleanClause.Occur.MUST); // BooleanQuery boolQuery = new BooleanQuery();
query = boolQuery; // boolQuery.add( query, BooleanClause.Occur.MUST);
} // boolQuery.add( flagQuery, BooleanClause.Occur.MUST);
// query = boolQuery;
// }
} catch (Exception ex){ } catch (Exception ex){
throw new SearchException(ex.getMessage()); throw new SearchException(ex.getMessage());