shuliga commented on a change in pull request #6917: IGNITE-12189 Implementation correct limit for TextQuery URL: https://github.com/apache/ignite/pull/6917#discussion_r338092281
########## File path: modules/core/src/main/java/org/apache/ignite/cache/query/TextQuery.java ########## @@ -79,6 +82,19 @@ public TextQuery(String type, String txt) { setText(txt); } + /** + * Constructs query for the given search string. + * + * @param type Type. + * @param txt Search string. + * @param limit Limits response records count. If 0 or less, the limit considered to be Integer.MAX_VALUE, that is virtually no limit. + */ + public TextQuery(String type, String txt, int limit) { Review comment: `Limit` parameter is important part of Queries in Lucene text search. This is because responses usually contain many records and only certain relevant top of them interests. That's why limits are used in most cases when working with Lucene. This differs `TextQuery` from SQL ones. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services