luwak
luwak copied to clipboard
How to using Range for Integers
Monitor monitor = new Monitor(new LuceneQueryParser("text", ANALYZER), new TermFilteredPresearcher());
List<MonitorQuery> monitorQueries = new ArrayList<>(); String rangeQuery = "text:[1 TO 40]"; monitorQueries.add(new MonitorQuery("1", rangeQuery));
It's accepting 4000 but not accept for 5 InputDocument doc = InputDocument.builder("1") .addField("text", "4000", new KeywordAnalyzer()) .build();
DocumentBatch batch = DocumentBatch.of(doc);
Matches<HighlightsMatch> matches = monitor.match(batch, HighlightingMatcher.FACTORY);
Any update.?