Lucene Wildcard Search On Multiple Fields Using Query Builder
booleanJunction.must(qb.keyword().wildcard().onField("title").andField("author").andField("description").matching(searchTerm).createQuery());Where searchTerm has to have "*" in it to support partial matching.
No comments:
Post a Comment