-
Notifications
You must be signed in to change notification settings - Fork 171
Support paging in SCLI #327
Comments
Hi @zengzh: As stated in doc SCLI supports CQL paging. In your use case, the match query acts as a 'boolean' relevance (it matches or not) query. It does not make sense to sort them by relevance. Maybe searching documentation should help you to understand this. Hope this helps |
Thanks @ealonsodb for quick reply. Sorry for the inappropriate example. Maybe a better one is the following:
According to CQL paging, paging on displays query results in 100-line chunks followed by the more prompt. This functionality is limited in 2 aspects:
Any ways to break the above limitations? |
Execute The query you are executing is a relevance query, so results from different cassandra nodes must be sorted in coordinator node. Paging functionality is covered by CQL paging and you can very easily skip whatever results you want in client. Hope this helps |
Thanks @ealonsodb Cassandra supports paging but does not encourage offset queries . I understand that even providing an offset in SCLI, it still needs to compute the first page and discard those results (keys). But, this avoids to retrieve the whole set of tuples from Cassandra and discard them. To this point of view, computing and discarding results from SCLI instead of computing/discarding tuples from Cassandra is helpful, right? |
Thanks @ealonsodb. |
Hi @zengzh: Hope this helps |
Hi @ealonsodb: |
Hi @zengzh:
When querying our product you can use query or filter.
There is plenty of information at internet searching by: "lucene query versus filter". The main problem is that data consistency in executed after 2i related sorting postProcess. Hope this helps |
Thanks @ealonsodb |
Hi @zengzh Thank you for change my mind |
Thanks @ealonsodb |
Hi @ealonsodb @adelapena , It has been a while since this feature had been developed but remained unreleased. May I know the latest status and when it will be available? Look forward to your reply. Many thanks. |
Hi @ealonsodb @adelapena, do you have plans to merge this feature soon? we are excited and impatient about this, Thank you a lot! 😬 |
Hi @ealonsodb
ElasticSearch accepts “from” and “size” parameters so that users can retrieve certain number of results starting from a particular position. https://www.elastic.co/guide/en/elasticsearch/guide/current/pagination.html
Does SCLI have this feature? For example, can I issue a query as follows:
Which retrieves the tweets about FIFA that are returned in 100 tweets/page and skip the first 100 tweets?
If not, does stratio folks have plan to support this? Thanks.
The text was updated successfully, but these errors were encountered: