THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- In one --termQuery parameter, if one value is float format, then all the numeric value will be treat as float in the --termQuery parameter.
- lower value and high value for range query are both inclusive.
- For numeric query, we only support IntPoint.newRangeQuery and FloatPoint.newRangeQuery
- We have to use --termQuery as parameter of gfsh, so the real condition is put into "()".
Gfsh command line syntax
Code Block |
---|
gfsh> search lucene --name=personIndex --region=/Person --queryString=john* --termQuery.=address.must=("97006") --termQuery.=salary.should=([75000,80000]) --defaultField=name Note: find the persons with name starts with "john" and address contain "97006", with his salary might be within 75000 to 80000 (inclusive) gfsh> search lucene --name=personIndex --region=/Person --termQuery.=name.should=(john*) --termQuery.=address.should=("97006") --termQuery.=salary.should=([75000,80000]) --defaultField=name Note: find the persons either name starts with "john" or address contains "97006" or salary are between 75000 to 80000. |
...