q.add( nexusIndexer.constructQuery( OSGI.SYMBOLIC_NAME,
new StringSearchExpression( "org.apache.karaf.features.command" ) ),
BooleanClause.Occur.MUST );
FlatSearchRequest request = new FlatSearchRequest( q );
FlatSearchResponse response = nexusIndexer.searchFlat( request );
// here only one results !
assertEquals( 1, response.getResults().size() );
q = new BooleanQuery();
q.add( nexusIndexer.constructQuery( OSGI.SYMBOLIC_NAME,
new StringSearchExpression( "org.apache.karaf.features.core" ) ),
BooleanClause.Occur.MUST );
request = new FlatSearchRequest( q );
response = nexusIndexer.searchFlat( request );
// here two results !
assertEquals( 2, response.getResults().size() );
}