Dear community, By starting this chain I'd like to open discussion that would come to contribution results in subj. area.
Ignite has indexing capabilities, backed up by different mechanisms, including Lucene. Currently, Lucene 7.5.0 is used (past year release). This is a wide spread and mature technology that covers text search area and beyond (e.g. spacial data indexing). My goal is to *expose more Lucene functionality to Ignite indexing and query mechanisms for text data*. It's quite simple request at current stage. It is coming from our project's needs, but i believe, will be useful for a lot more people. Let's walk through and vote or discuss about Jira tickets for them. 1.[trivial] Use dataQuery.getPageSize() to limit search response items inside GridLuceneIndex.query(). Currently it is calling IndexSearcher.search(query, *Integer.MAX_VALUE*) - so basically all scored matches will me returned, what we do not need in most cases. 2.[simple] Add sorting. Then more capable search call can be executed: *IndexSearcher.search(query, count, sort) * Implementation steps: a) Introduce boolean *sortField* parameter in *@QueryTextFiled * annotation. If *true *the filed will be indexed but not tokenized. Number types are preferred here. b) Add *sort* collection to *TextQuery* constructor. It should define desired sort fields used for querying. c) Implement Lucene sort usage in GridLuceneIndex.query(). 3.[moderate] Build complex queries with *TextQuery*, including terms/queries boosting. *This section for voting only, as requires more detailed work. Should be extended if community is interested in it.* Looking forward to your comments! BR, Yuriy Shuliha