We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eda326b commit ddbfef2Copy full SHA for ddbfef2
silo-search-engine/src/main/java/se/l4/silo/engine/index/search/internal/types/FullTextFieldType.java
@@ -71,9 +71,10 @@ public Query createQuery(
71
else if(matcher instanceof UserQueryMatcher)
72
{
73
UserQueryMatcher userQuery = (UserQueryMatcher) matcher;
74
+ boolean typeAhead = userQuery.getContext() == UserQuery.Context.TYPE_AHEAD;
75
return UserQueryParser.create(encounter)
- .withFields(field)
76
- .withTypeAhead(userQuery.getContext() == UserQuery.Context.TYPE_AHEAD)
+ .withFields(typeAhead ? field : (field + ":type-ahead"))
77
+ .withTypeAhead(typeAhead)
78
.parse(userQuery.getQuery());
79
}
80
0 commit comments