Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to using Range for Integers #184

Open
arpitkashyap opened this issue Jun 7, 2019 · 1 comment
Open

How to using Range for Integers #184

arpitkashyap opened this issue Jun 7, 2019 · 1 comment

Comments

@arpitkashyap
Copy link

arpitkashyap commented Jun 7, 2019

    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);
@arpitkashyap
Copy link
Author

Any update.?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant