How do multiple categories of queries in CHDB apply? . For a single border condition, the startkey and endkey combinations work fine, but the same thing is not working with more than one range condition
My Function View is like this:
< Pre> "function (doc) {if ((doc ['couchrest type'] == 'item') & amp; amp; amp; amp; amp; & amp; amp; amp; amp; [amp; amp; amp; & amp; amp; doc ['loan_period' ] & Amp; [Dock ['template_id'], Doc ['loan_name'], dock ['loan_period'], doc ['loan_amount']], tap); }} "
:>I have
loan_period
5 andloan_amount
30000 my startkey and endkey parameters Are with the way The need to get ray docsparameter = {: startkey = & gt; ["7446567e45dc5155353736cb3d6041c0", zero, 5,30000] ,: endkey = & gt; ["7446567e45dc5155353736cb3d6041c0", {}, {}, {}},: include_docs = & gt; True}
Here, I'm not getting the desired result. I think my Starc and Endki are the worst. Can anyone help me?
There is an order list of one of the couchdriver visual entries on any sequence of questions asked on the nearest piece of the list Come back. Thus, it is not possible to apply the situation of two inequality.
Assuming that your loan_period will be resolved by issuing a query to a discrete variable, this case will probably emit'ing the best first loan_period and after that each period.
An alternative solution would be to use couchdb-lucene.
Comments
Post a Comment