Search 6 groundwork - Add to the DSL the missing query predicates (excluding spatial, faceting, moreLikeThis) compared to Search 5

Description

Spatial, faceting and MoreLikeThis are handled in another ticket, because they should be more complex. See HSEARCH‌-3271 and HSEARCH‌-3272 in particular.

See org.hibernate.search.v6poc.search.dsl.predicate.SearchPredicateContainerContext
Also, see the TODOs:

  • org.hibernate.search.v6poc.backend.lucene.document.model.impl.MatchQueryOptions

  • org.hibernate.search.v6poc.backend.lucene.document.model.impl.RangeQueryOptions

  • org.hibernate.search.v6poc.backend.lucene.search.predicate.impl.MatchPredicateBuilderImpl

Also, work on adding support for wildcard and fuzzy queries.

For fuzzy predicates, we may want to just add a “fuzziness” option to the match predicate, just like they do in Elasticsearch. The question then becomes: do we also add a separate “fuzzy” predicate?

For wildcard predicates, I think a separate predicate would be in order: the wildcard predicate does not behave exactly like the match one, in particular you can’t have both fuzziness and wildcards, and wildcards do not support analyzers (they may support normalizers in Lucene 7, I’d have to check).

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

Yes, likely

Feedback Requested

None

Fix versions

Priority

Major
Configure