When you enter a text "the" on a field that uses stopword analysis, Hibernate Search will throw an exception. This is undesirable there doesn't seem to be an easy way to prevent this kind of input to be given to a keyword query since the result depends on the analysis of the input text.
In stead I believe a term like this should just be ignored and a log-warning should be given.
{{
{
org.hibernate.search.errors.EmptyQueryException: HSEARCH000146: The query string 'the' applied on field 'tag_kw_pt' has no meaningfull tokens to be matched. Validate the query input against the Analyzer applied on this field.
at org.hibernate.search.query.dsl.impl.ConnectedMultiFieldsTermQueryBuilder.createQuery(ConnectedMultiFieldsTermQueryBuilder.java:111)
at org.hibernate.search.query.dsl.impl.ConnectedMultiFieldsTermQueryBuilder.createQuery(ConnectedMultiFieldsTermQueryBuilder.java:81)
}
}}
|