Well, this is really the extent of it. Its a little more complex than what I
give here (the actual key returned has 5 elements to match on). But I want
exact matches of those values, instead of ranked results from a full-text
query.
Of course, its if not possible to do something like this I guess
Tristan, if you are looking to run more complex queries (particularly
anything to do with wildcards) you should really look at couchdb-lucene.
http://github.com/rnewson/couchdb-lucene
-Patrick
On 17/01/2011 1:01 PM, Tristan Sloughter wrote:
I'm looking to query my Couch database in such a way
I'm looking to query my Couch database in such a way that some of the fields
in a document can be wildcards that match any key request. Example:
function(doc) { emit(doc.some_field, doc); }
?key=100
would match both the document with some_field of 100 and of some_field with
the value *.
Is this
Janez, all the rewriter code is in src/couchdb/couch_httpd_rewrite.erl afaik.
On Sat, Jan 15, 2011 at 1:46 PM, Janez Štupar wrote:
> There is no semicolon in the rewrite rule,
>
> but if you think colon in ":db" - that stands for named pattern, which can
> be used as a variable - you can read mor