luwak icon indicating copy to clipboard operation
luwak copied to clipboard

How to using Range for Integers

Open arpitkashyap opened this issue 5 years ago • 1 comments

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

arpitkashyap avatar Jun 07 '19 15:06 arpitkashyap

Any update.?

arpitkashyap avatar Jun 10 '19 01:06 arpitkashyap