Skip to content

How to using Range for Integers  #184

@arpitkashyap

Description

@arpitkashyap
    Monitor monitor = new Monitor(new LuceneQueryParser("text", ANALYZER), new TermFilteredPresearcher());

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions