Okay this works but i get again more than  I want , but thank you, so i try
this
function (doc) { if (doc.id == '412918563004231700');
 { emit(doc.id == '412918563004231700', null); }}

so i get a true or false, than i let it sort by true, so i can identify the
file that i need, thank you jonas :)

2015-03-04 19:08 GMT+01:00 Jonas Weber <[email protected]>:

> So sorry, I forgot an } at the end (I always do).
>
>
> On 4 March 2015, Ayhan Kesenci <[email protected]> wrote:
>
> Get an Error Message, does not evaluate.
>
>
> Ayhan
>
> 2015-03-04 18:59 GMT+01:00 Jonas Weber <[email protected]>:
>
> Hi Ayhan,
>
> does function (doc) { if (doc.id == '412918563004231700') { emit(doc.id,
> null); } work? Note that in order to see the document with this map, you
> have to use ?include_docs=true.
>
> Maps are real functions, and what you have there is an assignment.
>
> Regards,
> Jonas
>
>
> On 4 March 2015, Ayhan Kesenci <[email protected]> wrote:
>
> Hey friends how should my map function looks like to find this document
> 412918563004231700
>
> doc.id="412918563004231700") doenst work :(
>
>
> Thank you
>
> Ayhan
>
>
>

Reply via email to