use of com.yahoo.search.query.profile.types.QueryProfileTypeRegistry in project vespa by vespa-engine.
the class OverrideTestCase method setUp.
@Override
protected void setUp() {
type = new QueryProfileType(new ComponentId("testtype"));
user = new QueryProfileType(new ComponentId("user"));
registry = new QueryProfileTypeRegistry();
registry.register(type);
registry.register(user);
addTypeFields(type);
addUserFields(user);
}
use of com.yahoo.search.query.profile.types.QueryProfileTypeRegistry in project vespa by vespa-engine.
the class QueryProfileTypeInheritanceTestCase method setUp.
@Override
protected void setUp() {
type = new QueryProfileType(new ComponentId("testtype"));
typeStrict = new QueryProfileType(new ComponentId("testtypeStrict"));
typeStrict.setStrict(true);
user = new QueryProfileType(new ComponentId("user"));
userStrict = new QueryProfileType(new ComponentId("userStrict"));
userStrict.setStrict(true);
registry = new QueryProfileTypeRegistry();
registry.register(type);
registry.register(typeStrict);
registry.register(user);
registry.register(userStrict);
addTypeFields(type);
type.addField(new FieldDescription("myUserQueryProfile", FieldType.fromString("query-profile:user", registry)));
addTypeFields(typeStrict);
typeStrict.addField(new FieldDescription("myUserQueryProfile", FieldType.fromString("query-profile:userStrict", registry)));
addUserFields(user);
addUserFields(userStrict);
}
Aggregations