range-query

Range Queries in Cassandra (CQL 3.0)

寵の児 提交于 2019-12-03 12:37:01
One main part of Cassandra that I don't fully understand is its range queries. I know that Cassandra emphasizes distributed environment and focuses on performance, but probably because of that, it currently only support several types of ranges queries that it can finish efficiently, and what I would like to know is that: which types of range queries are supported by Cassandra. As far as I know, Cassandra supports the following range queries: 1: Range Queries on Primary key with keyword TOKEN , for example: CREATE TABLE only_int (int_key int PRIMARY KEY); ... select * from only_int where token

Range query with elasticsearch for string

不羁岁月 提交于 2019-12-03 10:16:12
I am trying use range query with elasticsearch { "query": { "range": { "order_no": { "gte": "VM-0001", "lte": "VM-0005" } } } } But elastic return no result. I found system have problem with string include - or _ This is mapping of that field: "order_no" : { "type" : "string", "index_analyzer" : "str_index_analyzer", "search_analyzer" : "str_search_analyzer" } { "analysis": { "analyzer": { "str_search_analyzer": { "tokenizer": "keyword", "filter": [ "lowercase" ] }, "str_index_analyzer": { "tokenizer": "keyword", "filter": [ "lowercase", "substring" ] } }, "filter": { "substring": { "type":

Lucene query language and numeric range

有些话、适合烂在心里 提交于 2019-12-02 12:59:50
问题 I'm applying the following Lucene query predicate in order to get all inclusive numbers in 2 to 6 range: value:[2 TO 6] and receive the documents with the following values: 567986400000 567986400000 567986400000 536450400000 536450400000 599608800000 536450400000 567986400000 I'm interested in the numeric range query and obviously, for example, the Long value 567986400000 is not in the range of [2 TO 6] . Looks like the range searches are strings and I don't know how to workaround it in mine

Lucene query language and numeric range

寵の児 提交于 2019-12-02 03:39:26
I'm applying the following Lucene query predicate in order to get all inclusive numbers in 2 to 6 range: value:[2 TO 6] and receive the documents with the following values: 567986400000 567986400000 567986400000 536450400000 536450400000 599608800000 536450400000 567986400000 I'm interested in the numeric range query and obviously, for example, the Long value 567986400000 is not in the range of [2 TO 6] . Looks like the range searches are strings and I don't know how to workaround it in mine application for the different numeric values. How to properly use numeric range queries in Lucene? To