Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
derreisende77 committed Oct 26, 2024
1 parent 41fdc11 commit 3c37009
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,14 @@ private TModelFilm performTableFiltering() {
Stream<DatenFilm> stream = listeFilme.parallelStream();

if (!noFiltersAreSet()) {
if (searchText.isEmpty()) {
// search for everything...
searchText = "*:*";
}

var parser = new StandardQueryParser(analyzer);
parser.setPointsConfigMap(PARSER_CONFIG_MAP);
parser.setAllowLeadingWildcard(true);
var initialQuery = parser.parse(searchText, LuceneIndexKeys.TITEL);
Query initialQuery;
if (searchText.isEmpty())
initialQuery = new MatchAllDocsQuery();
else
initialQuery = parser.parse(searchText, LuceneIndexKeys.TITEL);

BooleanQuery.Builder qb = new BooleanQuery.Builder();
qb.add(initialQuery, BooleanClause.Occur.MUST);
Expand Down

0 comments on commit 3c37009

Please sign in to comment.