This commit is contained in:
parent
92d83f4ac2
commit
826679b073
1 changed files with 9 additions and 7 deletions
|
@ -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());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue