solr - $Project inside find mongodb -
it's possible transform this:
db.processodomain.aggregate([{ $project: { 'status': 1, 'instancia': 1, 'ano': 1, 'numeroprocesso': 1, 'partes': '$informacoesadicionais.partes' } }])
to this:
db.processodomain.find({} , { 'status': 1, 'instancia': 1, 'ano': 1, 'numeroprocesso': 1, 'partes': '$informacoesadicionais.partes' } )
because need make projection in solr query, , there don't accept aggregate function.
thaks
no far know either have use aggregation pipeline projection stage or in application layer.
Comments
Post a Comment