fix #2708 query module refactoring
This commit is contained in:
parent
679e106739
commit
d3f6645d2e
1 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,12 @@ public class PhraseQueryCommand extends QueryCommand {
|
|||
final FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
final String field = terms[0].field();
|
||||
final String[] texts = stream(terms).get(stream -> stream.map(Term::text).toArray(n -> new String[n]));
|
||||
|
||||
return convertPhraseQuery(fessConfig, context, phraseQuery, boost, field, texts);
|
||||
}
|
||||
|
||||
protected QueryBuilder convertPhraseQuery(final FessConfig fessConfig, final QueryContext context, final PhraseQuery phraseQuery,
|
||||
final float boost, final String field, final String[] texts) {
|
||||
final String text = String.join(" ", texts);
|
||||
|
||||
if (Constants.DEFAULT_FIELD.equals(field)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue