#2637 move DefaultQueryBuilderFunction
This commit is contained in:
parent
1489257428
commit
bf6751dc7c
2 changed files with 4 additions and 5 deletions
|
@ -23,7 +23,6 @@ import org.apache.lucene.search.Query;
|
|||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.entity.QueryContext;
|
||||
import org.codelibs.fess.mylasta.direction.FessConfig;
|
||||
import org.codelibs.fess.query.TermQueryCommand.DefaultQueryBuilderFunction;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.dbflute.optional.OptionalThing;
|
||||
import org.lastaflute.web.util.LaRequestUtil;
|
||||
|
@ -123,4 +122,8 @@ public abstract class QueryCommand {
|
|||
}
|
||||
return field;
|
||||
}
|
||||
|
||||
protected interface DefaultQueryBuilderFunction {
|
||||
QueryBuilder apply(String field, float boost);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -184,8 +184,4 @@ public class TermQueryCommand extends QueryCommand {
|
|||
context.addHighlightedQuery(text);
|
||||
return QueryBuilders.prefixQuery(siteField, text).boost(boost);
|
||||
}
|
||||
|
||||
interface DefaultQueryBuilderFunction {
|
||||
QueryBuilder apply(String field, float boost);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue