SOLR json request API syntax on facet domain with filter & field list

2018-07-12 Thread jeebix
Hello everybody, I work on a SOLR version 6.0.0. I use the JSON request API to facet the results. Here is a SOLR query example : {"query":"object_type_s:contact","params":{"wt":"json","start":0,"rows":10},"filter":[],"facet":"byNestedGammes":{"type":"terms","field":"gamme","domain":{"blockChildre

Re: Sum and aggregation on nested documents field

2018-07-11 Thread jeebix
My apologize Mikhail, I try to explain it better : This is actually what I get from SOLR with the query you helped me to build : "responseHeader":{ "status":0, "QTime":15, "params":{ "q":"{!parent which=object_type_s:contact score=max v=$chq}", "indent":"on", "fl":"*

Re: Sum and aggregation on nested documents field

2018-07-10 Thread jeebix
Hello Mikhail, First thanks a lot for your answers which are very useful for me... Then, I tried the query with the '$' parameter, and I get some great result like this : "id":"693897", "asso_i":693897, "etat_technique_s":"avec_documents", "etat_marketing_s":"actif",

Sum and aggregation on nested documents field

2018-07-10 Thread jeebix
Hello everybody, I have a question about how to retrieve results from SOLR with some aggregation (like sum in my case...) on the nested documents. First, the data SOLR returned with a standard query : { "id":"3911.3912.1278", "parent_i":3191, "asso_i":3112, "pers

Re: Sum and aggregation on nested documents field

2018-07-10 Thread jeebix
Thanks for your reply Mikhail, I tried like this : "{!parent which=object_type_s:contact score=total v={!func}TTC_i}" in a filter query, the same in the sort parameter, I also tried to put this query "{!parent which=object_type_s:contact score=total}TTC_i" into the q parameter, but no results... I

Re: Sum and aggregation on nested documents field

2018-07-10 Thread jeebix
Thanks for your reply Mikhail, I tried like this : "{!parent which=object_type_s:contact score=total v={!func}TTC_i}" in a filter query, the same in the sort parameter, I also tried to put this query "{!parent which=object_type_s:contact score=total}TTC_i" into the q parameter, but no results... I

Sum and aggregation on nested documents field

2018-07-09 Thread jeebix
Hello everybody, First, an example of a parent document with 2 nested documents : { "id":"10891.10893.142693", "parent_i":10891, "asso_i":10893, "personne_i":142693, "etat_technique_s":"avec_documents", "zone_scolaire_s":"B", "territoire_s":

Re: _childDocuments_ automatically multivalued field type

2018-07-02 Thread jeebix
Ok, I'll have a look at the link above. Thanks a lot... Best JB -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: _childDocuments_ automatically multivalued field type

2018-07-02 Thread jeebix
Ok, I see what I have to look for, thanks to your reply. I'll adjust the schema and see difference. Thanks. Best JB -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

_childDocuments_ automatically multivalued field type

2018-07-02 Thread jeebix
Hello everybody, I have a problem with some field types in the managed-schema generated. First, the data SOLR returned with a standard query : response":{"numFound":365567,"start":0,"docs":[ { "id":"560.561.134676", "parent_i":560, "asso_i":561, "personne_i"