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

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -