Open archiloque opened 1 year ago
You are right, suggestSearchTerms should only be called with a non null "search" parameter, otherwise it will throw NPE inside. Could you do a PR please?
Thanks, I'll do a PR after https://github.com/sismics/docs/pull/722 is merged to avoid any conflict risk
In
com.sismics.docs.core.util.indexing.LuceneIndexingHandler#findByCriteria
I found this code:It means that if
criteria.getSimpleSearch()
is filled andcriteria.getFullSearch()
isnull
,suggestSearchTerms
is called with anull
parameter. It feels wrong => in this case should the suggestion search be skipped ?