J’ai des difficultés avec advancedSearchContact sur BM3.
Je souhaite trouver un contact par son externalId, je prépare un contactQuery avec query = externalId:123 par exemple (le contact avec externalId=123 ayant était inséré) et advancedSearchContact ne retourne pas de résultat.
Je suppose que la syntaxe n’est pas correct, j’ai essayé aussi externalId:“123” mais idem.
Une recherche sur le firstname ou lastname fonctionne (ex: firstname:jean).
Si quelqu’un peut m’aiguiller sur une solution ou des exemples d’utilisations, je suis preneur.
Est-ce que quelqu’un a réussi à utiliser cette méthode, car j’ai essayé plusieurs syntaxe, mais impossible.
Je commence à sécher.
Voici le log pour la recherche externalId:736
2014-09-20 17:27:27,809 [vert.x-worker-thread-3] n.b.c.UserManagement INFO - jm.gaignard@raccourci.fr logged in from php-soap. auth type: BM DB (mail: jm.gaignard@raccourci.fr) on bm-core 2.1.12471
2014-09-20 17:27:27,810 [vert.x-eventloop-thread-8] n.b.c.s.v.XmlBufferHandler INFO - login/doLogin in 30ms.
2014-09-20 17:27:27,890 [vert.x-worker-thread-15] n.b.c.c.ContactHome INFO - returning 0 contact(s) moved out of sync scope
2014-09-20 17:27:27,890 [vert.x-worker-thread-15] n.b.c.c.ContactHome INFO - returning 0 contact(s) updated
2014-09-20 17:27:27,890 [vert.x-worker-thread-15] n.b.c.c.ContactHome INFO - returning 0 contact(s) archived
2014-09-20 17:27:27,891 [vert.x-worker-thread-15] n.b.c.u.DoSyncContext INFO - CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
2014-09-20 17:27:27,891 [vert.x-eventloop-thread-5] n.b.c.s.v.XmlBufferHandler INFO - book/doSync in 180ms.
2014-09-20 17:27:27,932 [vert.x-worker-thread-7] n.b.c.c.ContactHome INFO - ElasticSearch: ‘is:archive addressbookId:(7 OR 258 OR 1 OR 9 OR 2 OR 8) (externalId:736)’, page: 0 l: 2147483647
2014-09-20 17:27:27,935 [vert.x-worker-thread-7] n.b.c.c.ContactHome INFO - ElasticSearch time spent for 0 results: 3ms.