Comments (3)
inclusive_end and reduce default to true according to
http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options, so that's
what sprouch implements. As you already pointed out, you can always create
the set yourself.
On Wed, Jan 2, 2013 at 6:51 PM, Sam Smoot [email protected] wrote:
This code:
val flags = ViewQueryFlag(descending = true, include_docs = true)
Will return:
Set[sprouch.ViewQueryFlag] = Set(inclusive_end, include_docs, descending,
reduce)None of those are CouchDB defaults, so the deviation in query-API defaults
by Sprouch is frustrating.To return to default/expected behavior you need to pass something like
this to your Database.queryView() call instead:import sprouch.ViewQueryFlag._val flags = Set[ViewQueryFlag](descending, include_docs)
That will avoid unnecessarily pulling in options you didn't specify. It
would be convenient if ViewQueryFlag.apply() only passed the intended
options though since the first example is what's demonstrated in the
tutorials.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/6.
from sprouch.
Gotchas. Thanks. Creating it yourself doesn't actually work since there's the diff with ViewQueryFlag.all
in queryView
. But good to understand the rationale. Thanks.
from sprouch.
I changed exactly this diff now so that group=false isn't used any more in
queries with reduce=false. Does that fix your issue? My test works fine.
On Wed, Jan 2, 2013 at 7:05 PM, Sam Smoot [email protected] wrote:
Gotchas. Thanks. Creating it yourself doesn't actually work since there's
the diff with ViewQueryFlag.all in queryView. But good to understand the
rationale. Thanks.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-11817579.
from sprouch.
Related Issues (11)
- improve support for schemaless data
- support _stats HOT 1
- support change notifications
- conditional get with etag
- ViewQueryFlag options are all passed by queryView, which CouchDB does not allow. HOT 2
- include_docs flag does not trigger processing of emitted doc field HOT 2
- keyRange doesn't accept non-String keys HOT 5
- Need way to getDoc on an id that may not exist HOT 5
- No ability to set language for Views
- Upgrade SBT build.sbt Syntax to 0.13.x
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sprouch.