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).

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

Created April 11, 2018 at 6:56 AM
Updated March 21, 2019 at 5:27 PM
Resolved March 5, 2019 at 1:40 PM