LibreCat / Catmandu-Store-MongoDB

A searchable store backed by MongoDB
https://metacpan.org/pod/Catmandu::Store::MongoDB
4 stars 2 forks source link

add support of projections #5

Closed jorol closed 8 years ago

jorol commented 9 years ago

Add support of projections, so you can limit fields to return from a query.

Optional parameter "fields" added to search() and searcher().

Question: When is the argument "$args{reify}" set in "lib/Catmandu/Store/MongoDB/Bag.pm"?

vpeil commented 9 years ago

I like that idea of projections. Are there any reasons it hasn't been merged? (you can do this with the retain-Fix, but I think we should this native mechanism, if provided by the store)

a side note: Elasticsearch supports projections, too.

jorol commented 9 years ago

Are there any reasons it hasn't been merged?

I don't know any. Both pull requests couldn't be merged together, there will be conflicts. I suggest to merge #6 first and I will edit this one afterwards.

nics commented 8 years ago

hi jorol, what needs to change?

jorol commented 8 years ago

Hi nics,

I will fix this and make new pr this week.

Greetz

jorol commented 8 years ago

Fixed in #8.