incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Batalha Cunha dos Santos <fabio.bata...@scielo.org>
Subject Views with key as dictionary
Date Tue, 14 Dec 2010 16:53:01 GMT
Hello all!

I'm creating a view where the key is a dictionary (I dont know if this is
ok), for example:

{"total_rows":1999,"offset":0,"rows":[
  {"id":"203da58b-e1f1-4f5c-b956-6984aa0a163e","key":{"date":"20100900","collection":"chl"},"value":{"collection":"chl","pid":"S0717-554X2010000200002","article_title":[{"l":"es","_":"El
Lugar de la Psicolog\u00eda en la Epistemolog\u00eda de Kuhn: La
posibilidad de una psicolog\u00eda de la investigaci\u00f3n
cient\u00edfica"},{"l":"en","_":"The Place of Psychology in Kuhn's
Epistemology: The possibility of a scientific research
psychology"}],"author":[{"1":"A01","s":"Brunetti","r":"ND","n":"Juan"},{"1":"A01","s":"Ormart","r":"ND","n":"Elizabeth
Beatriz"}],"affiliation":[{"c":"Buenos
Aires","e":"eormart@psi.uba.ar","i":"A01","1":"Facultad de
Psicolog\u00eda","p":"Argentina","_":"Universidad de Buenos
Aires"}],"abstract":[{"a":"ABSTRACT Kuhn\u2019s epistemology has
inspired research within psychology of knowledge. At the same time,
researchers have taken Kuhn\u2019s categories to theorize on their
findings. Finally, Kuhn himself turned towards them to illuminate his
concept of scientific development and to build the foundation of a
scientific research psychology. The issue about psychology
epistemological rules is at the background of these reciprocal
influences.","l":"en"},{"a":"RESUMEN La epistemolog\u00eda de Kuhn ha
inspirado investigaciones en el \u00e1mbito de la psicolog\u00eda del
conocimiento. Del mismo modo los psic\u00f3logos investigadores de los
procesos psico-cognitivos han tomado categor\u00edas kuhnianas para
teorizar sus hallazgos. Finalmente, el mismo Kuhn se volvi\u00f3 hacia
ellos para iluminar su concepci\u00f3n del desarrollo cient\u00edfico
y construir los cimientos de una psicolog\u00eda de la
investigaci\u00f3n cient\u00edfica. Por otra parte, la cuesti\u00f3n
acerca del estatuto epistemol\u00f3gico de la psicolog\u00eda
est\u00e1 en la base de estas influencias
rec\u00edprocas.","l":"es"}]}},
  {"id":"85d965ce-4aa4-4a67-babe-6d44a22ac56e","key":{"date":"20100900","collection":"scl"},"value":{"collection":"scl","pid":"S0717-554X2010000200005","article_title":[{"l":"es","_":"Los
Estudios Organizacionales entre la Unidad y la
Fragmentaci\u00f3n"},{"l":"en","_":"Organization Studies between Unity
and Fragmentation"}],"author":[{"1":"A01","s":"Medina","r":"ND","n":"C\u00e9sar"}],"affiliation":[{"i":"A01","1":"Departamento
de Administraci\u00f3n","e":"msc@correo.azc.uam.mx","_":"Universidad
Aut\u00f3noma Metropolitana","p":"M\u00e9xico"}],"abstract":[{"a":"ABSTRACT
The fundamental aim of this paper is to analyze a recent discipline
called organization theory. For this purpose, diverse historic events
are shown. These facts initiated a theoretical-methodological univocal
and simplified pretension for the study of the organizations, like the
one occurred with the natural sciences. Nevertheless, currently they
have emerged in an extensive range of phenomenological perspectives
around organizations. Therefore, it is proposed as an explanation the
\u201canarchism epistemology\u201d minted by Paul K. Feyerabend by
considering it a powerful tool to understand the theories of the
organization. Also it maintains as hypothesis that the study of
several sources to find out a possible explanation for its phenomena,
strengthens the organization theory or
theories.","l":"en"},{"a":"RESUMEN El presente trabajo tiene como
objetivo fundamental analizar una disciplina reciente denominada
teor\u00eda de la organizaci\u00f3n. Para tal efecto se muestran
diversos hechos hist\u00f3ricos, los cuales al inicio eran tan
s\u00f3lo una pretensi\u00f3n te\u00f3rico-metodol\u00f3gica univoca y
simplificada para el estudio de las organizaciones, como ocurri\u00f3
con las ciencias naturales. Sin embargo, en la actualidad han
eclosionado en una amplia gama de perspectivas fenomenol\u00f3gicas en
torno a las organizaciones. Por lo anterior se propone como
explicaci\u00f3n el anarquismo epistemol\u00f3gico acu\u00f1ado por
Paul K. Feyerabend, por considerarlo una herramienta poderosa para
entender a las teor\u00edas de la organizaci\u00f3n. Tambi\u00e9n se
sostiene como hip\u00f3tesis la presencia de un robustecimiento de
esta teor\u00eda al abrevar de distintas fuentes para la
explicaci\u00f3n de sus fen\u00f3menos.","l":"es"}]}},
}

With a simple value as key it's possible to filter some results making
use of the attribute
http://localhost:5984/scieloorg/_design/couchdb/_view/article_date/?key=STR

If is it possible? how can I filter a view result using a dictionary
as key, for example I want to bring just registers with "collection ==
scl".


Regards,
*Fabio Batalha C. Santos*
Colegiado SciELO
www.scielo.org
FAPESP - CNPq - BIREME - FapUNIFESP

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message